Hello all,

I've been struggling with this problem for weeks.

I make all my Drupal sites on a local computer and then migrate them to the server using Backup and Migrate.

While importing my sql-database on the server I always get these 2 error:

* Could not perform the restore because the script timed out. Try increasing your PHP max_execution_time setting.

* The operation timed out. Try increasing your PHP max_execution_time setting.

I'm using Drupal 7.7 and my hosting provider is Servage.

Thanks in advance for your help,
With kind regards, Ben


yelvington’s picture

(Please do not post in "deprecated" topics -- see the notice in this section.)

PHP settings are external to Drupal. See http://php.net/manual/en/info.configuration.php.

max_execution_time integer
This sets the maximum time in seconds a script is allowed to run before it is terminated by the parser. This helps prevent poorly written scripts from tying up the server. The default setting is 30. When running PHP from the command line the default setting is 0.

The maximum execution time is not affected by system calls, stream operations etc. Please see the set_time_limit() function for more details.

You can not change this setting with ini_set() when running in safe mode. The only workaround is to turn off safe mode or by changing the time limit in the php.ini.

Your web server can have other timeout configurations that may also interrupt PHP execution. Apache has a Timeout directive and IIS has a CGI timeout function. Both default to 300 seconds. See your web server documentation for specific details.

If your server allows it, you can change this (temporarily) in .htaccess.