What should I do if phpcms v9 communication fails? What should I do if Phpcms v9 fails to communicate with Phpsso and members cannot register or log in?
A friend said this:
The other configurations of the server are correct, but the communication always fails. The reason has been found:
Since servers with firewalls usually use port mapping, this leads to external network The website can be accessed normally through the domain name, but the website cannot be accessed through the domain name on the intranet. The communication interface address between v9 and phpsso is linked through the domain name, which always leads to communication failure. This is a flaw of v9 itself, and the developers did not fully consider this.
Hope the official fix this BUG as soon as possible.
Some friends also said:
There is no such file in the phpsso_server file in the official downloaded installation package. So the solution is to copy it from the phpcms/libs/classes/ folder of v9, and then create a sessions directory under the phpsso_server/caches/ file, otherwise the file cannot be written.
Of course, there is also a method on the Internet, which is to put the 21st line statement session_start(); in the session_mysql.class.php file before the previous sentence. In this case, it can also be solved, but v9 will not use the database. The storage method will only use file storage, and the storage location of the session is not stored according to the location set in system.php. It will be saved in the directory set in the php.ini file.
Provide a solution:
Change line 361 of phpcms\modules\member\classes\client.class.php
$fp = @fsockopen(($ip ? $ip : $host), $port, $errno, $errstr, $timeout);
to
$fp = stream_socket_client("tcp://".($ip ? $ip : $host).":".$port, $errno, $errstr, $timeout);
after After testing, you can log in successfully.
Many friends have encountered this problem, but under Linux Apache, this problem is relatively rare.
PHP Chinese website, a large number of free PHPCMS tutorials, welcome to learn online!
The above is the detailed content of What to do if phpcms v9 communication fails. For more information, please follow other related articles on the PHP Chinese website!

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

DVWA
Damn Vulnerable Web App (DVWA) is a PHP/MySQL web application that is very vulnerable. Its main goals are to be an aid for security professionals to test their skills and tools in a legal environment, to help web developers better understand the process of securing web applications, and to help teachers/students teach/learn in a classroom environment Web application security. The goal of DVWA is to practice some of the most common web vulnerabilities through a simple and straightforward interface, with varying degrees of difficulty. Please note that this software

Atom editor mac version download
The most popular open source editor

VSCode Windows 64-bit Download
A free and powerful IDE editor launched by Microsoft

SublimeText3 Mac version
God-level code editing software (SublimeText3)

ZendStudio 13.5.1 Mac
Powerful PHP integrated development environment
