How do I enable PHP on my Ubuntu server?

March 3, 2014 2.2k views
HI everyone, I recently tried setting up iRedMail on my Ubuntu server, but decided to go with another mail service after realizing how hard it was to actually set it up. In the end, my www directory was moved to /usr/share/nginx/www when before it was in /var/www. Since then my contact.php form does not pull up on my server as an actual page, but rather a download link. I have tried to reconfigure apache and re install any php modules, but even then when I try to do so, i get "E unable to find 'module example'. What do I need to do to enable php support on my server again? The default index.php files that we create in the tutorial doesn't show up like it did when I first set up my server...
1 Answer
Do you want to use nginx or apache? It seems like you're trying to use apache but have nginx installed instead. Check out, make sure you remove nginx before following that article.
by Etel Sverdlov
This tutorial explains how to install Apache, how to install MySQL, how to change the root MySQL password, how to install PHP, and how to see what libraries are available. LAMP stack is a group of open source software used to get web servers up and running. The acronym stands for Linux, Apache ( the web server) , MySQL (the database), and PHP (the language). This tutorial is written for Ubuntu.
Have another answer? Share your knowledge.