The php.ini file is a default configuration file that read on PHP starts up. The PHP settings and configuration can be modified by the php.ini file.
If you want to change the PHP settings on Ubuntu, php.ini
file is an easy and most effective way to do it. Follow the below steps to modify the PHP configuration file (php.ini) using the command line on Ubuntu.
sudo nano /etc/php5/apache2/php.ini
max_execution_time = 90
sudo service apache2 restart
Thanks a lot it helped me.