RE: public_html
06-03-2021, 12:53 PM
(This post was last modified: 06-03-2021, 01:36 PM by zHostingSolutions.)
Ok.
So, good news is that I got public_html to show up inside of the domain:
C:/Sentora/www/admin/zhostingsolutions.com/public_html
I did it through:
$handle = @opendir(ctrl_options::GetSystemOption('hosted_dir') . $currentuser['username'] . "/$domain/public_html");
$chkdir = ctrl_options::GetSystemOption('hosted_dir') . $currentuser['username'] . "/$domain/public_html/";
$vhost_path = ctrl_options::GetSystemOption('hosted_dir') . $currentuser['username'] . "/$domain/public_html/" . $destination . "/";
However, inside of the public_html, it creates a duplicate:
C:/Sentora/www/admin/zhostingsolutions.com/public_html/zhostingsolutions_com
It still wants to put a domain inside of public_html and I need to change it.
I need it to be:
C:/Sentora/www/admin/zhostingsolutions.com/public_html/
or
C:/Sentora/www/admin/zhostingsolutions_com/public_html/
Am I supposed to use "OPEN_BASEDIR" instead of "hosted_dir" in order to fully accomplish what I'm trying to do?
Like I said, a module would be nice so that it can automatically change the public_html location for domain, subdomain, parked domain and any other path where public_html is throughout Sentora like in the httpd-vhosts.php.
Also, like I said about websites that are already on the server, it will just switch public _html and the domain/subdomain and any files will be transferred into public_html without it breaking any paths or sites on the server.
So, good news is that I got public_html to show up inside of the domain:
C:/Sentora/www/admin/zhostingsolutions.com/public_html
I did it through:
$handle = @opendir(ctrl_options::GetSystemOption('hosted_dir') . $currentuser['username'] . "/$domain/public_html");
$chkdir = ctrl_options::GetSystemOption('hosted_dir') . $currentuser['username'] . "/$domain/public_html/";
$vhost_path = ctrl_options::GetSystemOption('hosted_dir') . $currentuser['username'] . "/$domain/public_html/" . $destination . "/";
However, inside of the public_html, it creates a duplicate:
C:/Sentora/www/admin/zhostingsolutions.com/public_html/zhostingsolutions_com
It still wants to put a domain inside of public_html and I need to change it.
I need it to be:
C:/Sentora/www/admin/zhostingsolutions.com/public_html/
or
C:/Sentora/www/admin/zhostingsolutions_com/public_html/
Am I supposed to use "OPEN_BASEDIR" instead of "hosted_dir" in order to fully accomplish what I'm trying to do?
Like I said, a module would be nice so that it can automatically change the public_html location for domain, subdomain, parked domain and any other path where public_html is throughout Sentora like in the httpd-vhosts.php.
Also, like I said about websites that are already on the server, it will just switch public _html and the domain/subdomain and any files will be transferred into public_html without it breaking any paths or sites on the server.