apache wont start



i have succesfully installed apache from the source code... but when starting the server i get the following:

[localhost:/applications/apache_1.3.19] aju% /usr/sbin/apachectl start
Processing config directory: /private/etc/httpd/users
[Mon Apr 16 23:02:25 2001] [alert] httpd: Could not determine the server's fully qualified domain name, using for ServerName
fopen: Permission denied
httpd: could not open error log file /private/var/log/httpd/error_log.
/usr/sbin/apachectl start: httpd could not be started

1) why wont it start (obvious)
2) why is it trying i havent configured this anywhere
3) how come i can create anything inside the directory /private/var/log/httpd (let alone delete the directory), where the error_log is supposed to reside? i am the sole administrator on
this system

hope someone can help



Hi Mr. Allan

You are supposed to install Apache in /usr/local directory. Any how no problem, you can solve it.

1. Edit the httpd.conf file
2. Search for ServerName
3. Uncomment (Remove the # line) infront of the line
4. Give the Servername what you want (optional)
5. Serach for DocumentRoot
6. Set it to ~apache/htdocs/manual/en_us or
7. Save the File & Restart the httpd deamon.
8. You can start it using pachectl restart or start option. this is your local host (loop Back Address).
By Default, Apache will search for this.

Try once above steps. You will get success.



Lorem Ipsum
Hey guys,

Bhavanm is correct; but he made a typo... it is apachectl rather than pachectl. Also i believe fopen permission will be denied if the user is not root or a user with appropriate permissions. Please correct me if I'm wrong - but i think this is why you couldn't get it to work...

Best of luck,


thanks for the helpful replies
now apache will start, stop and restart and pass a configtest
but when i point internet explorer at (configured servername) there is no answer from the server.

actually i mangaged to get the apache test start page at one point but now - completetly dead. when typig localhost the browser crashes with a bang.

so i guess my question is how can this be?

another thing. how do you actually (easily) edit the httpd.conf file? the way i do it is using the cp command to copy the file into a visible folder and the open the copy to edit in bbedit and then copying the new version back into the httpd directory. this is rather cumbersome.

thanks again



Lorem Ipsum
use pico to easily edit the httpd.conf . . . you do this from the terminal -

first go to the directory
cd /etc/httpd/

then simply type
pico httpd.conf

you must do this as wheel or root; so either type 'su' and eneter the root password or type 'sudo pico httpd.conf' if you have to enable the root user do do with netinfo manager (apps/utilities) it is in the domain/security menu (you must authenticate first).

before you do this familiarize yourself with the program... its very simple and all you need to do is familiarize yourself with the controls at the bottom of the screen (control-o to save etc.) typing pico followed by a new file name will create a new file... for instance typing pico blah.txt will create that file if it doesn't already exist. The draw-backs are using the arrow keys to navigate. The most useful commands are

control-o ... output file (save)
control-w ... where is (find)
control-c ... current cursor position

all of these are on the bottom of the screen.. good luck and happy .conf hacking!



unior Member
wow. It never occured to me to even look for pico. A blast from the past...

Pico is fine for editing little files, but evenutally, since you are clearly on the path to unix guru-hood, you will want to learn vi and emacs. ;)


Actually, this information isn't really correct. Current versions of Apache are designed to install over top of the existing OS X Apache installation. Your problem is not that it is the wrong directory, but you are probably running it as the wrong user. Try sudo apachectl start. or restart. Enter your admin password, and it should work fine.


atoms is right - if you want to even consider yourself a unix guru, you have to learn vi and emacs. I personally love emacs, I know that there is a lot of commands to remember - but it is so versatile, you can even compile LISP, c , c++ etc .. programs with it. It is a must to the guru - hood.

just my 2-bits