Backup Fatal error: Maximum execution time of 30 seconds exceeded

Permalink
I've got C5 5.4.1 and have ran backups before just fine, but this morning when I tried I get this message:

Fatal error: Maximum execution time of 30 seconds exceeded in /updates/concrete5.4.1/concrete/libraries/backup.php on line 72

I've tried several times since and get the same error.

Other sites on my hosted server run backups successfully.

Any suggestions?

dibbc
 
concrete5russia replied on at Permalink Reply
concrete5russia
Try to change max_execution_time in php.ini file (if you have access).
Or add such lines to file .htaccess
<IfModule mod_php.c>
php_value max_execution_time 90
</IfModule>
dibbc replied on at Permalink Reply
dibbc
Right now my .htaccess file looks like this:

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d

RewriteRule ^(.*)$ index.php/$1 [L]

</IfModule>

I added the three lines you mentioned to the end and it didn't work, still got same error.

Where is the php.ini file you mentioned?
guythomas replied on at Permalink Reply
guythomas
PHP.ini is probably hidden away within your hosting menus. It is not typically within a directory in your file manager. Do a search of your hosts documentation, or FAQ for php.ini. You may find it that way.
dbradley replied on at Permalink Reply
dbradley
This solved the issue for me, thanks.
Running WAMP on windows server, click W icon, PHP/PHP.ini, update this

;;;;;;;;;;;;;;;;;;;
; Resource Limits ;
;;;;;;;;;;;;;;;;;;;

; Maximum execution time of each script, in seconds
;http://php.net/max-execution-time...
; Note: This directive is hardcoded to 0 for the CLI SAPI
;max_execution_time = 30 ;;;removed and increased to 120
max_execution_time = 120