Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > Why is my Apache messed up?

Why is my Apache messed up?
Thread Tools
Mac Elite
Join Date: Apr 2003
Location: Anywhere but here.
Status: Offline
Reply With Quote
Aug 15, 2003, 12:13 PM
 
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
Reply With Quote
Aug 15, 2003, 12:29 PM
 
$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
Reply With Quote
Aug 15, 2003, 12:38 PM
 
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
Reply With Quote
Aug 15, 2003, 12:45 PM
 
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
Reply With Quote
Aug 15, 2003, 12:46 PM
 
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
Reply With Quote
Aug 15, 2003, 12:52 PM
 
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
Reply With Quote
Aug 15, 2003, 03:14 PM
 
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]
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 02:18 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2