如何将Addondomain子目录网站转移到新的Cpanel帐号根目录

By | Dec 29, 2010

将Addondomain子目录网站转移到新的Cpanel帐号根目录并没有快捷的办法可以一键搞定.
解决步骤为:

  1. 使用PHPMYADMIN备份子目录网站的数据库

  2. 在cpaenl后台Addondomain里删除该子目录绑定域名

  3. 在whm里新建以该域名为主域名的新的Cpanel帐号

  4. 打开该新帐号CPANEL并新建数据库, 导入数据

  5. 使用WINSCP登录服务器, 将新帐号public_html下的images, .htaccess cgi.bin 删除
    将旧帐号子目录里的所有文件Move 到 新的帐号public_html目录

  6. 打开Putty或者使用WINSCP Console 输入命令 chown -R username /home/username 以修复权限. username为新cpanel帐号的用户名

    chmod 777 -R 修复某些目录读取

  7. 修改新cpanel网站目录下的数据库配置文件为新的数据库用户名和密码

值得注意的是刚修改完以后需要打开CMD, 输入命令 ipconfig /flushdns 以清除本地DNS缓存才可正常访问网站

VN:F [1.9.11_1134]
Rating: 5.0/5 (2 votes cast)
VN:F [1.9.11_1134]
Rating: +1 (from 1 vote)
如何将Addondomain子目录网站转移到新的Cpanel帐号根目录, 5.0 out of 5 based on 2 ratings

Leave a Comment

If you would like to make a comment, please fill out the form below.

Name (required)

Email (required)

Website

Comments

Spam Protection by WP-SpamFree

© 2007 Cpanel中文教程使用指南 -