Posted By

daipratt on 02/15/11



Versions (?)

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

 / Published in: Bash


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

  1. sudo apt-get install apache2
  2. sudo apt-get install php5 libapache2-mod-php5
  3. sudo /etc/init.d/apache2 restart
  4. sudo apt-get install mysql-server
  5. mysql -u root -p
  6. sudo apt-get install libapache2-mod-auth-mysql php5-mysql phpmyadmin
  7. gksudo gedit /etc/php5/apache2/php.ini
  9. sudo /etc/init.d/apache2 restart
  11. #Test
  12. sudo gedit /var/www/info.php
  13. #Add
  14. <?php phpinfo(); ?>
  15. #Test
  16. http://localhost/info.php

Report this snippet  


RSS Icon Subscribe to comments
Posted By: refaelgold on December 8, 2012

cool staff-thanks

You need to login to post a comment.