PHP5.6 cannot execute the exec function under centos

PHP中文网
Release: 2023-03-01 08:28:02
Original
2644 people have browsed it

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

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!