H
hegebutt
Guest
I'm trying to use PEAR, but I'm getting the following error:
Warning: main(): open_basedir restriction in effect. File(/usr/share/pear/HTML/Template/ITX.php) is not within the allowed path(s): (/home/httpd/vhosts/yumyumweb.com/subdomains/itns/httpdocs:/tmp) in /home/httpd/vhosts/yumyumweb.com/subdomains/itns/httpdocs/wda2-book/wda/ch10/example.10-1.php on line 2
Reference:
http://itns.yumyumweb.com/wda2-book/wda/ch10/example.10-1.php
I read some other posts in this forum and created a vhost.conf file in /home/httpd/vhosts/yumyumweb.com/subdomains/itns/conf, which looks like this:
<Directory /home/httpd/vhosts/yumyumweb.com/subdomains/itns/httpdocs>
php_admin_value open_basedir /home/httpd/vhosts/yumyumweb.com/subdomains/itns/httpdocs:/tmp:/usr/share/pear
</Directory>
I then restarted httpd, but I'm still getting the error that there's a restriction.
Here's my phpinfo:
http://itns.yumyumweb.com/phpinfo.php
It seems like this should work, so I'm stumped. Ideas?
Warning: main(): open_basedir restriction in effect. File(/usr/share/pear/HTML/Template/ITX.php) is not within the allowed path(s): (/home/httpd/vhosts/yumyumweb.com/subdomains/itns/httpdocs:/tmp) in /home/httpd/vhosts/yumyumweb.com/subdomains/itns/httpdocs/wda2-book/wda/ch10/example.10-1.php on line 2
Reference:
http://itns.yumyumweb.com/wda2-book/wda/ch10/example.10-1.php
I read some other posts in this forum and created a vhost.conf file in /home/httpd/vhosts/yumyumweb.com/subdomains/itns/conf, which looks like this:
<Directory /home/httpd/vhosts/yumyumweb.com/subdomains/itns/httpdocs>
php_admin_value open_basedir /home/httpd/vhosts/yumyumweb.com/subdomains/itns/httpdocs:/tmp:/usr/share/pear
</Directory>
I then restarted httpd, but I'm still getting the error that there's a restriction.
Here's my phpinfo:
http://itns.yumyumweb.com/phpinfo.php
It seems like this should work, so I'm stumped. Ideas?