Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - RedoStr

Pages: [1]
1
How to / How to Change User Directory?
« on: November 27, 2015, 02:20:12 AM »
Hi Guys! I'm Wondering to change user directory locations... I create a new user account and public_html location is; "/home/username/public_html". Can I change it? for example; "/home/username/websites/domainname/public_html"
I rebuild the Apache vHosts Template, I change to;
Code: [Select]
DocumentRoot "%homedir%/%username%/websites/%domain_name%/public_html"

ScriptAlias /cgi-bin/ "%homedir%/%username%/websites/%domain_name%/public_html/cgi-bin/

<Directory "%homedir%/%username%/websites/%domain_name%/public_html">
        AllowOverride All
</Directory>

but when I create a user, cwp say;
DocumentRoot [/home/username/websites/domainname/public_html] does not exist
Checking if "/home/username/public_html" folder if exist: [YES]

and user folder stay at "/home/username/public_html" :(

What Can I do? or home directory can't change?

Sorry For Bad English  :)

Pages: [1]