Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save sudarshann/5be99a783b20d689404f3b4532c0b935 to your computer and use it in GitHub Desktop.
Save sudarshann/5be99a783b20d689404f3b4532c0b935 to your computer and use it in GitHub Desktop.
apt update
apt upgrade
apt install apache2
a2enmod headers rewrite
systemctl restart apache2
sudo ufw allow in "Apache"
sudo add-apt-repository ppa:ondrej/php
sudo apt-get update
sudo apt install curl git unzip
sudo apt install php7.3 libapache2-mod-php php7.3-mysql
sudo apt-get install php7.3-cli php7.3-common php7.3-json php7.3-opcache php7.3-mysql php7.3-mbstring php7.3-zip php7.3-fpm php7.3-intl php7.3-simplexml php7.3-apcu php7.3-cli php7.3-memcached php7.3-pdo php7.3-zip php7.3-gd php7.3-xml php7.3-soap
sudo apt-get -y install gcc make autoconf libc-dev pkg-config
sudo apt-get -y install libmcrypt-dev
pecl install mcrypt
nano mcrypt.ini
extension=mcrypt.so
phpenmod mcrypt
sudo apt install mysql-client
mkdir /var/www/<app-name>
chown -R www-data:www-data /var/www/<app-name>
nano /etc/apache2/sites-available/<app-domain>.conf
<VirtualHost *:80>
ServerName swap-europe.ru
ServerAlias www.swap-europe.ru
ServerAdmin contact@<domain.com>
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>
sudo apt install certbot python3-certbot-apache
certbot
cd ~ && curl -sS https://getcomposer.org/installer -o composer-setup.php
sudo php composer-setup.php --install-dir=/usr/local/bin --filename=composer
sudo apt-get purge do-agent
curl -sSL https://repos.insights.digitalocean.com/install.sh -o /tmp/install.sh
sudo bash /tmp/install.sh
/opt/digitalocean/bin/do-agent --version
@sudarshann
Copy link
Author

sudarshann commented Sep 14, 2021

For prestashop

sudo apt-get install php7.2-cli php7.2-fpm php7.2-curl php7.2-gd php7.2-mysql php7.2-mbstring zip unzip php7.2-cli php7.2-common php7.2-json php7.2-opcache php7.2-mysql php7.2-mbstring php7.2-zip php7.2-fpm php7.2-intl php7.2-simplexml php7.2-apcu php7.2-cli php7.2-memcached php7.2-pdo php7.2-zip php7.2-gd php7.2-xml php7.2-soap

a2enmod proxy_fcgi setenvif
NOTICE: a2enconf php7.2-fpm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment