C
chrisroane
Guest
I have been trying to figure out this problem for several hours now without any luck.
Basically I have all of my php included files put into the cgi-bin directory so that they can't be loaded in the browser. Things work without a problem when I include those php files anywhere in the httpdocs folder, except when I try to access them on the secure certificate (https://).
For this domain, I have this option checked, so that I don't have to have two sets of files:
"Use a single directory for housing SSL and non-SSL content"
This is in my vhost.conf file:
<Directory "/home/httpd/vhosts/WEBSITE/httpdocs">
php_admin_value open_basedir none
</Directory>
This is in my vhost_sll.conf file:
<Directory "/home/httpd/vhosts/WEBSITE/httpsdocs">
php_admin_value open_basedir none
</Directory>
This is the error it gives me:
Warning: main(): open_basedir restriction in effect. File(/home/httpd/vhosts/WEBSITE/cgi-bin/include/listing_process.inc) is not within the allowed path(s): (/home/httpd/vhosts/WEBSITE/httpdocs:/tmp) in /home/httpd/vhosts/WEBSITE/httpdocs/site/listings/test_new_listing.php on line 2
Warning: main(/home/httpd/vhosts/WEBSITE/cgi-bin/include/listing_process.inc): failed to open stream: Operation not permitted in /home/httpd/vhosts/WEBSITE/httpdocs/site/listings/test_new_listing.php on line 2
Fatal error: main(): Failed opening required '/home/httpd/vhosts/WEBSITE/cgi-bin/include/listing_process.inc' (include_path='.:/usr/share/pear') in /home/httpd/vhosts/WEBSITE/httpdocs/site/listings/test_new_listing.php on line 2
That error ONLY comes up when I try to access the (https://) version of the site. It loads fine when I go to the (http://) version of the site. I've read many posts on open_basedir problems, but none that describe this problem.
Any help would be highly appreciated.
Basically I have all of my php included files put into the cgi-bin directory so that they can't be loaded in the browser. Things work without a problem when I include those php files anywhere in the httpdocs folder, except when I try to access them on the secure certificate (https://).
For this domain, I have this option checked, so that I don't have to have two sets of files:
"Use a single directory for housing SSL and non-SSL content"
This is in my vhost.conf file:
<Directory "/home/httpd/vhosts/WEBSITE/httpdocs">
php_admin_value open_basedir none
</Directory>
This is in my vhost_sll.conf file:
<Directory "/home/httpd/vhosts/WEBSITE/httpsdocs">
php_admin_value open_basedir none
</Directory>
This is the error it gives me:
Warning: main(): open_basedir restriction in effect. File(/home/httpd/vhosts/WEBSITE/cgi-bin/include/listing_process.inc) is not within the allowed path(s): (/home/httpd/vhosts/WEBSITE/httpdocs:/tmp) in /home/httpd/vhosts/WEBSITE/httpdocs/site/listings/test_new_listing.php on line 2
Warning: main(/home/httpd/vhosts/WEBSITE/cgi-bin/include/listing_process.inc): failed to open stream: Operation not permitted in /home/httpd/vhosts/WEBSITE/httpdocs/site/listings/test_new_listing.php on line 2
Fatal error: main(): Failed opening required '/home/httpd/vhosts/WEBSITE/cgi-bin/include/listing_process.inc' (include_path='.:/usr/share/pear') in /home/httpd/vhosts/WEBSITE/httpdocs/site/listings/test_new_listing.php on line 2
That error ONLY comes up when I try to access the (https://) version of the site. It loads fine when I go to the (http://) version of the site. I've read many posts on open_basedir problems, but none that describe this problem.
Any help would be highly appreciated.