Warning: exec() has been disabled for security reasons
-
Hi Guys,
I’ve recently upgraded from version 3.3.4 to 3.4.3 and now I’m getting warnings:
Warning: exec() has been disabled for security reasons in <my_virtual_host_dir>/wp-content/plugins/backupwordpress/classes/backup/class-backup-utilities.php on line 55
Warning: Cannot modify header information – headers already sent by (output started at <my_virtual_host_dir>/wp-content/plugins/backupwordpress/classes/backup/class-backup-utilities.php:55) in <my_virtual_host_dir>/wp-includes/option.php on line 820
Warning: Cannot modify header information – headers already sent by (output started at <my_virtual_host_dir>/wp-content/plugins/backupwordpress/classes/backup/class-backup-utilities.php:55) in <my_virtual_host_dir>/wp-includes/option.php on line 821
Looking at the is_exec_available() code its the line:
// Can we issue a simple echo command?
exec( ‘echo backupwordpress’, $output, $return );That is causing the warning.
I’ve appended some info from phpinfo() if that is useful.
Regards
Alex Shepherd
disable_functions exec shell_exec system passthru popen virtual show_source pclose
PHP Version 5.3.10-1ubuntu3.21System Linux planck 3.13.0-77-generic #121~precise1-Ubuntu SMP Wed Jan 20 18:02:20 UTC 2016 x86_64
Build Date Oct 28 2015 01:39:33
Server API CGI/FastCGI
Virtual Directory Support disabled
Configuration File (php.ini) Path /etc/php5/cgi
Loaded Configuration File /etc/php5/virtual/wellwritten.nz.ini
Scan this dir for additional .ini files /etc/php5/cgi/conf.d
Additional .ini files parsed /etc/php5/cgi/conf.d/apc.ini, /etc/php5/cgi/conf.d/curl.ini, /etc/php5/cgi/conf.d/gd.ini, /etc/php5/cgi/conf.d/imagick.ini, /etc/php5/cgi/conf.d/imap.ini, /etc/php5/cgi/conf.d/ioncube.ini, /etc/php5/cgi/conf.d/ldap.ini, /etc/php5/cgi/conf.d/mcrypt.ini, /etc/php5/cgi/conf.d/mysql.ini, /etc/php5/cgi/conf.d/mysqli.ini, /etc/php5/cgi/conf.d/odbc.ini, /etc/php5/cgi/conf.d/pdo.ini, /etc/php5/cgi/conf.d/pdo_mysql.ini, /etc/php5/cgi/conf.d/pdo_odbc.ini, /etc/php5/cgi/conf.d/pdo_pgsql.ini, /etc/php5/cgi/conf.d/pdo_sqlite.ini, /etc/php5/cgi/conf.d/pgsql.ini, /etc/php5/cgi/conf.d/pspell.ini, /etc/php5/cgi/conf.d/recode.ini, /etc/php5/cgi/conf.d/sqlite.ini, /etc/php5/cgi/conf.d/sqlite3.ini, /etc/php5/cgi/conf.d/suhosin.ini, /etc/php5/cgi/conf.d/tidy.ini, /etc/php5/cgi/conf.d/xmlrpc.ini, /etc/php5/cgi/conf.d/xsl.ini
PHP API 20090626
PHP Extension 20090626
Zend Extension 220090626
Zend Extension Build API220090626,NTS
PHP Extension Build API20090626,NTS
Debug Build no
Thread Safety disabled
Zend Memory Manager enabled
Zend Multibyte Support disabled
IPv6 Support enabled
Registered PHP Streams https, ftps, compress.zlib, compress.bzip2, php, file, glob, data, http, ftp, zip, phar
Registered Stream Socket Transports tcp, udp, unix, udg, ssl, sslv3, tls
Registered Stream Filters zlib.*, bzip2.*, convert.iconv.*, string.rot13, string.toupper, string.tolower, string.strip_tags, convert.*, consumed, dechunk, mcrypt.*, mdecrypt.*
- The topic ‘Warning: exec() has been disabled for security reasons’ is closed to new replies.