Hi all, am running OS X with it's built in apache webserver. I can start and stop apache from system preferences just fine, but in my attempt to learn a little more about the command line I tried restarting it with the /usr/sbin/apachectl utility, and this is what I got:
[Jons-G4:~] jon% /usr/sbin/apachectl restart
/usr/sbin/apachectl restart: httpd not running, trying to start
Processing config directory: /private/etc/httpd/users
Processing config file: /private/etc/httpd/users/beck.conf
Processing config file: /private/etc/httpd/users/jon.conf
fopen: Permission denied
httpd: could not open error log file /private/var/log/httpd/error_log.
/usr/sbin/apachectl restart: httpd could not be started
so to see if I could open the error_log I did:
[Jons-G4:~] jon% tail /private/var/log/httpd/error_log
[Sun Jul 20 20:11:30 2003] [error] [client 127.0.0.1] File does not exist: /Library/WebServer/Documents/asp/stat.asp
[Sun Jul 20 20:12:05 2003] [error] [client 127.0.0.1] File does not exist: /Library/WebServer/Documents/asp/stat.asp
[Sun Jul 20 20:12:28 2003] [error] [client 127.0.0.1] File does not exist: /Library/WebServer/Documents/asp/stat.asp
[Sun Jul 20 20:30:41 2003] [notice] caught SIGTERM, shutting down
Processing config directory: /private/etc/httpd/users
Processing config file: /private/etc/httpd/users/beck.conf
Processing config file: /private/etc/httpd/users/jon.conf
[Sun Jul 20 20:30:46 2003] [notice] Apache/1.3.27 (Darwin) PHP/4.1.2 configured -- resuming normal operations
[Sun Jul 20 20:30:46 2003] [notice] Accept mutex: flock (Default: flock)
[Sun Jul 20 20:51:54 2003] [notice] caught SIGTERM, shutting down
which has quite correctly given me the last ten entries of error_log.
Does anyone have any ideas why the apachectl utility doesn't seem to be working?
I recently had to run the Repair Disk Permissions utility - which resets all permissions back to factory defaults?
Could this have screwed it?
2sharp
[Jons-G4:~] jon% /usr/sbin/apachectl restart
/usr/sbin/apachectl restart: httpd not running, trying to start
Processing config directory: /private/etc/httpd/users
Processing config file: /private/etc/httpd/users/beck.conf
Processing config file: /private/etc/httpd/users/jon.conf
fopen: Permission denied
httpd: could not open error log file /private/var/log/httpd/error_log.
/usr/sbin/apachectl restart: httpd could not be started
so to see if I could open the error_log I did:
[Jons-G4:~] jon% tail /private/var/log/httpd/error_log
[Sun Jul 20 20:11:30 2003] [error] [client 127.0.0.1] File does not exist: /Library/WebServer/Documents/asp/stat.asp
[Sun Jul 20 20:12:05 2003] [error] [client 127.0.0.1] File does not exist: /Library/WebServer/Documents/asp/stat.asp
[Sun Jul 20 20:12:28 2003] [error] [client 127.0.0.1] File does not exist: /Library/WebServer/Documents/asp/stat.asp
[Sun Jul 20 20:30:41 2003] [notice] caught SIGTERM, shutting down
Processing config directory: /private/etc/httpd/users
Processing config file: /private/etc/httpd/users/beck.conf
Processing config file: /private/etc/httpd/users/jon.conf
[Sun Jul 20 20:30:46 2003] [notice] Apache/1.3.27 (Darwin) PHP/4.1.2 configured -- resuming normal operations
[Sun Jul 20 20:30:46 2003] [notice] Accept mutex: flock (Default: flock)
[Sun Jul 20 20:51:54 2003] [notice] caught SIGTERM, shutting down
which has quite correctly given me the last ten entries of error_log.
Does anyone have any ideas why the apachectl utility doesn't seem to be working?
I recently had to run the Repair Disk Permissions utility - which resets all permissions back to factory defaults?
Could this have screwed it?
2sharp