国产av日韩一区二区三区精品,成人性爱视频在线观看,国产,欧美,日韩,一区,www.成色av久久成人,2222eeee成人天堂

Home Backend Development PHP Tutorial phpcms v9 中 PHPSSO無法通訊解決辦法(PHPSSO無法通訊間接影響phpcms v9注冊會員無法通過“重名無法通過”)

phpcms v9 中 PHPSSO無法通訊解決辦法(PHPSSO無法通訊間接影響phpcms v9注冊會員無法通過“重名無法通過”)

Jun 13, 2016 am 11:59 AM
cache localhost sso

phpcms v9 中 PHPSSO無法通訊解決方法(PHPSSO無法通訊間接影響phpcms v9注冊會員無法通過“重名無法通過”)

一般情況下,大多數(shù)人都是這樣做的:

本地做一個虛擬環(huán)境,用localhost或127.0.0.1安裝V9系統(tǒng),在本地通訊沒有任何問題,于是做一個本地的數(shù)據(jù)備份,當(dāng)時遠(yuǎn)端安裝的時候有會通過域名來安裝,然后就將本地數(shù)據(jù)直接恢復(fù)到遠(yuǎn)端的服務(wù)器上,這種情況就常常發(fā)生SSO與V9系統(tǒng)無法通訊

由于備份中的數(shù)據(jù)鏈接保存的是網(wǎng)址是localhost或127.0.0.1或本機(jī)192.168.xxx.xxx,與域名不一致,比如SSO對應(yīng)的是www.lanrensc.com,而恢復(fù)數(shù)據(jù)后的V9系統(tǒng)對應(yīng)的是localhost或127.0.0.1,兩者不一致當(dāng)然就無法通訊,這是最常見的原因之一,一般根據(jù)官方提供的方法就能解決。

當(dāng)然,如果你發(fā)現(xiàn)官方提供的方法也無法解決,估計就是你用本地V9根據(jù)目錄下的所有源碼直接覆蓋遠(yuǎn)端的,包括由于安裝產(chǎn)生的V9Cache和SSO的Cache,要知道本機(jī)和服務(wù)器上cache中記錄的數(shù)據(jù)庫信息是不一樣的,特別是權(quán)限限制嚴(yán)格的Linux系統(tǒng),所以就算按官方提供的方法通常也還是無法通訊

原因二:本機(jī)的V9 Cache和SSO的Cache覆蓋了服務(wù)器的對應(yīng)文件,這是導(dǎo)致無法通訊的第二常見的原因,可以嘗試修改cache中的幾個文件:\caches\configs\和\phpsso_server\caches\configs目錄下的system.php和database.php,具體修改的方法就不贅述,可以查看caches中的配置文件datebase.php是否是自己的需要的數(shù)據(jù)。

除了以上兩個原因有兩種可能:
第一,如果是linux服務(wù)器,網(wǎng)站目錄的權(quán)限設(shè)置不對,可能導(dǎo)致無法通訊
第二,戴www和沒帶www的兩個域名同時指向一個服務(wù)器,安裝V9時,如果是沒帶的頂級域名來安裝,而本機(jī)卻用www.lanrensc.com,這種情況也會通訊失敗

特別是第二原因,很多人可能忽略了!有沒有帶WWW,sso認(rèn)為是兩個不同的應(yīng)用,不同的應(yīng)用當(dāng)然就是無法通訊了。。。

避免V9和SSO產(chǎn)生無法通訊問題,建議這樣做:
1,如果你本機(jī)數(shù)據(jù)不用恢復(fù)到服務(wù)器,就直接上傳模板文件即可,不要覆蓋遠(yuǎn)端的cache文件夾
2,如果本機(jī)有數(shù)據(jù)要恢復(fù)到服務(wù)器的,保存本機(jī)數(shù)據(jù)時記住不要保存含有v9_admin、v9_member和v9_sso這三個前綴的表,遠(yuǎn)端安裝V9的時候采用全新安裝,安裝完成后只上傳\caches\bakup\default\文件夾中的SQL備份和模板包
3,記住,很多時候,帶有www和沒帶有www,SSO認(rèn)為是兩個不同的應(yīng)用,即便兩者指向同一個服務(wù)器。如果你主力使用www,記住請用它來安裝V9。
4,Linux服務(wù)器,請注意安裝V9目錄的權(quán)限,F(xiàn)TP上傳請用二進(jìn)制上傳,如果服務(wù)器是獨(dú)立主機(jī),你有root權(quán)限也不建議用root權(quán)限的賬戶上傳,而是用建立站點(diǎn)時的關(guān)聯(lián)賬戶上傳V9程序。

