How to change domain name when moving phpcms v9 website
PHPCMS is the leading domestic website management system and an open source PHP development framework.
This article introduces how to change the domain name when moving the phpcms v9 website.
1. Install phpcms in the new host space. The newly installed version must be the same as the version to be moved, otherwise problems may occur. During the new installation, all settings except the database configuration should be the same as the original ones. If they are different, there is no problem. Then make a copy of the config.inc.php file of the original host and modify it and it will be OK. Also, the prefix of the newly installed data table must be the same as the old one, otherwise the old settings will be retained. Because the prefix is different, the table with the old prefix will not be overwritten but added.
2. Use the database backup tool that comes with phpcms to back up the database, and then upload it to the same location in the new space!
3. You copy the original include/config.inc.php, change the database configuration to the new space, and do not change other things. There is also a data/config.js thing. Its setting requirements are consistent with those in config.inc.php! So you can also replace the original one with the newly installed one, and replace both. This will reduce a lot of inexplicable problems. If you don’t know how to configure the database, compare the new config.inc.php file with the old one, and replace the three items below the old file with the new ones. Then the modified old file is uploaded to the space to overwrite the new one. define('DB_HOST', 'localhost'); //Database server host address define('DB_USER', 'root'); //Database account define('DB_PW', '111111'); //Database password
4. Upload the uploadfile (attachments such as pictures) from your original site to the new space.
5. Upload the skin file to the new space, including the material folder (this is not necessary if the skin has not been modified)
6. Upload your modified files to the new space to overwrite the unmodified ones.
7. Log in to the backend of the new space and use database tools to restore the database.
8. Update the cache, update the skin, and generate the corresponding page! There are not many articles about phpcms website transfer space and backup database transfer space.
So I will publish the operation method:
1. Back up the current mysql database The space basically has phpmyadmin. First enter phpmyadmin and select the language: Chinese. Enter the database. Find the database table of PHPCMS in the "Database" on the left. Click on the export above to select all tables of PHPCMS. Generally, select all tables starting with PHPCMS. For the database table of PHPCMS, select "Save as file" below. If your database is relatively large, you can export it one table at a time, which is convenient for later import and export and save it as a phpcms.sql file
2. After moving the file, connect it to FTP. Use leapFTP to DOWN all the files to the new space and upload them
3. Import the data to the new space. Enter phpmyadmin in the new space. If there is data in the database that overlaps with PHPCMS, delete it first. If there is no such step, this step will be omitted. Then use SQL to import and select the import file. Note: SQL import will not overwrite, so you must first delete the heavy data and then wait. The waiting time may be very long or very short, depending on the speed of the space. In this way, the database will be imported.
4. Follow-up work. If your system is UNIX/LINUX, please set the folder attributes. If not, you can skip this step. The files and folders that need to be set to 777 have the directory attributes set to 777.
./ads/uploadfile/ The directory is writable ./article/ The directory is writable ./article/special/ The directory is writable
./article/thumb/ The directory is writable ./article/ uploadfile/ The directory is writable ./data/ The directory is writable
./data/getdata/ The directory is writable ./data/getdata/dedecms21article.txt The file is writable
./data/getdata /dedecms21member.txt File is writable ./data/getdata/discuz41member.txt File is writable
./data/getdata/discuz41post.txt File is writable ./data/getdata/nc.txt File is writable
./data/getdata/pa201article.txt The file is writable ./data/getdata/pa201member.txt The file is writable
./data/getdata/phpwindmember.txt The file is writable ./data /getdata/phpwindpost.txt The file is writable
./down/ The directory is writable ./down/special/ The directory is writable ./down/thumb/ The directory is writable ./down/uploadfile/ The directory is writable
./page/ Directory is writable ./page/aboutus.html File is writable ./page/ads.html File is writable
./page/announce.html File is writable ./ page/contactus.html File is writable ./page/joinus.html File is writable
./picture/ Directory is writable ./picture/special/ Directory is writable ./picture/thumb/ Directory is writable
./picture/uploadfile/ The directory is writable ./templates/ The directory is writable ./templates/templateprojectnames.php The file is writable
./uploadfile/ The directory is writable ./vote/data/ The directory is writable ./config.php The file is writable
./index.html The file is writable ./install.php The file is writable . /sitemap.xml file can be written
The last modified database information of config.php,
is the new space
$dbhost = 'localhost';
$dbuser = 'root';
$dbpw = 'root';
$dbname = 'phpcms';
$tablepre = 'phpcms_';
$database = 'mysql';
$pconnect = 1;
Complete
Recommended tutorial "phpcms tutorial"
The above is the detailed content of How to change domain name when moving phpcms v9 website. For more information, please follow other related articles on the PHP Chinese website!

Hot AI Tools

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

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

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

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



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.

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 is a free and open source content management system (CMS) that features: open source, modularity, flexibility, user-friendliness and community support. It can be used to create various types of websites, including corporate websites, e-commerce websites, blogs, and community forums. Technical requirements include: PHP 5.6 or higher, MySQL, MariaDB or PostgreSQL database, and Apache or Nginx web server.

phpcms uses mysql database. phpcms is a PHP open source website management system, developed using PHP+MYSQL as the technical basis. PHPCMS V9 adopts OOP method to build the basic operating framework. The supported PHP version is PHP5 and above, and the supported MYSQL version is MySql 4.1 and above.

There are two well-known versions of phpcms, namely: 1. phpCMS4, which supports custom URL rules. The website management background is beautiful and easy to use, and has many front-end plug-ins, which can freely expand functions; 2. phpCMS2008R1, which supports multi-language, multi-site management, and page The manager is convenient, flexible, very lightweight, and runs fast.

How to modify the site name in phpcms: 1. Use the administrator to log in to the backend page; 2. Find the "Settings" option in the top menu bar and click it, then find "Site Management" in the menu on the left; 3. Find the item that needs to be modified site, click the modify link to the right of the site domain name; 4. Modify the site name in the pop-up window.
