Skip to content

Instantly share code, notes, and snippets.

@LadyNaggaga
Last active August 29, 2015 14:05
Show Gist options
  • Save LadyNaggaga/dcc1e1ae3109c76b85ad to your computer and use it in GitHub Desktop.
Save LadyNaggaga/dcc1e1ae3109c76b85ad to your computer and use it in GitHub Desktop.
Installing A LAMP STACK ON Ubuntu VM
//Install apache typr the caommand below in your ssh tool
sudo apt-get update
//Possible error: Could not reliably determine the server's fully qualified domain name. Fix below
sudo nano /etc/apache2/apache.conf
//Enter the text below-
serverName localhost
//Install MySQL
sudo apt-get install mysql-server-5.6
//Install PHP
sudo apt-get install php5 php5-mysql
sudo vi /var/www/html/test.php
//create a test page
<?php
phpinfo();
?>
//Start/stop/restart Apache
sudo service apache2 start
sudo service apache2 stop
sudo service apache2 restart
sudo service apache2 status
//Start/stop/restart MySQL
sudo service mysql start
sudo service mysql stop
sudo service mysql restart
sudo service mysql status
sudo service mysql status
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment