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.