To install PHP:
sudo apt-get install libapache2-mod-php php php-gd php-zip php-xml php-mbstring
For Apache:
sudo vim /etc/php/7.2/apache2/php.ini
Line:
short_open_tag = Off
Change to:
short_open_tag = On
And for CLI too:
sudo vim /etc/php/7.2/cli/php.ini
Line:
short_open_tag = Off
Change to:
short_open_tag = On
For Apache:
sudo vim /etc/php/7.2/apache2/php.ini
Line:
upload_max_filesize = 2M
post_max_size = 8M
Change to:
upload_max_filesize = 200M
post_max_size = 208M
For Apache:
sudo vim /etc/php/7.2/apache2/php.ini
Line:
max_input_vars = 1000
Change to:
max_input_vars = 100000
To apply any changes in php.ini:
sudo service apache2 restart