Skip to content

Instantly share code, notes, and snippets.

@LinuxFintech
Last active June 7, 2021 16:44
Show Gist options
  • Save LinuxFintech/bb2fecd12626e1a35019c3e20f7f60fa to your computer and use it in GitHub Desktop.
Save LinuxFintech/bb2fecd12626e1a35019c3e20f7f60fa to your computer and use it in GitHub Desktop.
PHPmyAdmin For LAMP
#Install PHP 7.4 With Modules
sudo apt-get update && apt-get upgrade
sudo apt-get install software-properties-common
sudo add-apt-repository ppa:ondrej/apache2
sudo apt-get update
sudo apt install php7.4 libapache2-mod-php7.4 php7.4-common php7.4-mysql php7.4-gmp php7.4-ldap php7.4-curl php7.4-intl php7.4-mbstring php7.4-xmlrpc php7.4-gd php7.4-bcmath php7.4-xml php7.4-cli php7.4-zip
sudo nano /etc/php/7.4/apache2/php.ini
file_uploads = On
allow_url_fopen = On
short_open_tag = On
memory_limit = 256M
upload_max_filesize = 100M
max_execution_time = 360
date.timezone = America/Chicago
#Now Save and Exit
sudo systemctl restart apache2.service
# Install PHPmyAdmin
apt update -y
apt upgrade -y
apt autoremove
apt update -y
apt install phpmyadmin
apt install -y php-mbstring
apt install gettext
apt install php libapache2-mod-php
a2enmod php7.4
service apache2 restart
service apache2 reload
apt-get install php7.4-mysqli
service apache2 restart
service apache2 reload
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment