knowj Posted September 1, 2008 Share Posted September 1, 2008 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. Link to comment https://forums.phpfreaks.com/topic/122200-open_base_dir-uploading-images-to-subdomains/ Share on other sites More sharing options...
knowj Posted September 1, 2008 Author Share Posted September 1, 2008 *bump* Link to comment https://forums.phpfreaks.com/topic/122200-open_base_dir-uploading-images-to-subdomains/#findComment-631183 Share on other sites More sharing options...
knowj Posted September 1, 2008 Author Share Posted September 1, 2008 *bump* Link to comment https://forums.phpfreaks.com/topic/122200-open_base_dir-uploading-images-to-subdomains/#findComment-631439 Share on other sites More sharing options...
knowj Posted September 5, 2008 Author Share Posted September 5, 2008 *bump* - anyone have any knowledge in this field? Link to comment https://forums.phpfreaks.com/topic/122200-open_base_dir-uploading-images-to-subdomains/#findComment-634464 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.