Tuesday, September 02, 2014

repairing broken php on Ubuntu 14.04

M reported php redirects on our website were not working. Returning the php code instead. Found that php5 was not present in the mods-available folder.
apt-get install php5
reported that php5 was already installed. Our reinstall of apache after a purge had probably broken it. So, did
apt-get purge libapache2-mod-php5 libapache2-mod-php5filter  php5-cgi   php5-fpm php5
and then
apt-get install php5

That solved the problem. 

No comments:

Post a Comment