Phpcms V9網(wǎng)站從當?shù)厣蟼鞯椒掌餍枰薷牡牡胤叫〗Y
Jun 13, 2016 pm 12:03 PM
Phpcms V9網(wǎng)站從本地上傳到服務器需要修改的地方小結
請進行以下步驟的修改:
1.修改/caches/configs/system.php里面所有和域名有關的,把以前的老域名修改為新域名就可以了。2.進行后臺設置-》站點管理 對相應的站點的域名進行修改。
3.更新系統(tǒng)緩存。點擊后臺右上角的“更新緩存”按鈕。
4.進入內容-》附件管理-》附件地址替換。把附件地址批量的替換為新的地址。
5.內容-》批量更新URL 。把所有的文章的地址都更新一下。
6.下面就是把全站都生成一次了。
再進一步,怎么轉移空間,并且更換域名呢?
這種情況比更換域名更加復雜一點,涉及到數(shù)據(jù)庫的遷移。
而這種情況比更換域名還要靠譜,往往我們在本地做好了網(wǎng)站,再上傳到空間,這就涉及到更換域名和數(shù)據(jù)庫的遷移。
Phpcms V9網(wǎng)站遷移具體方法如下:
1.上傳所有的程序文件(如果主機支持壓縮包在線解壓,比如華夏名網(wǎng)的空間就支持。,那么就打成zip的包,ftp上傳到對應目錄,在線解壓)。
2.在本地采用myphpadmin等數(shù)據(jù)庫管理軟件導出本地數(shù)據(jù)庫sql文件,然后用editplus等軟件批量更換域名地址,比如本來是本地的http://localhost/phpcms,現(xiàn)在的域名是www.jb51.net,那么就需要批量將http://localhost/phpcms批量替換為http://www.jb51.net,替換后保存。
3.在服務器的數(shù)據(jù)庫管理里邊,通過myphpadmin等導入修改后的sql文件。
4.修改第一步解壓好的/caches/configs/database.php中的數(shù)據(jù)庫名稱密碼,以及修改/caches/configs/system.php里面所有和域名有關的,把以前的老地址修改為新地址。
5.登錄后臺,更新緩存,批量更新生成html,這樣就轉移成功。?

Hot AI Tools

Undress AI Tool
Undress images for free

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

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

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

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

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

Hot Topics

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.

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.

How to jump to the details page in phpcms: 1. Use the header function to generate a jump link; 2. Loop through the content list; 3. Get the title and details page link of the content; 4. Generate a jump link.

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.

PHP CMS is a PHP-based open source content management system for managing website content. Its features include ease of use, powerful functionality, scalability, high security, and free open source. It can save time, improve website quality, enhance collaboration and reduce development costs, and is widely used in various websites such as news websites, blogs, corporate websites, e-commerce websites and community forums.

Title: WeChat Login Integration Guide: PHPCMS in Action In today’s Internet era, social login has become one of the essential functions of a website. As one of the most popular social platforms in China, WeChat’s login function is also used by more and more websites. This article will introduce how to integrate the WeChat login function in the PHPCMS website and provide specific code examples. Step 1: Register a WeChat Open Platform Account First, we need to register a developer account on the WeChat Open Platform and apply for the corresponding development permissions. Log in [WeChat open platform]

phpcms is not completely free. phpcms is an open source cms system, but open source does not mean free. It has two versions: free version and commercial version. The free version is limited to personal non-commercial use, while the commercial version requires purchasing a license; individuals can use it for research, and if it is commercial application , you need to pay a certain fee.

PHPCMS user name security setting strategy revealed In website development, user account security has always been an aspect that developers attach great importance to. The security settings of the username are also crucial, because the username is not only the user's login credentials, but may also expose the user's personal information and even cause security risks. This article will reveal the username security setting strategy in PHPCMS and give specific code examples for developers to refer to. 1. Prevent common usernames. In order to improve the security of usernames, developers should prevent users from using excessive
