Install Apache, Mysql & PHP via the command line in Ubuntu

Run through this lot line by line and you should be good.

sudo apt-get install apache2
sudo apt-get install php5 libapache2-mod-php5
sudo /etc/init.d/apache2 restart
sudo apt-get install mysql-server
mysql -u root -p
sudo apt-get install libapache2-mod-auth-mysql php5-mysql phpmyadmin
gksudo gedit /etc/php5/apache2/php.ini
sudo /etc/init.d/apache2 restart

Make sure you select Apache when you are installing PHPMyAdmin. If you mess up installing PHPMyAdmin, use the following command to re-configure:

sudo dpkg-reconfigure phpmyadmin


sudo gedit /var/www/info.php

<?php phpinfo(); ?>


Thanks to:


About selvam4win

I am Selvam. I am very jolly person and frank one.

Posted on December 10, 2012, in Apache, MySql, PHP and tagged , , , , . Bookmark the permalink. Leave a comment.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: