Question

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

This textbox defaults to using Markdown to format your answer.

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

Sign In or Sign Up to Answer

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.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

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.