In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-11 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
This article mainly introduces the detailed steps of phpcms v9 website to move and change the domain name, which has a certain reference value and can be used for reference by friends who need it. Let's take a look at it with me.
PHPCMS is not only the leading website management system in China, but also an open source PHP development framework.
one. Install phpcms in the new host space. The newly installed version must be the same as the one you are going to relocate, otherwise there may be problems. In the new installation in addition to the database configuration outside the various settings are the same as the original, not the same is no problem, then the original host config.inc.php file copy and then modify the OK. And the newly installed datasheet prefix should be the same as the old one, otherwise the old settings will be retained, because if the prefix is different, it will not overwrite but add the old prefix to the table.
two. Backup the database with the database backup tool that comes with phpcms, and then upload it to the same location in the new space!
three. You copy the original include/config.inc.php, change the database configuration to the new space, and don't change the rest. There is also a data/config.js thing. Its settings are consistent with those in config.inc.php! so you can also replace the original one with the newly installed one, and replace both of them. This will reduce a lot of inexplicable problems. If you can't configure the database, compare the new config.inc.php file with the old one and replace the following three items with the new one. 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
four. Upload the uploadfile (pictures and other attachments) of your original site to the new space.
five. Upload the skin file to the new space, including the material folder (this is not necessary if the skin has not been modified)
six. Upload your modified files to the new space to cover the ones that have not been modified.
seven. Log in to the background of the new space and use the database tool to restore the database.
eight. Update the cache, update the skin, generate the corresponding page!
There are not many articles about phpcms website transfer space, backup database transfer space, so publish the operation method:
1. Backup mysql database now basically has phpmyadmin to enter phpmyadmin selection language first: enter the database in Chinese, find the database table of PHPCMS in the "database" on the left, click the export above, and select all the tables of PHPCMS. In general, select all the tables that start with PHPCMS. Select "Save as File" below. If your database is relatively large, export a table to facilitate later import and export and save as a phpcms.sql file.
two。 Move the files, even FTP. I use leapFTP to upload all the files under the DOWN to the new space.
3. Import the data to the new space and enter the new space phpmyadmin if there is data in the database that overlaps with PHPCMS, delete it first, if there is no this step, save it and then import it with SQL, choose the import file Note: SQL import will not overwrite, so you must first delete the heavy drop data and then the waiting time may be very long or very short, which may be determined by the speed of the space, ha so that the database will be guided.
4. Clean up the aftermath. If your system is UNIX/LINUX, please set the folder property. If not, you can skip this step. The files and folders that are set to 777 have the directory property set to 777.
. / ads/uploadfile/ directory writable. / article/ directory writable. / article/special/ directory writable
. / article/thumb/ directory writable. / article/uploadfile/ directory writable. / data/ directory writable
. / data/getdata/ directory writable. / data/getdata/dedecms21article.txt file writable
. / data/getdata/dedecms21member.txt file writable. / data/getdata/discuz41member.txt file writable
. / data/getdata/discuz41post.txt file writable. / data/getdata/nc.txt file writable
. / data/getdata/pa201article.txt file writable. / data/getdata/pa201member.txt file writable
. / data/getdata/phpwindmember.txt file writable. / data/getdata/phpwindpost.txt file writable
. / down/ directory writable. / down/special/ directory writable. / down/thumb/ directory writable. / down/uploadfile/ directory writable
. / page/ directory writable. / page/aboutus.html file writable. / page/ads.html file writable.
. / page/announce.html file writable. / page/contactus.html file writable. / page/joinus.html file writable.
. / picture/ directory writable. / picture/special/ directory writable. / picture/thumb/ directory writable
. / picture/uploadfile/ directory writable. / templates/ directory writable. / templates/templateprojectnames.php file writable
. / uploadfile/ directory writable. / vote/data/ directory writable. / config.php file writable
. / index.html file writable. / install.php file writable. / sitemap.xml file writable.
Finally, modify the database information of config.php
It's from the new space.
$dbhost = 'localhost'
$dbuser = 'root'
$dbpw = 'root'
$dbname = 'phpcms'
$tablepre = 'phpcms_'
$database = 'mysql'
$pconnect = 1
Finish the job
These are the details of the detailed steps of the phpcms v9 website to move and change the domain name. Do you have anything to gain after reading it? If you want to know more about it, welcome to the industry information!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.