In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-09 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
This article is about the solutions to login failures in phpcms v9. The editor thought it was very practical, so I shared it with you as a reference. Let's follow the editor and have a look.
Phpcms v9 login failed? The solution to the failure of member login after https ssl of phpcmsv9
Many friends encountered such a problem when using phpcmsv9. After https of the whole station, the member center could not log in normally, specifically, there was no return value, indicating that the login failed, mainly because the system could not transfer data to the corresponding method through 443 when initializing phpsso. By troubleshooting the problem, we can see that in client.class.php, the default port used by the system is 80. So we only need to modify it in the following ways to solve the problem that members cannot log in after https:
Phpcms/modules/member/classes/client.class.php
Modify line 361 in as follows:
$port =! empty ($matches ['port'])? $matches [' port']: (strtolower ($matches ['scheme']) =' https'? 443: 80)
Line 386 is about to:
$fp = @ fsockopen (($ip? $ip: $host), $port, $errno, $errstr, $timeout)
Replace with
$contextOptions = array ('ssl' = > array (' verify_peer' = > false, 'verify_peer_name' = > false)) / / if there is a signed certificate / / $contextOptions = array (/ / 'ssl' = > array (/ /' verify_peer' = > true, / / 'cafile' = >' / path/to/cacert.pem',// 'CN_match' = >' indexroot.net', / / matching domain name / / 'ciphers' = >' HIGHpurse / SSLv2man / SSLv3 magic magic / 'disable_compression' = > true / /) /) $context = stream_context_create ($contextOptions); $fp = stream_socket_client ("ssl:// {$host}: {$port}", $errno, $errstr, $timeout, STREAM_CLIENT_CONNECT, $context); thank you for reading! This is the solution to the login failure of phpcms v9. I hope the above content can be helpful to you, so that you can learn more knowledge. If you think the article is good, you can share it and let more people see it.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.