-
-
Save codex73/76b9e358ab51148b36bb6df3954e2d22 to your computer and use it in GitHub Desktop.
How to install Apache 2.4 and PHP 5.6 on Amazon Linux
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
| # AWS EC2 | |
| # Remove Apache and PHP old version | |
| # Install Apache 2.4, Mod_SSL and PHP 5.6 | |
| # | |
| sudo service httpd stop | |
| sudo yum erase httpd httpd-tools apr apr-util | |
| sudo yum remove php-* | |
| sudo yum install php56 | |
| sudo yum install php56-xml php56-xmlrpc php56-soap php56-gd php56-mbstring | |
| sudo yum install php56-mysqlnd | |
| sudo yum install mod24_ssl | |
| sed -i -e 's/SSLMutex/Mutex/g' /etc/httpd/conf.d/ssl.conf | |
| sudo service httpd start | |
| sudo service httpd restart | |
| # | |
| # Update Apache, Mod_SSL and PHP | |
| # | |
| #sudo yum update php56 | |
| #sudo yum update mod24_ssl | |
| #sudo yum update httpd httpd-tools |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment