How to Change Website Root Directory in aaPanel
aaPanel is a popular web hosting control panel that allows users to easily manage their websites and servers. One common task that users may need to perform is changing the root directory of a website. This can be useful for various reasons, such as moving the website to a different location on the server or setting up a new website.
Step 1: Accessing aaPanel
The first step is to log in to your aaPanel account. Once you are logged in, you will see a list of all your websites on the dashboard.
Step 2: Selecting the Website
Locate the website for which you want to change the root directory and click on it to open the settings.
Step 3: Changing the Root Directory
Once you have opened the settings for the website, look for the option to change the root directory. This option is usually located under the "Domain" or "General" settings tab.
Enter the new directory path where you want the website files to be stored. Make sure to use the full path, starting from the root directory of the server.
Step 4: Saving the Changes
After entering the new root directory path, save the changes by clicking on the "Save" or "Apply" button. aaPanel will automatically update the configuration files and move the website files to the new directory.
Step 5: Testing the Website
Once the changes have been saved, it is important to test the website to ensure that it is working correctly. Open a web browser and enter the URL of your website to see if it loads properly.
Conclusion
Changing the root directory of a website in aaPanel is a simple process that can be done in just a few steps. By following the instructions outlined in this guide, you can easily move your website files to a new location on the server and ensure that your website continues to function as expected.