This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

public_html
#7
RE: public_html
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.
Reply
Thanks given by:


Messages In This Thread
public_html - by zHostingSolutions - 05-30-2021, 07:41 AM
RE: public_html - by Nigel - 06-01-2021, 06:46 AM
RE: public_html - by zHostingSolutions - 06-01-2021, 08:06 AM
RE: public_html - by Nigel - 06-01-2021, 09:12 AM
RE: public_html - by zHostingSolutions - 06-02-2021, 01:26 PM
RE: public_html - by TGates - 06-02-2021, 01:42 PM
RE: public_html - by zHostingSolutions - 06-03-2021, 12:53 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
Public_html Inside Domain/Subdomain zHostingSolutions 2 4 ,157 07-23-2021, 09:57 AM
Last Post: Nigel

Forum Jump:


Users browsing this thread: 1 Guest(s)