Webserver Setup, need help!

Hey guys, does anyone know how I edit, configure the server settings using the terminal? MySQL and PHP was once working.

But after frying the Xserve G5 i'm in the middle of rebuilding everything, I believe i need to re-configure the root document directory...
but have forgotten how to edit the httpd.conf file. I believe, normally it resides in /etc/httpd/... well, only now it's become lost, the directory appears to be empty.

Now i have no web document directory. Anyone wanna give step by step guide, I'm desperate! Like to have above root access too for hiding application config files.

Cheers :slight_smile:

Web Document directory is either of two places:
/Library/WebServer/Documents
or
/Users/username/Sites

config file is /etc/httpd.conf

Several editors (command line or freeware gui) can edit the file.

Starting or stopping the web server through System Preferences > Sharing

<edit> D'OH! Sorry. umm, I don't know about Xserve. :frowning: </edit>