sudo apt-get install tasksel
To Install LAMP Server
Use the below command to install it.
sudo apt-get install lamp-server
or
just run tasksel using the below command
sudo tasksel
After executing the tasksel command, you will get a list of available packages that can be installed in your system. Choose LAMP Server using the arrow keys and spacebar to select it.
Now press enter to install it. After installation starts you will be asked to type password for the MySQL root user.
Repeat the password and press enter.
Thats it. Now open a browser and type localhost to check whether it works or not.
To install phpMyAdmin run:
sudo apt-get install phpmyadmin
If you have latest package of phpMyAdmin in the repository then you will have to enter the password to mysql database (configuration tables are created there) and also login and password for constant using during the installation.
Restart Apache:
sudo /etc/init.d/apache2 restart
Check if the installation was a success by navigating http://localhost/phpmyadmin. If you install phpMyAdmin not on a local server put your server IP instead of localhost.
If this doesn't work you can fix it. All you have to do is to put
include /etc/phpmyadmin/apache.conf
in the end of /etc/apache2/apache2.conf file.
After that restart apache again.
No comments:
Post a Comment