Author Topic: How to Change defult public_html folder to another folder?  (Read 1863 times)

0 Members and 1 Guest are viewing this topic.

Offline
*
How to Change defult public_html folder to another folder?
« on: January 11, 2023, 05:11:58 PM »
Hello,
When we add a new user in cwp, for main domain name, It always use home/username/public_html
I'm trying to change this address for my main domain. how can I do that?
For example change current address to: home/username/public_html/mainwebsite/
Can you help me please? (I searched the forum and I couldn't find a solution)  :-\

Offline
*
Re: How to Change defult public_html folder to another folder?
« Reply #1 on: January 16, 2023, 08:13:57 PM »
nobody can help about this? any ideas?

Offline
****
Re: How to Change defult public_html folder to another folder?
« Reply #2 on: January 21, 2023, 09:35:48 PM »
If this is a one-off change (and not a tpl permanent change for future account creation), you can either edit the vhosts file, or an .htaccess file to set your site root. Are you using apache or nginx?

Offline
*
Re: How to Change defult public_html folder to another folder?
« Reply #3 on: February 04, 2023, 10:13:58 PM »
If this is a one-off change (and not a tpl permanent change for future account creation), you can either edit the vhosts file, or an .htaccess file to set your site root. Are you using apache or nginx?

Hi
Thanks for reply. I'm using Apache.
I want to change root domain folder to a sub folder, and then use the root folder for my other websites, because I found out that there is a really bad bug with file lock in CWP:
http://forum.centos-webpanel.com/index.php?topic=12593.msg43210#msg43210