Home  >  Article  >  CMS Tutorial  >  What should I do if phpcms does not support the fsockopen function?

What should I do if phpcms does not support the fsockopen function?

藏色散人
藏色散人Original
2020-01-07 10:23:122344browse

What should I do if phpcms does not support the fsockopen function?

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 free PHPCMS 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!

Statement:
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