Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to change the default Root Directory of website in Cloud Panel #564

Closed
imijunaid opened this issue Dec 12, 2024 · 7 comments
Closed

Comments

@imijunaid
Copy link

CloudPanel version(s) affected

Latest

Description

I want to know, how to change the default root directory in cloud panel of site. I want to set the different path to setup a website

How to reproduce

I want to know, how to change the default root directory in cloud panel of site. I want to set the different path to setup a website

Possible Solution

No response

Additional Context

I want to know, how to change the default root directory in cloud panel of site. I want to set the different path to setup a website

@schossler
Copy link

image

@imijunaid
Copy link
Author

@schossler I want to change the /home/user/htdocs path. I want to set the default directory path /var/www/site folder

@schossler
Copy link

try go to Vhost and change {{root}} to your directory path

@imijunaid
Copy link
Author

@schossler is it possible to change at the time of site creation the screenshot you shared above?

@schossler
Copy link

like this
root /path/to/www/;

maybe I verify and return later ... but updates cloudpanel updates crash this ...

@imijunaid
Copy link
Author

@schossler I manually change the path in Vhost. Its working but i want to change this in creation of site in control panel because file manager also read the path of default root directory. If i change manually then i cant access the www directory in file manager.
ok please verify this also. thanks for your time

@schossler
Copy link

the easy way is go to pattern of cloudpanel path
depend the code nothing to change ... and if need change is more simple

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants