Forum Moderators: phranque

Message Too Old, No Replies

Check if Apache is running prefork or worker

         

intellivision

6:29 am on Mar 12, 2010 (gmt 0)

10+ Year Member



apache2 -l
is throwing back a
-bash: apache2: command not found

I've tried that in /etc/init.d and /usr/sbin. I'm sure the apche2 binary is in /usr/sbin because the file size is 417840, but getting the same response.

I'm on a Debian machine, if that matters.

dmwaff

7:17 pm on Mar 12, 2010 (gmt 0)

10+ Year Member



command not found is a path issue and generally the binary is httpd not apache2, but I not familiar with Debain.

Fully qualify the path to the binary.
ps -ef |grep httpd
/usr/sbin/httpd -l

Possible look for an /etc/sysconfig/httpd file like on redhat. Prefork is the default and if the httpd.worker is uncomment it will load the worker MPM.

If you use "-l" option on the binary and get a library .so error, try looking for a envvars file and source it in and try again.

. /path/to/envvars
/usr/sbin/httpd -l