Install Server Apache and PHP 7.4 on Ubuntu 20.04

  Uncategorized
sudo apt update
sudo apt install apache2
sudo ufw allow in "Apache"
sudo apt -y install software-properties-common
sudo apt -y install software-properties-common
sudo add-apt-repository ppa:ondrej/php
sudo apt-get update
sudo apt -y install php7.4
apt install php7.4-mbstring php7.4-pgsql php7.4-pdo-pgsql php7.4-mysql php7.4-zip php7.4-curl php7.4-xml php7.4-mailparse
max_execution_time = 300
max_input_time = 600
max_input_vars = 100000
post_max_size = 1024M
upload_max_filesize = 1024M
max_file_uploads = 200
;zend_extension=opcache.so
<Directory /var/www/>
        DirectoryIndex index.php index.html
        Options Indexes FollowSymLinks
        AllowOverride All
        Require all granted
</Directory>
a2enmod rewrite
service apache2 restart
sudo apt install certbot python3-certbot-apache
<VirtualHost *:80>
        ServerName refinancestudio.com
        DocumentRoot /var/www/html
</VirtualHost>
certbot --apache