 |
 |
Why is my Apache messed up?
|
 |
|
 |
|
Mac Elite
Join Date: Apr 2003
Location: Anywhere but here.
Status:
Offline
|
|
I was serving my own webpage from my computer using the sharing under OSX via Apache and everything was fine. But I downloaded X11 and it seems to have messed something up. My Apache files are now being hosted out of /usr or something like that. How the hell that happened I don't know.
What lines, in what files must I configure to get apache to call the files from the sites folder???
/???/~myname/sites Is it something like that?
|
|
|
| |
|
|
|
 |
|
 |
|
Mac Elite
Join Date: Apr 2003
Location: Anywhere but here.
Status:
Offline
|
|
$hit it also says that I'm running Apache 1.3.27. How the hell did this happen, better yet how do I fix it? Did installing fink or x11 do this?
|
|
|
| |
|
|
|
 |
|
 |
|
Mac Elite
Join Date: Dec 2001
Location: Atlanta, GA, USA
Status:
Offline
|
|
Originally posted by the_glassman:
$hit it also says that I'm running Apache 1.3.27. How the hell did this happen, better yet how do I fix it? Did installing fink or x11 do this?
That's the right version:
Code:
[dshaw@flybook ~] telnet localhost 80
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
HEAD / HTTP/1.0
HTTP/1.1 200 OK
Date: Fri, 15 Aug 2003 17:37:38 GMT
Server: Apache/1.3.27 (Darwin) PHP/4.1.2
Connection: close
Content-Type: text/html
Connection closed by foreign host.
You edit your DocumentRoot in /etc/httpd/httpd.conf
|
|
Mac Pro 2x 2.66 GHz Dual core, Apple TV 160GB, two Windows XP PCs
|
| |
|
|
|
 |
|
 |
|
Mac Elite
Join Date: Apr 2003
Location: Anywhere but here.
Status:
Offline
|
|
Originally posted by Arkham_c:
That's the right version:
Code:
[dshaw@flybook ~] telnet localhost 80
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
HEAD / HTTP/1.0
HTTP/1.1 200 OK
Date: Fri, 15 Aug 2003 17:37:38 GMT
Server: Apache/1.3.27 (Darwin) PHP/4.1.2
Connection: close
Content-Type: text/html
Connection closed by foreign host.
You edit your DocumentRoot in /etc/httpd/httpd.conf
Ok, that makes sense. What path do I use to put it back to the sites directory?
|
|
|
| |
|
|
|
 |
|
 |
|
Registered User
Join Date: Jul 2003
Location: San Jose
Status:
Offline
|
|
it should look something like this...
[php]
#
# DocumentRoot: The directory out of which you will serve your
# documents. By default, all requests are taken from this directory, but
# symbolic links and aliases may be used to point to other locations.
#
DocumentRoot "/Library/WebServer/Documents"
[/php]
and...
[php]
#
# This should be changed to whatever you set DocumentRoot to.
#
<Directory "/Library/WebServer/Documents">
[/php]
and...
[php]
#
# UserDir: The name of the directory which is appended onto a user's home
# directory if a ~user request is received.
#
<IfModule mod_userdir.c>
UserDir Sites
</IfModule>
[/php]
|
|
|
| |
|
|
|
 |
|
 |
|
Mac Elite
Join Date: Apr 2003
Location: Anywhere but here.
Status:
Offline
|
|
Originally posted by mzllr:
it should look something like this...
[php]
#
# DocumentRoot: The directory out of which you will serve your
# documents. By default, all requests are taken from this directory, but
# symbolic links and aliases may be used to point to other locations.
#
DocumentRoot "/Library/WebServer/Documents"
[/php]
and...
[php]
#
# This should be changed to whatever you set DocumentRoot to.
#
<Directory "/Library/WebServer/Documents">
[/php]
and...
[php]
#
# UserDir: The name of the directory which is appended onto a user's home
# directory if a ~user request is received.
#
<IfModule mod_userdir.c>
UserDir Sites
</IfModule>
[/php]
Okay fixed them in BBedit, what about the webserver root?
|
|
|
| |
|
|
|
 |
|
 |
|
Registered User
Join Date: Jul 2003
Location: San Jose
Status:
Offline
|
|
if you're using the default install that came with osx and haven't moved things around, it should look like...
[php]
#
# ServerRoot: The top of the directory tree under which the server's
# configuration, error, and log files are kept.
#
# NOTE! If you intend to place this on an NFS (or otherwise network)
# mounted filesystem then please read the LockFile documentation
# (available at <URL: http://www.apache.org/docs/mod/core.html#lockfile>);
# you will save yourself a lot of trouble.
#
ServerRoot "/usr"
[/php]
|
|
|
| |
|
|
|
 |
 |
|
 |
|
|
|
|
|

|
|
 |
Forum Rules
|
 |
 |
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
|
HTML code is Off
|
|
|
|
|
|
 |
 |
 |
 |
|
 |
|