Phpcms v9 Local website upload to space, to modify the local summary.

Source: Internet
Author: User
Tags to domain

1. The first step is to modify the database file. The database is the core of the whole website and the most important. As follows

A. Export the local database to Php.sql (the database should be exported and imported)

B. Open the Php.sql file. Find 127.0.0.1, bulk replace with the website domain name (such as meinv520.cn), "Note: Do not add HTTP//, like this http://meinv520.cn is wrong , Because Phpcms will add HTTP headers to you by default, there are about 400 replacements. Finish closing.


2. After modifying the domain name in the database, we need to modify the database configuration file (database.php). Because you want to ensure that the local database user name

and password to match the username and password of phpMyAdmin.

A. We find "caches/configs/database.php", open it, find

Return Array (' default ' = = Array (' hostname ' = ' + ' localhost ', ' database ' = ' php ', ' username ' = ' root ', ' passwor d ' = ' 123 ', ' tablepre ' = ' v9_ ', ' charset ' = ' utf8 ', ' type ' = ' mysql ', ' debug ' = ' + ', ' pconnect ' = 0, ' A Utoconnect ' = 0),);
Modify "Database", "username", "password" respectively, and keep the same password as the MySQL user on the virtual host.


3. We modify the PHPCMS system configuration file. Found (caches/configs/system.php)

Open system.php, change all 127.0.0.1 to domain name such as http://meinv520.cn.


Ok. To this step, all the local files are modified, the following is to enter the background to modify the relevant parameters is OK.


4. Go to PHP Admin, click "Settings, site management, modify" To change the site domain name to your domain name. such as http://meinv520.cn.


5. " Important "In the back office, click Content. Click below

A. batch Update section page

B. Bulk update URLs

C. Bulk update of content pages

D. Updating the cache

E. Generate home Page


At this point, our site is configured. Open your homepage to see

Phpcms v9 Local website upload to space, to modify the local summary.

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.