Granting access to a non-web folder to the web user?

Hey all,
I’ve installed a library using composer, and the autoload.php file is located outside the web folders here: /home/[USERACCOUNT]/vendor/giggsey/libphonenumber-for-php/vendor/autoload.php

I use Plesk, and In the PHP settings for the site, I’ve granted access to the folder in the open_basedir options using the template:
{WEBSPACEROOT}{/}{:}{TMP}{/}{:}{/}home{/}[USERACCOUNT]{/}{:}{/}home{/}[USERACCOUNT]{/}vendor{/}giggsey{/}libphonenumber-for-php{/}vendor{/}

I’ve also executed the command “chown” and granted access to the folder to “nobody” account.

However, when I try to require the file, I still get a permission denied error. Is there anything else I can do to grant access to the files needed so that my scripts can access them and use the library? Thanks in advance!

did you change owner recursively? (chown -R nobody:nobody <directoryName>)
what rights do the files have inside the directory? (ls -l)

Sponsor our Newsletter | Privacy Policy | Terms of Service