修改cpanel 的主域名对应的目录

 

默认的情况下,你是不能再cpanel上修改主域名对应的目录的。但是如果你有这台服务器的ssh 权限,那么这是很简单的事情

首先,你需要ssh 登录这台服务器,然后修改/var/cpanel/userdata/username/domain.name上面的documentroot选项

其次,rebuild apache 和重启apache

/scripts/rebuildhttpdconf
service httpd restart

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

This site uses Akismet to reduce spam. Learn how your comment data is processed.