Installing Apache+PHP on Ubuntu

Assuming you’re running Ubuntu 11.10 or 12.04 (probably works in others) you can install Apache with PHP like this:
$ sudo su
$ apt-get install apache2 php5 libapache2-mod-php5; service apache2 restart

I’m putting this here for my own reference!

Leave a Comment