Php Files Are Downloaded by Browser Instead of Processed by The Server, How to Solve It?

PHP files are downloaded by browser instead of processed by the server, how to solve it?
by Janeth Kent Date: 16-08-2013

After upgraded some packages in my ubuntu server, sometimes php configuration goes crazy and PHP files are downloaded by browser instead of processed by the server, how to solve it? Here are the steps to solve fastly the problem.
Follow thiese commands:
sudo a2enmod php5
and it said "Module php5 already enabled". 
re-starting apache2 with the following command:
sudo apache2ctl restart
and PHP started parsing and working fine after that. 
Alternatively use these steps too:
I already have apache2 server running on my machine, so I reinstall only PHP5 and mySQL 5 using
sudo apt-get install php5-mysql libapache2-mod-php5 mysql-server
(During the installation, the apache2 server on my machine stops and re-starts.)
Then repeat the steps above.
by Janeth Kent Date: 16-08-2013 hits : 3083  
Janeth Kent

Janeth Kent

Licenciada en Bellas Artes y programadora por pasión. Cuando tengo un rato retoco fotos, edito vídeos y diseño cosas. El resto del tiempo escribo en MA-NO WEB DESIGN END DEVELOPMENT.


We use our own and third-party cookies to improve our services, compile statistical information and analyze your browsing habits. This allows us to personalize the content we offer and to show you advertisements related to your preferences. By clicking "Accept all" you agree to the storage of cookies on your device to improve website navigation, analyse traffic and assist our marketing activities. You can also select "System Cookies Only" to accept only the cookies required for the website to function, or you can select the cookies you wish to activate by clicking on "settings".

Accept All Only sistem cookies Configuration