problems with apache

iknownotwhoiam

Registered
my web server is not working correctly. i cannot stop web serving in sys prefs...but i don't think that it is even on. here's what i get from the command line:
[localhost:~] axela% apachectl stop
/usr/sbin/apachectl stop: httpd (pid 242?) not running
[localhost:~] axela% apachectl start
Processing config directory: /private/etc/httpd/users
Processing config file: /private/etc/httpd/users/axela.conf
Processing config file: /private/etc/httpd/users/gybe.conf
[Thu Oct 4 18:30:15 2001] [alert] httpd: Could not determine the server's fully qualified domain name, using 127.0.0.1 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

can anyone help me out? i'm running 10.1 5g64 on a new iBook.
thanks.
axel.
 
To start apache, you must do it as root. You (as a user) do not have all of the necessary privileges (particularly to create the log files).

% sudo apachectl start
Password:

(enter your password)

It should start up fine.
 
There is a fault in the file /private/etc/httpd/httpd.conf in OS X 10.1
The following line:
LoadModule apple_hfs_module libexec/httpd/mod_hfs_apple.so
should be:
LoadModule hfs_apple_module libexec/httpd/mod_hfs_apple.so

That should fix the problem.
 
what? sorry, but thats not true!
apple_hfs_module is correct!

by the way, the problem of the question-starter was another!
 
tazmandevil wrote:

> what? sorry, but thats not true! apple_hfs_module is correct!

Well, it fixed apache for me, and others I know, after it stopped working after loading 10.1
 
Back
Top