Trying to run the command "apache2ctl restart" and just got this message "apache2ctl:: command not found" -- thing is, Apache IS installed, running, and I'm actively doing development on the server right now... any ideas?
CONTEXT: sudo access on CentOS-5.5 on VM
UPDATE: Good news, restarted Apache, bad news 500 error, still it's progress... :-)
[username@VMname /]$ sudo /etc/init.d/httpd restart
[username@VMname /]$ sudo /etc/init.d/httpd restart
Stopping httpd: [ OK ]
Starting httpd: [ OK ]
Looks like
apache2ctl
isn't in your path. Try this instead:The above location reflects the location of
apache2ctl
in Ubuntu. I'm not sure where the default location is on CentOS. If the above command doesn't work, you can find the location by running the following as root: