PHP hint Warning:phpinfo () has been disabled function disabled workaround, warningphpinfo_php tutorial

Source: Internet
Author: User

PHP hint Warning:phpinfo () has been disabled function disabled workaround, Warningphpinfo


This example describes the workaround for PHP hint Warning:phpinfo () has been disabled function disabled. Share to everyone for your reference. The specific analysis is as follows:

Today in a friend server testing a Web site when I was testing phpinfo encountered PHP Warning:phpinfo () have been disabled for security reasons hint, according to the meaning of the words I summed up the solution, Let's take a look here.

When you run Phpinfo, you are prompted as follows:PHP Warning:phpinfo () has been disabled for security reasons in xx.php on line XX

The meaning of this passage is to tell us that due to security considerations the Phpinfo () function is disabled, if you have server administrative privileges, modify the php.ini profile parameter and restart Apache re-enable.

Open the PHP installation path open the php.ini file, specific instance: in the php.ini disable_functions configuration, the default configuration, the CLI execution function is forbidden, if necessary, in php.ini will be disable_ functions = Phpinfo,exec, Popen, System ...., remove the function you need to perform from the list and restart Apache.

is completely a configuration problem, the Linux workaround is to edit the PHP configuration file:

Vi/usr/local/php/etc/php.ini

Look for disable_functions string, will be the following scandir delete, hint: VI can enter/, enter the search mode, easy to find disable_functions.

Restart PHP in effect: copy code code as follows:/ETC/INIT.D/PHP-FPM restart

I hope this article is helpful to everyone's PHP programming.

http://www.bkjia.com/PHPjc/929095.html www.bkjia.com true http://www.bkjia.com/PHPjc/929095.html techarticle PHP hint Warning:phpinfo () has been disabled function to disable the workaround, Warningphpinfo This example tells the PHP hint Warning:phpinfo () has been Workaround for disabled function disabled. ...

  • Related Article

    Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.