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


/ Published in: Bash
Save to your folder(s)

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


Copy this code and paste it in your HTML
  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
  8. extension=mysql.so
  9. sudo /etc/init.d/apache2 restart
  10.  
  11. #Test
  12. sudo gedit /var/www/info.php
  13. #Add
  14. <?php phpinfo(); ?>
  15. #Test
  16. http://localhost/info.php

URL: http://zoocha.com/what-we-do/development/

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.