wordpress droplet doesn't run php after reinstalling apache

we are using wordpress one-click install ubuntu 14.04 x64 droplet… we couldn’t restart apache2 after installing Curl we read a solution about reinstalling apache but the result is really bad… wordpress doesn’t work and all php scripts in var/www/html doesn’t work, adding these lines to .htaccess doesn’t work too

AddHandler x-mapp-php5 .php```

can anyone please help us to fix this issue, thank you in advance.

Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

My guess would be that by un-installing the apache2 package on your droplet you also removed the php5 module. I would suggest you try the following:

apt-get update;
apt-get install php5 php5-mysql libapache2-mod-php5

The WordPress one-click provides a pretty standard set up packages. Apart from WordPress itself they are all installed via apt.