Last active
February 3, 2020 07:30
-
-
Save UnderlineWords/cfe311682c835829e260487d126624dc to your computer and use it in GitHub Desktop.
LAMP Stack Installation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo apt update | |
# | |
# APACHE2 | |
# | |
sudo apt install apache2 | |
# | |
# PHP 7.3 | |
# | |
sudo apt update | |
# PHP for Nginx | |
sudo apt install -y php7.3-fpm | |
#PHP for Apache | |
sudo apt install php7.3 | |
sudo apt -y install curl php7.3-pgsql php7.3-curl php7.3-json php7.3-mbstring php7.3-gd php7.3-intl php7.3-xml php7.3-imagick php7.3-redis php7.3-zip | |
# PHP module for the Apache 2 webserver | |
sudo apt install libapache2-mod-php7.3 | |
# if php7.3 is not enable | |
sudo a2enmod php7.3 | |
sudo systemctl restart apache2.service | |
# | |
# MYSQL | |
# | |
sudo apt install mysql-server php7.3-mysql | |
# ############################################################################################################# | |
# The installer will prompt for root password, This password will work for your MySQL root user. | |
# After installing MySQL execute the following command for initial settings of MySQL server. | |
# You will see that script will prompt for more settings than earlier MySQL versions like password validation policy etc. | |
sudo mysql_secure_installation | |
# ############################################################################################################# | |
# | |
# PHPMYADMIN | |
# | |
sudo apt install phpmyadmin php-mbstring php-gettext | |
Please note : When the prompt appears, “apache2” is highlighted, but not selected. If you do not hit SPACE to select Apache, the installer will not move the necessary files during installation. Hit SPACE, TAB, and then ENTER to select Apache. | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment