Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to solve the problem that the php exec function does not take effect

2025-02-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/02 Report--

This article mainly introduces "how to solve the problem that the php exec function does not take effect". In the daily operation, I believe that many people have doubts about how to solve the problem that the php exec function does not take effect. The editor consulted all kinds of data and sorted out a simple and easy-to-use method of operation. I hope it will be helpful for you to answer the doubt of "how to solve the problem that the php exec function does not take effect". Next, please follow the editor to study!

The php exec function does not have an effective solution: 1, open the / etc/php.ini file, delete the exec, then save the restart php-fpm;2, and change the value of "safe_mode" to off.

This article operating environment: Windows7 system, PHP7.1 version, DELL G3 computer

What if the php exec function doesn't work?

The solution to the ineffectiveness of php.exec

1.

The disabling method is as follows:

Open the / etc/php.ini file

Find disable_functions and add the name of the function to be disabled, as follows:

Phpinfo,eval,passthru,exec,system,chroot,scandir,chgrp,chown,shell_exec,proc_open,proc_get_status,ini_alter,ini_alter,ini_restore,dl,pfsockopen,openlog,syslog,readlink,symlink,popepassthru,stream_socket_server,fsocket,fsockopen

Instead, the way to turn it on is to delete the exec, save it, and restart php-fpm

Number two.

Open the / etc/php.ini file

Safe_mode = change on to off. I use php5.4. Default is off.

Disable_functions= at this point, on "how to solve the problem of php exec function does not take effect" on the end of the study, I hope to be able to solve your doubts. The collocation of theory and practice can better help you learn, go and try it! If you want to continue to learn more related knowledge, please continue to follow the website, the editor will continue to work hard to bring you more practical articles!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report