Skip to content

Instantly share code, notes, and snippets.

@iruwl
Last active February 4, 2020 10:22
Show Gist options
  • Save iruwl/c3398bf9765c82a917f9e512e87fbfec to your computer and use it in GitHub Desktop.
Save iruwl/c3398bf9765c82a917f9e512e87fbfec to your computer and use it in GitHub Desktop.
Install Apache2 PHP5 on Linux #apache2 #php #linux
1. sudo apt-get install apache2
2. echo "ServerName localhost" | sudo tee /etc/apache2/conf-available/fqdn.conf
3. sudo a2enconf fqdn
4. service apache2 reload
5. sudo apt-get install php5 php5-cli libapache2-mod-php5 php5-mcrypt
6. list available php5 modules
apt-cache search php5-
7. sudo apt-get install mysql-server libapache2-mod-auth-mysql php5-mysql
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment