server_setup

Install Apache, MySQL PHP and phpMyAdmin on Ubuntu 13.04 Raring Ringtail

26. April 2013

When Thomas Edison worked late into the night on the electric light, he had to do it by a gas LAMP or candle. I’m sure it made the work seem that much more urgent.

-George Carlin

Ubuntu 13.04 ‘Raring Ringtail’ released yesterday and though I use Crunchbang, like any ex Ubuntu fanboy I got myself the iso, put it on a thumbdrive and installed it on a small netbook I have that was just lying around doing nothing fancy. I thought I d install the new Ubuntu on it and use it to ‘code’ while in the John or while standing in the line at Starbucks

So anyway, I had to setup a LAMP server:

sudo apt-get update sudo apt-get upgrade

MySQL

sudo apt-get install mysql-server mysql-client

Apache

sudo apt-get install apache2

PHP

sudo apt-get install php5 libapache2-mod-php5 php5-mysql

Restart Apache

/etc/init.d/apache2 restart

phpMyAdmin

sudo apt-get install phpmyadmin

I don’t like to use Apache’s default http folder /var/www so I need to update the apache2.conf file:

sudo nano /etc/apache2/apache2.conf

Changing the default location will require me to make sure phpMyAdmin continues to load on http://localhost/phpMyAdmin so at the end of the same file I ll add the virtual host configuration for phpMyAdmin

Include /etc/phpmyadmin/apache.conf

Restart Apache

/etc/init.d/apache2 restart

From: http://www.walmik.com/2013/04/install-apache-mysql-php-and-phpmyadmin-on-ubuntu-13-04-raring-ringtail/