Welcome to the Linux community forum and interact with 2 million technical staff. When we configure the php environment, we usually write phpinfo (). This function is used to test whether the php environment is successfully installed, but this function often brings security risks to the system. How can we turn this function off? The following describes how to modify the php. ini file.
Welcome to the Linux community forum and interact with 2 million technical staff> when we enter the php environment, we usually write phpinfo (). This function is used to test whether the php environment is successfully installed, but this function often brings security risks to the system. How can we turn this function off? The following describes how to modify the php. ini file.
Welcome to the Linux community forum and interact with 2 million technicians>
We usually write phpinfo () When configuring the php environment. This function is used to test whether the php environment is successfully installed. However, this function also brings security risks to the system, so how can we turn off this function? The following describes a method:
Modify the php. ini file and find the following lines in it,
Disable_functions =; This directive allows you to disable certain
; Functions for security reasons. It has es
; A comma separated list of function names.
; This directive is * NOT * affected by whether
; Safe Mode is turned on or off.
Write it
Disble_functions = phpinfo
Restart apache to block the phpinfo () function.