Jump to content

open_base_dir (uploading images to subdomains)


knowj

Recommended Posts

I am currently trying to get my image class to upload all images to within a subdomain after reading some research on the speed benefits.

 

The problem is im running into basedir restrictions.

 

Warning: imagejpeg() [function.imagejpeg]: open_basedir restriction in effect. File(/var/www/virtualhosts/MYDOMAIN.com.co.uk/subdomains/images/httpdocs/img_48bbc3c32d9365.34029533_thumb.jpg) is not within the allowed path(s): (/var/www/virtualhosts/MYDOMAIN/httpdocs:/tmp) in /var/www/virtualhosts/MYDOMAIN/httpdocs/includes/class_image.php on line 121

 

safe mode is disabled.

/var/www/virtualhosts/MYDOMAIN.com.co.uk/subdomains/images/httpdocs/ permissions are set to 777.

I have also added php_value open_basedir /var/www/virtualhosts/MYDOMAIN/subdomains/images/httpdocs/ to the htaccess just as an extra check.

The owner of the site and subdomain are the same user.

 

 

could someone please shed some light on whats happening.

 

Thanks in advance.

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.