SOLVED - Failed to start service : Syntax error on line 1154 of /etc/httpd/conf/httpd.conf:

i am restoring backups from old virtualmin server to new virtualmin server.

When i restored the last one, it gave me following error.

Failed to start service :
Starting httpd: Syntax error on line 1154 of /etc/httpd/conf/httpd.conf:
Invalid command ‘php_admin_value’, perhaps misspelled or defined by a module not included in the server configuration
[FAILED]

Can anyone please help

OS distro and version, PHP, Apache versions. How was it installed? On a clean machine with just your distro on it. It is not a CentOS 6.x install with Apache 2.2 as the httpd.conf file only has 1011 lines - so off the top of my head I think you have a newer version of Apache installed. We need specs and any changes you made, along with the aforementioned details.

Also, paste in that area of the httpd.conf file (NOT THE ENTIRE THING!) just say some lines leading up to 1154 and the same if there is anything beyond. I know in Apache 2.2 if I were to assume you are running something other than 2.2, I am guessing that area is where the virtual hosts are situated at the end of the file. Pretty easy if you are editing that file by hand to make a syntax error. If you modified this by hand, re-check your work, report back to us with your information and someone will have the ability to help you troubleshoot your issue.

i didnt modified it by hand. Yes i have updated mysql to 5.5…also the php is upgraded…

However i have fixed the issue by commenting the line which says php admin value engine off

Thanks for the reply