Installs LAMP with PHP 5.6 on Ubuntu 16.04
Create a file called install.sh
in your server.
This is a one working script for those are struggling to install Magento 1.9 in ubuntu 16.04, or any other latest versions of Ubuntu. Magento 1.9 supports only PHP 5.6 , but PHP 7 is coming as default in latest ubuntu versions.
I have no rights on this scripts, as I copied this from this Gist page.Ā I don’t want to lose these codes. š
#!/bin/bash sudo add-apt-repository ppa:ondrej/php sudo apt-get update sudo apt-get install -y apache2 sudo ufw allow in "Apache Full" sudo apt-get install -y mysql-server # After running this command, select (Y), option 2, then (Y) for the rest of the prompts. sudo mysql_secure_installation sudo apt install -y php5.6 libapache2-mod-php5.6 php5.6-curl php5.6-gd php5.6-mbstring php5.6-mcrypt php5.6-mysql php5.6-xml php5.6-xmlrpc # This will, and should, return a "does not exist!" message. sudo a2dismod php7.0 # This will, and should, return a "already enabled" message. sudo a2enmod php5.6 sudo systemctl restart apache2
Did this post help you?
Tutsplanet brings in-depth and easy tutorials to understand even for beginners. This takes a considerable amount of work. If this post helps you, please consider supporting us as a token of appreciation:
- Just want to thank us? Buy us a Coffee
- May be another day? Shop on Amazon using our links.
Your prices won't change but we get a small commission.
Leave a Reply