Skip to content

Instantly share code, notes, and snippets.

@pinoywebs123
Created July 10, 2020 13:56
Show Gist options
  • Save pinoywebs123/1dd77e61e269115a9b95d2bbde7e9d95 to your computer and use it in GitHub Desktop.
Save pinoywebs123/1dd77e61e269115a9b95d2bbde7e9d95 to your computer and use it in GitHub Desktop.
__________________________
Setup LAMP_________________________
- sudo apt update
- sudo apt install -y git curl wget zip unzip
- sudo apt install apache2
- sudo systemctl status apache2
- sudo ufw allow in "Apache Full"
- sudo a2enmod rewrite - for routes
- sudo systemctl restart apache2
- sudo apt install mysql-server - mysql
- sudo mysql_secure_installation
- sudo mysql -u root -p
- sudo apt install php libapache2-mod-php php-mysql
- sudo nano /etc/apache2/mods-enabled/dir.conf - priority read index.php
- sudo systemctl restart apache2
- sudo nano /var/www/html/info.php
- <?php phpinfo(); ?> - output php info
- http://127.0.0.1/info.php
____________________________
PHP EXTENSIONS___________________________
sudo apt install php7.4-common php7.4-cli php7.4-gd php7.4-mysql php7.4-curl php7.4-intl php7.4-mbstring php7.4-bcmath php7.4-imap php7.4-xml php7.4-zip
sudo apt-get install php7.2-curl php7.2-gd php7.2-json php7.2-mbstring php7.2-intl php7.2-mysql php7.2-xml php7.2-zip
sudo apt -y install software-properties-common
sudo add-apt-repository ppa:ondrej/php
sudo apt-get update
sudo apt -y install php7.4
-check php -v
sudo apt-get install -y php7.4-mbstring
sudo apt-get install -y php7.4-{common,cli,gd,mysql,curl,intl,bcmath,imap,xml,zip}
sudo apt-get install php-imagick
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment