Skip to content

Instantly share code, notes, and snippets.

@sudarshann
Last active August 12, 2023 08:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sudarshann/127d25937c55e2f4f3797a8027c88108 to your computer and use it in GitHub Desktop.
Save sudarshann/127d25937c55e2f4f3797a8027c88108 to your computer and use it in GitHub Desktop.
These are just instructions with list of commands needs to be followed to install Lamp stack with Apache, php 5.6, mysql 5.6. This configured for prestashop 1.6 installation
# These are just instructions with list of commands needs to be followed to install Lamp stack with Apache, php 5.6, mysql 5.6. This configured for prestashop 1.6 installation
sudo add-apt-repository ppa:ondrej/php
sudo apt upgrade
sudo apt install apache2 php5.6 curl git unzip libapache2-mod-php5.6 php5.6-mysql php5.6-curl php5.6-cli php5.6-common php5.6-json php5.6-opcache php5.6-mysql php5.6-mbstring php5.6-zip php5.6-fpm php5.6-intl php5.6-simplexml php5.6-apcu php5.6-cli php5.6-memcached php5.6-pdo php5.6-zip php5.6-gd php5.6-xml php5.6-soap
sudo a2dismod php8.2
sudo a2enmod php5.6
sudo update-alternatives --config php
sudo a2enmod headers
systemctl reload apache2
wget https://downloads.mysql.com/archives/get/p/23/file/mysql-server_5.6.51-1debian9_amd64.deb-bundle.tar
tar -xvf mysql-server_5.6.51-1debian9_amd64.deb-bundle.tar
apt install libaio1 libncurses5 libtinfo5
apt --fix-broken install
mkdir /var/www/ct
nano /etc/apache2/sites-available/<domain>.conf
<VirtualHost *:80>
ServerName <domain>
# ServerAlias www.<domain>
ServerAdmin contact@<domain>
DocumentRoot /var/www/<app-name>
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
<Directory /var/www/<app-name>/>
Options Indexes FollowSymLinks
AllowOverride all
Require all granted
</Directory>
</VirtualHost>
a2ensite <domain>.conf
systemctl reload apache2
sudo apt install certbot python3-certbot-apache
certbot
#for digital ocean
curl -sSL https://repos.insights.digitalocean.com/install.sh | sudo bash
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment