Tuesday, January 5, 2010

(L)AMP installation on Ubuntu

Just got a new server up and running.  Here are the commands to install Apache2, PHP5 and MySQL:
# apt-get install apache2 libapache2-mod-php5 mysql-server-5.1 php5-mysql php5-mcrypt
Make sure you do a restart.  Sometimes the apt-get process doesn't restart Apache properly to ensure the PHP5 module is loaded.
# /etc/init.d/apache2 restart

No comments: