Edjet LMS Server

Install and configure PHP

To install PHP:
sudo apt-get install libapache2-mod-php php php-gd php-zip php-xml php-mbstring

Switch short open tag On

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

Set max upload size

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

Set max input vars

For Apache:
sudo vim /etc/php/7.2/apache2/php.ini

Line:
max_input_vars = 1000

Change to:
max_input_vars = 100000

Restart webserver

To apply any changes in php.ini:
sudo service apache2 restart

Related