Setup the Server
How to setup Apache + PHP + PHP-FPM on Ubuntu 20
Add current user to www-data group
sudo usermod -a -G www-data `whoami`Install Apache + PHP
For installing php7.4 version on x86 Ubuntu 20
sudo apt install software-properties-common
sudo add-apt-repository ppa:ondrej/phpFor installing latest Apache2 version
sudo add-apt-repository ppa:ondrej/apache2Install Apache2 + PHP
sudo apt update
sudo apt install apache2 php -y
sudo apt install php-cli php-pear php-dev php-zip php-curl php-xmlrpc php-gd php-mysql php-mbstring php-xml libapache2-mod-php php-bcmath php-simplexml -ySetup PHP-FPM
Install required libraries
Enable Apache Mods
Add Code Block in <VirtualHost>
Restart Apache Service
To check is FPM is working
Install Composer
Install NPM
Git Clone Project
Enable rewrite mod for Apache2 so .htacess file is working.
Add rewrite rules and change DocumentRoot in /etc/apache2/sites-available/000-default.conf
Prepare directory
Clone git
Allow permissions for storage system
Cron on Reboot the Server
Setup Bash File
Tell cron to execute the file on reboot
Last updated