How to Access Other Dirs w.r.t. a VHost/Website

This method is a simpler alternative to external-dir method.

Step 1 : Log into N99panel. From under N99panel dashboard, click 'VHosts/Websites'


Step 2 : You will see the list of all the VHosts. Please click 'Details/Manage' link against the appropriate VHost/Website


Step 3 : Scroll down to 'Update Other Dirs' option and click the pencil icon against it


Step 4 : Now enter the dir(s) after /home/user/ . Multiple dirs can be entered with each on a newline. Now click 'Update Other Dirs Settings'.

You should now from your PHP scripts be able to access the above dirs.