What should I do if phpcms does not support the fsockopen function?
How to solve the problem that the space does not support the fsockopen function when installing phpcms v9
Due to the recent emergence of various vulnerabilities in many cms programs, among which fsockopen There are particularly many vulnerability intrusions caused, so now many space providers have turned off the fsockopen function. When installing phpcm v9, the corresponding settings of the space will be automatically detected. Generally, in the second step, it will directly prompt that fsockopen is not turned on, thus As a result, phpcms v9 cannot be installed. So what should I do if the space does not support the fsockopen function when installing phpcms v9?
I have found a lot of information, and there are roughly two opinions:
1. Find a space provider to enable it. If it is your own server or vps, you can just enable it yourself (this can be understood as nonsense );
2. After finding the install.php file under install, comment out lines 45~47 of code, which means skipping the second part of monitoring. The commented out code is:
// if(function_exists(‘fsockopen‘)) { $PHP_FSOCKOPEN = ’1′; // }
However, if you skip this step, the membership system may become invalid.
PHP Chinese website, a large number of freePHPCMS tutorials, welcome to learn online!
The above is the detailed content of What should I do if phpcms does not support the fsockopen function?. For more information, please follow other related articles on the PHP Chinese website!