重新提供一個解決SSO通訊問題的方法就是:
建一個不包含v9_admin、v9_member和v9_sso這三個前綴的表的數(shù)據(jù)備份(本機(jī)或服務(wù)器上都無所謂),然后在服務(wù)器上安裝一個全新的V9(用最新V9中的install、cache和phpssoserver目錄覆蓋服務(wù)器上的同名文件夾,并刪除cache中install.lock文件即可),保證這個新裝的V9通訊是成功的,這樣就恢復(fù)之前的備份就可以了。

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

Hot AI Tools

Undress AI Tool

Undress AI Tool

Undress images for free

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

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

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

What should I do if localhost cannot be opened? What should I do if localhost cannot be opened? Nov 07, 2023 pm 02:47 PM

Solution: 1. Check the running status of the server and make sure it is listening on the correct port; 2. Try to temporarily disable the firewall or security software, and then try to access localhost again; 3. Check the hosts file of the operating system to ensure that localhost is resolved correctly ; 4. Try to restart the network adapter or reconfigure the network connection; 5. Try to change the port used by the local server, or close other programs that occupy the same port; 6. Try to manually add the corresponding IP address and domain name in the hosts file, etc.

Why can't mysql connect to localhost? Why can't mysql connect to localhost? Aug 10, 2023 pm 02:55 PM

The reasons why mysql cannot connect to localhost are that the mysql service is not started, the mysql port is occupied, and there is a problem with the MySQL configuration file. Detailed introduction: 1. In Windows systems, you can open the service manager by entering "services.msc" at the command prompt, then find the mysql service and ensure that its status is "Running". In Linux systems, you can use the "services.msc" command to check and control the service status; 2. You can use the open command and so on.

After joining the company, I understood what Cache is After joining the company, I understood what Cache is Jul 31, 2023 pm 04:03 PM

The thing is actually like this. At that time, my leader gave me a perf hardware performance monitoring task. During the process of using perf, I entered the command perf list and I saw the following information: My task is to enable these cache events to be counted normally. But the point is, I have no idea what these misses and loads mean.

How to use PHP to implement efficient and stable SSO single sign-on How to use PHP to implement efficient and stable SSO single sign-on Oct 15, 2023 pm 02:49 PM

How to use PHP to achieve efficient and stable SSO single sign-on Introduction: With the popularity of Internet applications, users are faced with a large number of registration and login processes. In order to improve user experience and reduce user registration and login intervals, many websites and applications have begun to adopt single sign-on (Single Sign-On, referred to as SSO) technology. This article will introduce how to use PHP to implement efficient and stable SSO single sign-on and provide specific code examples. 1. SSO single sign-on principle SSO single sign-on is an identity authentication solution

What does linux localhost mean? What does linux localhost mean? Mar 14, 2023 am 09:53 AM

linux localhost means "computer host name". The host name is used to identify an independent computer on the network; the root in "root@localhost" represents the currently logged-in user. In Linux, the administrator account is root, and the user is root. Log in to the Linux machine as a user.

What are the characteristics of cache, rom and ram? What are the characteristics of cache, rom and ram? Aug 26, 2022 pm 04:05 PM

Characteristics of cache: A one- or two-level high-speed, small-capacity memory set between the CPU and the main memory. The information is naturally lost when the computer is powered off. Characteristics of ROM: it can only read data from the memory, but cannot write information into it. The data will still exist after the computer is powered off. Characteristics of ram: it can read data from the memory and write information to the memory; it is used to store commands, programs and data required to run the program; information is naturally lost when the computer is powered off.

Why does using cache increase computer speed? Why does using cache increase computer speed? Dec 09, 2020 am 11:28 AM

Using the cache can increase the speed of the computer because the cache shortens the waiting time of the CPU. Cache is a small but high-speed memory located between the CPU and the main memory DRAM. The function of Cache is to increase the rate of CPU data input and output; Cache has a small capacity but fast speed, while the memory speed is low but has a large capacity. By optimizing the scheduling algorithm, the performance of the system will be greatly improved.

OAuth in PHP: Building a multi-platform SSO solution OAuth in PHP: Building a multi-platform SSO solution Jul 28, 2023 pm 09:38 PM

OAuth in PHP: Building a Multi-Platform SSO Solution With the rapid development of the Internet, it has become the norm for people to use various applications in multiple platforms. This brings up a question: How to implement single sign-on (SSO) between different platforms? OAuth (Open Authorization) has become an excellent choice to solve this problem. OAuth is an open standard that allows users to authorize third-party applications to access their Internet resources without sharing their credentials. OAuth can be used to build a multi-

See all articles