Howdi All
I just logged on to the server and noticed a new apache update sitting there, thought well should do that. So ran it and the update failed spiting out an error, now apache will not start.
The error I am now getting is this
Failed to start service :
Starting web server apache2
Syntax error on line 53 of /etc/apache2/sites-enabled/0-shirehosting.com.au.conf:
Invalid command ‘php_value’, perhaps misspelled or defined by a module not included in the server configuration
…fail!
Server is running Ubuntu 10.04. If you know where to start please let me know.
Starting web server apache2
apache2: Syntax error on line 204 of /etc/apache2/apache2.conf: Syntax error on line 1 of /etc/apache2/mods-enabled/php5.load: Cannot load /usr/lib/apache2/modules/libphp5.so into server: /usr/lib/apache2/modules/libphp5.so: cannot open shared object file: No such file or directory
…fail!
One more question, I’m not at the console and only have Virtualmin to log in to the server. if I run apt-get install libapache2-mod-php5 it asks me to confirm, which I cant … how do I tell it to just run the command
In case some files belonging to a vital package get deleted, in this case the apache 2 PHP module, without actually uninstalling the package, it can be necessary to perform a “forced” reinstall of the package.
That can be accomplished using the shell command apt-get install libapache2-mod-php5 --reinstall
If no SSH shell is available, you can use the Webmin module “Others / Command shell”
To find out which package contains a specific file, you need the “apt-file” command, which you can install using the Webmin package manager, or apt-get install apt-file. Then you can search for the package using apt-file search libphp5.so.