Migrate DB shows Set Time Limit error

Posted on by MWD

Using RunCloud.io as a ServerPilot alternative we used a WordPress Plugin called Migrate DB. However, when we went to export the DB contents we got this PHP error PHP Function Disabled — The set_time_limit() function is currently disabled on your server.

To fix this you will need root access.

Login via ssh or if you wish, with your text editor. Then navigate to /etc/php<version ie 70>rc/fpm.d/webapplicationName.conf

On line #23 you will see this.

php_admin_value[disable_functions] = getmyuid,passthru,leak,listen,diskfreespace,tmpfile,link,ignore_user_abort,shell_exec,dl,set_time_limit,exec,system,highlight_file,source,show_source,fpassthru,virtual,posix_ctermid,posix_getcwd,posix_getegid,posix_geteuid,posix_getgid,posix_getgrgid,posix_getgrnam,posix_getgroups,posix_getlogin,posix_getpgid,posix_getpgrp,posix_getpid,posix,_getppid,posix_getpwuid,posix_getrlimit,posix_getsid,posix_getuid,posix_isatty,posix_kill,posix_mkfifo,posix_setegid,posix_seteuid,posix_setgid,posix_setpgid,posix_setsid,posix_setuid,posix_times,posix_ttyname,posix_uname,proc_open,proc_close,proc_nice,proc_terminate,escapeshellcmd,ini_alter,popen,pcntl_exec,socket_accept,socket_bind,socket_clear_error,socket_close,socket_connect,symlink,posix_geteuid,ini_alter,socket_listen,socket_create_listen,socket_read,socket_create_pair,stream_socket_server

Simply remove “set_time_limit” and save the file

Finally you need to restart PHP using ssh command

systemctl reload php70rc-fpm
Posted in Wordpress | Leave a comment

Great cost for great hosting