I'm new to server maintenance, and am running Apache 2.4 on Ubuntu 14.10 on a VPS I just set up yesterday. It seems as if I have two different Apaches installed at different places in the machine due to the following reasons.
When I run
sudo /usr/local/apache2/bin/apachectl start
followed byps -A
I get this:4408 ? 00:00:00 httpd 4409 ? 00:00:00 httpd 4410 ? 00:00:00 httpd 4411 ? 00:00:00 httpd
It updates the error log
/usr/local/apache2/logs/error_log
with something like[Sat Feb 14 00:16:49.963014 2015] [mpm_event:notice] [pid 4542:tid 140160010012544] AH00489: Apache/2.4.12 (Unix) mod_wsgi/4.4.8 Python/2.7.8 configured -- resuming normal operations [Sat Feb 14 00:16:49.963260 2015] [core:notice] [pid 4542:tid 140160010012544] AH00094: Command line: '/usr/local/apache2/bin/httpd'
as set by the configuration file found at
usr/local/apache2/conf/httpd.conf
However, if I run
sudo apachectl start
(after stopping the example in 1.) followed byps -A
I get this:4743 ? 00:00:00 apache2 4744 ? 00:00:00 apache2 4745 ? 00:00:00 apache2
It updates the error log
var/log/apache2/error.log
with something like[Sat Feb 14 00:22:06.816281 2015] [mpm_event:notice] [pid 4743:tid 139905582937984] AH00489: Apache/2.4.10 (Ubuntu) configured -- resuming normal operations [Sat Feb 14 00:22:06.816480 2015] [core:notice] [pid 4743:tid 139905582937984] AH00094: Command line: '/usr/sbin/apache2'
as set by the configuration file found at
/etc/apache2/apache2.conf
I have been trying to set up a Django app with mod_wsgi and Apache, and in doing so have been editing the configuration file in example 1. I did a little googling and people seemed to be saying that apache2.conf
and httpd.conf
seem to compliment each other, but in my case, since they both set different ErrorLog information, and generally seem to control different programs, I'm a little confused.
Do I have two different Apaches instances installed on the same machine? Or is this just normal?