Configure web server
Update system first
sudo apt updateOption 1: apache2
1. Install apache2 with php and all required extensions if you still didn't have.
sudo apt install -y apache2 php php-zip php-xml php-mysql php-gd php-bcmath php-apcu2. Edit /etc/apache2/sites-enabled/default.conf or 000-default.conf
/etc/apache2/sites-enabled/default.conf or 000-default.confDocumentRoot /var/www/myaac3. Add following directives between <VirtualHost> block.
<VirtualHost> block.4. Restart apache
Option 2: nginx
1. Install nginx with php and all required extensions if you still didn't have.
2. Edit /etc/nginx/sites-enabled/default
/etc/nginx/sites-enabled/default1.
2.
3. Restart nginx
Last updated