TITLE:
WP Toolkit cloning fails, same symptoms as in EXTWPTOOLK-456 (formerly resolved 03/31/2017)
PRODUCT, VERSION, OPERATING SYSTEM, ARCHITECTURE:Onyx 17.8 #40
WP Toolkit 3.6.0-1601
CentOS 7.6
PROBLEM DESCRIPTION:WP Toolkit 3.6.0-1601
CentOS 7.6
Please see EXTWPTOOLK-456 and user ticket case #154684.
On all of our 17.8 #40 installations with WP Toolkit release 3.6.0-1601 the WP Toolkit cloning function fails with
"Unable to check database. Error message: Cannot do 'run_mysql_command': The PHP functions `proc_open()` and/or `proc_close()` are disabled. Please check your PHP ini directive `disable_functions` or suhosin settings."
panel.log entry:
[2019-02-23 08:37:00.581] ERR [1] '/usr/local/psa/admin/bin/filemng' '<webspace user account>' 'exec' '/var/www/vhosts/<subscription>/<domain>' '/opt/plesk/php/7.2/bin/php' '-d' 'safe_mode=off' '-d' 'display_errors=off' '-d' 'opcache.enable_cli=off' '-d' 'open_basedir=' '-d' 'error_reporting=341' '-c' '/var/www/vhosts/system/<domain>/etc/php.ini' '/usr/local/psa/admin/plib/modules/wp-toolkit/vendor/wp-cli/wp-cli/php/boot-fs.php' '--path=/var/www/vhosts/<subscription>/<domain>' 'db' 'check' '--quick' '--silent' failed with code 1.
stdout:
stderr:
Cannot do 'run_mysql_command': The PHP functions `proc_open()` and/or `proc_close()` are disabled. Please check your PHP ini directive `disable_functions` or suhosin settings.
{"err_code":true,"err_message":"Cannot do 'run_mysql_command': The PHP functions `proc_open()` and\/or `proc_close()` are disabled. Please check your PHP ini directive `disable_functions` or suhosin settings."}
STEPS TO REPRODUCE:On all of our 17.8 #40 installations with WP Toolkit release 3.6.0-1601 the WP Toolkit cloning function fails with
"Unable to check database. Error message: Cannot do 'run_mysql_command': The PHP functions `proc_open()` and/or `proc_close()` are disabled. Please check your PHP ini directive `disable_functions` or suhosin settings."
panel.log entry:
[2019-02-23 08:37:00.581] ERR [1] '/usr/local/psa/admin/bin/filemng' '<webspace user account>' 'exec' '/var/www/vhosts/<subscription>/<domain>' '/opt/plesk/php/7.2/bin/php' '-d' 'safe_mode=off' '-d' 'display_errors=off' '-d' 'opcache.enable_cli=off' '-d' 'open_basedir=' '-d' 'error_reporting=341' '-c' '/var/www/vhosts/system/<domain>/etc/php.ini' '/usr/local/psa/admin/plib/modules/wp-toolkit/vendor/wp-cli/wp-cli/php/boot-fs.php' '--path=/var/www/vhosts/<subscription>/<domain>' 'db' 'check' '--quick' '--silent' failed with code 1.
stdout:
stderr:
Cannot do 'run_mysql_command': The PHP functions `proc_open()` and/or `proc_close()` are disabled. Please check your PHP ini directive `disable_functions` or suhosin settings.
{"err_code":true,"err_message":"Cannot do 'run_mysql_command': The PHP functions `proc_open()` and\/or `proc_close()` are disabled. Please check your PHP ini directive `disable_functions` or suhosin settings."}
Create a Wordpress instance or use an existing instance.
Click the "Clone instance" button.
ACTUAL RESULT:Click the "Clone instance" button.
"Unable to check database. Error message: Cannot do 'run_mysql_command': The PHP functions `proc_open()` and/or `proc_close()` are disabled. Please check your PHP ini directive `disable_functions` or suhosin settings."
EXPECTED RESULT:Ignore proc_open and proc_close settings. These must not be used, because in shared hosting environments these functions must always stay disabled in subscriptions.
ANY ADDITIONAL INFORMATION:Reinstallation of current patches did not resolve it. Also reported in user ticket #154684.
YOUR EXPECTATIONS FROM PLESK SERVICE TEAM:Confirm bug