| jimcoyle1 2007-04-28, 1:27 am |
| While trying to get php and mysql running today, I managed to
completely screw up my Apache2 config.
I've reinstalled from source Apache 2.2.4 and the server IS starting.
The problem is that the website itself is refusing connections. My
site makes a hop from port 80 to port 8111; I don't know if that's
where the problem lies or not.
When I start httpd, it appears that Apache is using a configuration in
another directory rather than the httpd.conf file that exists, and
that I edited in /Library/Apache2/conf. (see below)
James-Coyles-iMac:/Library/Apache2/bin jamescoy$ sudo apachectl -k
stop
usage: /usr/sbin/apachectl (start|stop|restart|fullstatus|status|
graceful|configtest|help)
start - start httpd
stop - stop httpd
restart - restart httpd if running by sending a SIGHUP or start if
not running
fullstatus - dump a full status screen; requires lynx and mod_status
enabled
status - dump a short status screen; requires lynx and mod_status
enabled
graceful - do a graceful restart by sending a SIGUSR1 or start if
not running
configtest - do a configuration syntax test
help - this screen
/usr/sbin/apachectl stop: httpd stopped
James-Coyles-iMac:/Library/Apache2/bin jamescoy$ sudo apachectl start
Password:
Processing config directory: /private/etc/httpd/users/*.conf
/usr/sbin/apachectl start: httpd started
I think there's a config issue in some other file here, or the path
from the Apache2 I installed is using the path of the pre-installed
version of Apache which came with OSX.
Any thoughts?
|