In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-03-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
This article is about how to change the root of a document in the main domain in WHM/cPanel. The editor thought it was very practical, so I shared it with you as a reference. Let's follow the editor and have a look.
CPanel / WHM is a Web-based control panel for managing the complete Linux operating system. All cPanel accounts are created using a primary domain.
You must have root shell access to change the primary / primary domain document root in cPanel. Use the following procedure to change the document root of the primary domain in your cPanel account.
Priority: must have ssh access to the root user of the cpanel server.
Step 1: log in to the CPanel server
Use ssh to get shell access to the server as a root account, using your favorite ssh client. Connected to the server using Putty. Now edit the following files.
# vim / var/cpanel/userdata/USERNAME/DOMAINNAME.COM
Step 2: update documentoot
After editing the file, search for the root of the document and change the path as needed.
Documentroot: / home/USERNAME/public_html/NEW_PATH
Step 3: rebuild and restart Apache
After making the changes, we need to rebuild the Apache configuration file and restart the Apache server. Use the following command to do this.
# / scripts/rebuildhttpdconf# service httpd restart
It's done.
Thank you for reading! The method of changing the main domain document root directory in WHM/cPanel is shared here. I hope the above content can be of some help to you, so that you can learn more knowledge. If you think the article is good, you can share it and let more people see it.
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.