is there a name for the directory that is one lower that the docroot?

David Schwartz newsletters at thetoolwiz.com
Tue Jan 7 15:00:37 MST 2025


I don’t know that it has a formal name, maybe “account root”.

(Every folder except ‘/‘ has a “parent directory”.)

Everything from that point down is accessible to files in your account, but only stuff from public_html and down is accessible on the web via Apache.

When I look at what cPanel’s File Manager shows, as my “account root”, that’s what I see — tons of folders that have other uses OUTSIDE of what’s accessible via the web. 

Scripts in and beneath public_html can refer to assets in those other areas (using localhost) but Apache won’t let them be accessed directly using a URI. Like, you can’t refer to a file using ../ from public_html that’s in a peer folder to public_html. But your scripts can, because THEIR root is your “account root”.

public_html is managed by Apache.

Your account’s scope is rooted at public_html/..

At least, that’s what’s common in *nix systems.

-David Schwartz




> On Jan 7, 2025, at 9:32 AM, Keith Smith via PLUG-discuss <plug-discuss at lists.phxlinux.org> wrote:
> 
> Hi,
> 
> I am running ubuntu and apache configured using PHP-FPM.
> 
> If my Docroot is : /var/www/<domain.tld>/public_html
> 
> Is there a title/name for /var/www/<domain.tld>
> 
> I allow the user that owns the docroot to also own the subordinate folder:  /var/www/<domain.tld>
> 
> Does  /var/www/<domain.tld> have a name/title?
> 
> Thanks!!
> Keith
> ---------------------------------------------------
> PLUG-discuss mailing list: PLUG-discuss at lists.phxlinux.org
> To subscribe, unsubscribe, or to change your mail settings:
> https://lists.phxlinux.org/mailman/listinfo/plug-discuss



More information about the PLUG-discuss mailing list