Home> CMS Tutorial> PHPCMS> body text

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

藏色散人
Release: 2020-01-07 10:23:12
Original
2280 people have browsed it

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′; // }
Copy after login

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!

Related labels:
source:php.cn
Statement of this Website
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
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!