×

Pages

Labels

Search

×

Pages

×
×

Notice

The site is currently undergoing scheduled maintenance, and may not function correctly. Please come back later.

Advertisement

advertisement

Setup Lubuntu 18.04 AMD64 As A LAMP

LAMP (Linux Apache MySQL PHP) is an acronym used to refer to a linux webserver equipped with Apache, MySQL, and PHP.

Steps:
- In terminal type "sudo apt-get update && sudo apt-get install apache2 mysql-server php libapache2-mod-php php-mysql phpmyadmin php-mbstring php-gettext".
- You will be prompted to choose a webserver to run PHPMyAdmin. Use the arrow up/down keys to move the cursor to "apache2" (though it should be there by default), the space bar to select "apache2", press the tab key to move the cursor to "Ok", and press the enter key to submit.
- You will be prompted to choose whether or not to "Configure database for phpmyadmin with dbconfig-common". Use the arrow left/right keys to move the selector to "Yes" (it should be there by default), and then press the enter key to submit.
- You will be prompted to create a password for phpmyadmin to use with MySQL, do so. After entering the password, use the tab key to move the selection to "Ok", and then press the enter key to submit. You'll be prompted to confirm by re-entering your password. You'll use this password to login to phpMyAdmin as username "phpmyadmin".

Notes:
- Upon completion, if you navigate your web browser to "http://localhost/index.html", "http://localhost", or "http://127.0.0.1" you should see a webpage. If you navigate your web browser to "http://localhost/phpmyadmin", or "http://127.0.0.1/phpmyadmin" you should see the PHPMyAdmin login page.
- You may also wish to install "php-gmp", and "php-imagick". To do so, in terminal tpe "sudo apt-get update & sudo apt-get install php-gmp php-imagick".
- These steps don't cover configuring a firewall rules. By default, no firewall rules are setup on Lubuntu. To see the current rules, in terminal type "sudo iptables -L".
- These steps don't cover hardening MySQL Server.
- To check the status of Apache, in terminal type "sudo systemctl status apache2". Press the q key to exit the report. To restart Apache, in terminal type "sudo systemctl restart apache2". To stop Apache, in terminal type "sudo systemctl stop apache2". To start Apache, in terminal type "sudo systemctl start apache2".
- These steps don't cover hardening PHPMyAdmin
- These steps don't cover setting up virtualhosts in Apache.
- Upon completion, you can check to see if PHP is working correctly by creating a PHP file which runs phpinfo(). To do so, type in terminal "echo '<?php phpinfo(); ?>' | sudo tee /var/www/html/info.php". In your web browser navigate to "http://localhost/info.php". You should see a page detailing your php and apache setup. This file is typically not something you want others to view so you should delete it immediately. To do so, type in terminal "sudo rm /var/www/html/info.php".

License:Comprehensible Open License 1.0
Comprehensible Open License 1.0:

Material published under this license can be modified, forked, incorporated into other works, and distributed, provided the material remains under this license. Material published under this license is free of charge! Material published under this license is bound to the license release number it was published under. Material published under this license is provided as is. The author of material published under this license shan't be held liable for any negative occurrences that arise from use of the material the author published under this license.

Advertisment

advertisement
Copyright © James Daniel Marrs Ritchey.

Siteviews