Home  >  Article  >  Backend Development  >  PHP5.6 cannot execute the exec function under centos

PHP5.6 cannot execute the exec function under centos

PHP中文网
PHP中文网Original
2017-03-30 14:53:492681browse

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)!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn