Koozali.org: home of the SME Server

Help! Apache httpd does not start after disabling php

Alejandro Lengua

Help! Apache httpd does not start after disabling php
« on: October 31, 2003, 11:32:09 PM »
I was using Service Control to disable some services for improving performance.

I disabled PHP and MySQL. and now Apache (HTTP) and Server-Manager don't star... as I am having this error:

Starting httpd: Syntax error on line 1202 of /etc/httpd/conf/httpd.conf:
Invalid command 'php_flag', perhaps mis-spelled or defined by a module not included in the server configuration

I

Dan Brown

Re: Help! Apache httpd does not start after disabling php
« Reply #1 on: November 01, 2003, 12:36:30 AM »
Why did you disable PHP?  You apparently have something else that requires it (perhaps webmail), which is causing httpd to barf.  RAM is cheap; upgrading that rather than disabling services is a better bet.

Alejandro Lengua

Re: Help! Apache httpd does not start after disabling php
« Reply #2 on: November 01, 2003, 05:01:55 PM »
I am using that e-smith only as a Firewallw and PPT-VPN server...
so was trying to disable unused services that could produce vulnerabilities
in the future.

Finally I noticed that a contrib (SARG) was adding a couple of lines
in my httpd.conf. Those lines where calling PHP.. I removed those lines
and http restarted fine...