Infolinks

Breaking

Adsense

Wednesday, April 19, 2017

INSTALLATION OF LAMP SERVER IN UBUNTU 14.04/16.04

sudo apt-get update

sudo apt-get install apache2

sudo apt-get install mysql-server


For Ubuntu 14.04
sudo apt-get install php5 libapache2-mod-php5


For Ubuntu 16.04
sudo apt install php7.0 libapache2-mod-php7.0 php7.0-mysql


sudo /etc/init.d/apache2 restart
 

or 
sudo service apache2 restart


Open a web browser and navigate to http://localhost/​. You should see a message saying It works!
Check if PHP works.  Type the following on the terminal.

php -r 'echo "\n\nYour PHP installation is working fine.\n\n\n";'


Note: The directory used by LAMP is /var/www/html

INSTALL PHPMYADMIN


sudo apt-get update

sudo apt-get install phpmyadmin


Not Found. The requested URL /phpmyadmin was not foundon this server.

sudo cp /etc/phpmyadmin/apache.conf /etc/apache2/conf-enabled/phpmyadmin.conf


How do I fix the MySQL error ERROR 1006 (HY000): Can't create database phpmyadmin (errno: 2)?


● Restart mysql/pc
sudo service mysql restart


● Reconfigure phpmyadmin
sudo dpkg-reconfigure phpmyadmin


● Allow dbconfig-common to create config file for you

INSTALLATION OF LAMP SERVER IN UBUNTU 14.04/16.04

No comments:

Post a Comment

Adbox