I want to start saying I'm a beginner in Linux & Networking, so I may not get something and if so, I'll ask some question (like comment).Anyway, Let's writing my question.I'm using Elementary OS and Apache.What I did? I installed Apache 2 and I went to http://127.0.0.1/ to check if Apache was online, that's ok. I saw the Apache2 Ubuntu Default Page, I thought Apache 2 was ok and I could start to use HTML5, CSS3, JS and PHP.I understood I couldn't, I tried to create a file HTML5 & CSS3, that was nice, when I tried to use PHP, It didn't work.It doesn't give any error, just PHP doesn't work.When I open http://127.0.0.1/index.php, It returns me:<?phpphpinfo();?>It returns the code like if index.php would be a .txt file.Here's my terminal log. matt@matt:/var/www/html$ lsindex.htmlmatt@matt:/var/www/html$ nano test.htmmatt@matt:/var/www/html$ sudo nano test.htmmatt@matt:/var/www/html$ lsindex.html  test.htmmatt@matt:/var/www/html$ sudo nano test.htmmatt@matt:/var/www/html$ sudo nano file.cssmatt@matt:/var/www/html$ sudo nano test.htmmatt@matt:/var/www/html$ sudo nano index.phpmatt@matt:/var/www/html$ sudo nano test.htmmatt@matt:/var/www/html$ lsfile.css  index.html  index.php  test.htmmatt@matt:/var/www/html$ nano index.html Bye, I hope someone'll be able to help me, see ya.
Why PHP doesn't run in Apache?
apache httpd;php;elementary os
Usually you have to install php separately. apt-get install libapache2-mod-php5 or similar should do the trick in most cases.Probably you might need to enable the plugin with a2enmod php5