Page 1 of 1

open_basedir restriction

Posted: Sat Aug 06, 2016 3:00 am
by warcos
which is the correct way to add this path to open dir template

Warning: file_exists(): open_basedir restriction in effect. File(/home/admin/web/cybermathbayamon.com/moodledata) is not within the allowed path(s): (/home/admin/web/cybermathbayamon.com/public_html:/home/admin/tmp) in /home/admin/web/cybermathbayamon.com/public_html/moodle/install.php on line 333

<Directory %docroot%>
AllowOverride All
Options +Includes -Indexes +ExecCGI
php_admin_value open_basedir %docroot%:%home%/%user%/web/%domain%/moodledata
php_admin_value sendmail_path "/usr/sbin/sendmail -t -i -f info@%domain_idn%"
</Directory>

??????

Thanks in advance

Re: open_basedir restriction

Posted: Tue Aug 09, 2016 1:19 pm
by skurudo
For tpl files this is pretty nice:

Code: Select all

php_admin_value open_basedir %docroot%: php_admin_value open_basedir %docroot%:%home%/%user%/tmp:%home%/%user%/web/%domain%/moodledata