Phpcms V9 site from the local upload to the server need to modify the summary of the place

Source: Internet
Author: User

The website will be migrated to the server when it is done locally, and the website is likely to modify the domain name many times during the development process. So how are we going to set it up in Phpcms V9?

Please make changes to the following steps:

1. Modify the/caches/configs/system.php inside all and the domain name, the former old domain name is modified as a new domain name can be.
2. Background Settings-"Site management to modify the domain name of the corresponding site."
3. Update the system cache. Click the "Update Cache" button in the upper-right corner of the background.
4. Enter the content-"attachment management-" attachment address replacement. Replace the attachment address in bulk with the new address.
5. Content-"Bulk update URL". Update the address of all the articles.

6. The following is the generation of the whole station.

Further, how to transfer space and change the domain name?

This is a bit more complicated than replacing a domain name and involves migrating the database.

This situation is more reliable than changing the domain name, often we do a local site, and then upload to space, which involves the replacement of domain names and database migration.

phpcms V9 site migration is as follows:

1. Upload all the program files (if the host support compression package on-line decompression, such as the Chinese name Network space support. , then the zip package, ftp upload to the corresponding directory, online decompression).
2. Use database management software such as myphpadmin to export local database SQL files, and then use EditPlus and other software to bulk replace the domain name address, such as the original local http://localhost/phpcms, Now the domain name is www.jb51.net, then you need to bulk replace http://localhost/phpcms batch with Http://www.jb51.net, save after replacement.
3. In the database management of the server, import the modified SQL file through Myphpadmin.
4. Modify the database name password in the/caches/configs/database.php in the first step, and modify all the/caches/configs/system.php in the domain, and change the old address to the new address.
5. Log in to the background, update the cache, bulk update generated HTML, so the transfer succeeds.  

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.