Skip to Content

PHP Fatal error

PHP Fatal error:  Maximum execution time of 30 seconds exceeded in
/var/www/ezlogin/application/third_party/vendor/phpseclib/phpseclib/phpseclib/Math/BigInteger/Engines/PHP.php 


This error might occur in Apache web server error logs due to the execution time that has exceeded the maximum allowed time of 30 seconds due to high data.

1) To resolve the above error, you can increase the value for max_execution_timein the php.ini file by editing. Refer to the below step.

root@gateway:~# nano /etc/php/8.1/apache2/php.ini      ---> (change into corresponding PHP version)

max_execution_time = 3000

2) And restart the Apache web service. 

root@gateway:~# systemctl restart apache2

To Check the php.ini file whether changes have been reflected.

root@gateway:~# cat /etc/php/8.1/apache2/php.ini | grep -v '^\s*#' | grep 'max_execution_time'

max_execution_time = 3000