Return to Snippet

Revision: 41296
at February 15, 2011 20:22 by daipratt

Initial Code
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

sudo gedit /var/www/info.php
<?php phpinfo(); ?>

Initial URL

Initial Description
Run through this lot line by line and you should be good. 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

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

Initial Tags

Initial Language