User Tools

Site Tools


gen:external-dir

This is an old revision of the document!


How can the VHost/Website access parent folders or the full directory tree of the linked user

Under N99panel a VHost/Website's folder is present under a user as /home/user101/website_public_html . If a user is user101 , and the website is example.com , VHost/Website path would be /home/exmpl/example.com_public_html .

The PHP code is not able to access the folders above this path i.e. it will not be able to access /home/user101/fldr1 nor it will be able to access /home/user101 . This scenario is indeed desired as a matter of security practices. But if you wish to use /home/user101/fldr1 , you can use it via the 'expose dir' feature under N99panel

Various steps involved in it are

Step 1 : Log into N99panel. From under N99panel dashboard, click 'List Users'


Step 2 : You will see the list of all the users. Please click 'Expose Dirs' link against the appropriate user


Step 3 : A textbox would be presented and a typical entries under that would be like

Where a parent folder needs to be accessible via PHP scripts

/home/user101/fldr1:/home/user101/fldr1:example.com

Where a parent folder being a large external volume, where it typically would be of a large size and not part of incremental backups, is used w.r.t. URL references

/home/user101/media:/home/user101/example.com_public_html/media:example.com

Where you wish to access the full directory structure of the user (high un-advisable)

USER_HOME_DIR:USER_HOME_DIR:example.com
gen/external-dir.1712637454.txt.gz · Last modified: 2024/04/09 04:37 by kirtisingh

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki