There are 5 to 6 commands are giving below to install LAMP stack on your ubuntu 16.04 machine:
1. sudo apt-get update
2. sudo apt-get install apache2
3. sudo apt-get install php5
- if you get any problem with php5 then add ppa and you are good to go
- for ppa follow below command
- sudo add-apt-repository ppa:ondrej/php then run sudo apt-get update
- then sudo apt-get install php5.6
- then install some php modules by this command sudo apt-get install php5.6-mbstring php5.6-mcrypt php5.6-mysql php5.6-xml
4. sudo apt-get install mysql-server
5. sudo apt-get install phpmyadmin
- for phpmyadmin you will have to add the below line at the very last in apache.conf file
- Include /etc/phpmyadmin/apache.conf
- sudo gedit /etc/apache2/apache2.conf in this file
6. restart apache by this command sudo /etc/init.d/apache2 restart
1. sudo apt-get update
2. sudo apt-get install apache2
3. sudo apt-get install php5
- if you get any problem with php5 then add ppa and you are good to go
- for ppa follow below command
- sudo add-apt-repository ppa:ondrej/php then run sudo apt-get update
- then sudo apt-get install php5.6
- then install some php modules by this command sudo apt-get install php5.6-mbstring php5.6-mcrypt php5.6-mysql php5.6-xml
4. sudo apt-get install mysql-server
5. sudo apt-get install phpmyadmin
- for phpmyadmin you will have to add the below line at the very last in apache.conf file
- Include /etc/phpmyadmin/apache.conf
- sudo gedit /etc/apache2/apache2.conf in this file
6. restart apache by this command sudo /etc/init.d/apache2 restart
No comments:
Post a Comment