Change Document Root
Document Root is the directory on the server where your website's main files are served from. This is where the main entry way to your application is. By default, LxRoot sets the document root to public_html, but you can change it to a different directory if needed. This is useful if you want to organize your files differently or if you have specific requirements for your website's structure.
To Change the document root:
- Login as Site User into a domain.
- From the left sidebar navigate to Services
- Go to the Developer Tools tab and select document root from the dropdown.
- Change it and the fileman will create a new directory by that name if it doesn't already exist. If it does, the application will be server from there.
SSH Users:
You can also find your current directory path by logging in via SSH and typing the command pwd (Print Working Directory).