Phpcms cannot log in, register

Source: Internet
Author: User
Environment:

Operating system: Linux

Server Software: nginx/1.1.16php/5.3.27

MySQL version: 5.5.34-log

PHPCMS Program version: Phpcms V9.5.7 release 20140625

Problem:

Local: Local debugging everything is OK

On the server: Phpcms Phpsso communication is successful, unable to register the account, login, through the tracking code found in the following code returned by the $FP null value

$fp = @fsockopen (($ip? $ip: $host), $port, $errno, $errstr, $timeout);
Fsockopen function replaced by Pfsockopen function return value is still empty
After searching, it turns out that there is a security problem with the Fsockopen function and the Pfsockopen function, which has been disabled by the server

Security Notice Notice URL: http://www.xrnet.cn/store/2012-01-10.html

Workaround:

Replace Fsockopen, Pfsockopen functions with other functions, such as Stream_socket_client

Examples such as the following
Before modification:

$fp = Fsockopen ($host, $errno, $errstr, 30);
Or
$fp = Fsockopen ($host, $port, $errno, $errstr, $connection _timeout);
After modification:
$fp = Stream_socket_client ("tcp://". $host. " ", $errno, $errstr, 30);
Or
$fp = Stream_socket_client ("tcp://". $host. ":". $port, $errno, $errstr, $connection _timeout);

Note: Discuz communication failure may also be the cause!

The above describes the PHPCMS can not login, registration, including aspects of the content, I hope that the PHP tutorial interested in a friend helpful.

  • 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.