Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

OSX and httpd.conf

Status
Not open for further replies.

Borrmaskin

Programmer
Joined
Jan 22, 2003
Messages
5
Location
GB
httpd.conf

OK..
I opened httpd.conf in BBedit as root.
Changed ServerRoot to "/Sites"
Changed server admin to me@mycompany.com
Changed BindAddress to my IP
and Uncommented :
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps

Before the server started just fine.
But it did not automatically get the ~user site
and , of corse, did not understand PHP.

Now it doesenst even start....

HELP...
 
Hi,

Did you check for syntax errors :

# /usr/local/apache/bin/httpd -t

- it should just say 'Syntax OK'.

It may just be because you don't have php installed. Php is not included with apache - you have to get it separately from .

On the home directories, these are controlled via the 'UserDir' directive in httpd.conf . For example, if you had :

UserDir /home/httpd/*/www

Then a request for would map physically to /home/httpd/user1/
If you use a relative path like this :

UserDir user_html

..the same request above would map to /home/user1/user_html/index.html .

See --> and if you want to use cgi / ssi see also -->
Hope this helps
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top