Home >Backend Development >PHP Tutorial >PHP5.6 cannot execute the exec function under centos
linux - PHP5.6 cannot execute the exec function under centos
I have removed this function in disable_functions, no error is reported, but it is not executed.
I found a lot on the Internet that it is safe mode, but there is no safe mode in 5.6, and I have changed the running permission of the code to 777
I have removed this function in disable_functions, no error is reported, but it is not executed.
I found a lot on the Internet that it is safe mode, but there is no safe mode in 5.6, and I have changed the running permission of the code to 777
Initial judgment is that it is selinux...
php.ini safe_mode = On Try this Is it possible? But it can only be executed in the directory set by safe_mode_exec_dir
The above is the content that Linux-PHP5.6 cannot execute the exec function under centos. For more related content, please pay attention to the PHP Chinese website (www.php.cn)!