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 Inside Domain/Subdomain
#1
[Not Solved] Public_html Inside Domain/Subdomain
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:


Attached Files
.zpp   domains.zpp (Size: 16.38 KB / Downloads: 3)
.zpp   sub_domains.zpp (Size: 12.58 KB / Downloads: 3)
Reply
Thanks given by:
#2
[Not Solved] RE: Public_html Inside Domain/Subdomain
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.
Reply
Thanks given by:
#3
[Not Solved] RE: Public_html Inside Domain/Subdomain
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.
***Retail***
SCPH-39002, Running FCMB, HDD-OSD, Mini-OPL.
SCPH-30002 RSW (Automobile Collection Snow White)
SCPH-10000 x2
SCPH-15000
SCPH-18000 x2
DESR-7700
SCPH-2040X x2
Linux Kit
PSBBN V0.20, V0.30
HDD Utility V1.00, V1.01

***Dev***
DTL-H30102 Running FCMB, HDD-OSD, Mini-OPL.
DTL-H20400 - Boxed
Reply
Thanks given by:


Possibly Related Threads...
Thread Author Replies Views Last Post
public_html zHostingSolutions 6 1 379 06-03-2021, 12:53 PM
Last Post: zHostingSolutions
redirect error after letsencrypt + subdomain mizerek 1 1 596 08-06-2020, 04:54 AM
Last Post: mizerek
Cannot Create 2nd 'Addon' Domain In Sentora? Error: Invalid backend configuration. Re BattlinThrough 2 2 246 07-07-2020, 01:22 PM
Last Post: TGates

Forum Jump:


Users browsing this thread: 1 Guest(s)