Sentora Support Forums

Full Version: Public_html Inside Domain/Subdomain
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi.

After some time, I finally figured out how to edit the following modules where it will create domain_ext/public_html (i.e. zhostingsolutions_com/public_html).

Therefore, now, any script that says that files/directories need to be placed outside of the public view can be placed outside (i.e. zhostingsolutions_com/secure_non_public_file.php/public_html).

Also, the following still happens when domains/subdomains are created:

zhostingsolutions_com/public_html/_errorpages
zhostingsolutions_com/public_html/index.html

This is what I've been talking about needed to be in the core since zPanel when I came across y'all back in 2005.

Likewise, with subdomains. Here are the files for you to download and replace your domain and subdomain directories:
Now, that I got this established, what I code can I use for domains and subdomains, so, I can create a trashcan inside of the domain/subdomain whenever one is created? Thanks.

zhostingsolutions_com/trash
zhostingsolutions_com/public_html

This way, when, files are deleted, they will show up in the trashcan to the corresponding domain and not removed from the server forever until I empty the trashcan or restore the file(s) and director(ies) back to the corresponding domain/subdomain. Also, my future customers can without worry, too.

Also, the trashcan should be a part of the core domains and subdomains module.
Whichever file you edited to get your folder outside of the domain folder, add a trash folder to the list of folders that get created.