i've used plesk for quite some time... been fairly pleased with their features and stability. started outgrowing my old server, so just moved to a new box this weekend, which utilizes the latest build of plesk (7.5)
the one major change, is now all home directories are symlinked through /var/www instead of their actual location of /home/httpd - i understand the need to be a little more mainstream on paths... but it has thrown a wrench into the works with photopost. unfortunately, from what i can see, the sheer amount of changes that would have to be made to plesk in order to point this back is astronomical and would leave security updates in the future a nightmare. so... i need to fix the issue with the coding.
after made the change in config-inc to reflect the path allowed, as /var/www/, photopost displayed properly (have vb3 integration, changes were made there as well) - so... everything started working fine. except uploads.
i have continually gotten open_basedir restrictions. usually, this isnt a big deal to fix, but its something with this symlink being used that is throwing things out of whack. i have allowed all paths in every variation, and am getting nothing but errors still. if you'll notice the errors below... it states it is not in the allowed path, and yet immediately afterwards, states the exact path that is in, is allowed.
Quote:
Warning: copy(): open_basedir restriction in effect. File(/home/httpd/vhosts/website.com/httpdocs/gallery/data/503/image.gif) is not within the allowed path(s): (/home/httpd/vhosts/website.com/httpdocs:/var/www/vhosts/website.com/httpdocs:/tmp) in /var/www/vhosts/website.com/httpdocs/gallery/uploadphoto.php on line 512
Warning: copy(/home/httpd/vhosts/website.com/httpdocs/gallery/data/503/image.gif): failed to open stream: Operation not permitted in /var/www/vhosts/website.com/httpdocs/gallery/uploadphoto.php on line 512
Warning: getimagesize(): open_basedir restriction in effect. File(/home/httpd/vhosts/website.com/httpdocs/gallery/data/503/image.gif) is not within the allowed path(s): (/home/httpd/vhosts/website.com/httpdocs:/var/www/vhosts/website.com/httpdocs:/tmp) in /var/www/vhosts/website.com/httpdocs/gallery/image-inc.php on line 214
Warning: getimagesize(/home/httpd/vhosts/website.com/httpdocs/gallery/data/503/image.gif): failed to open stream: Operation not permitted in /var/www/vhosts/website.com/httpdocs/gallery/image-inc.php on line 214
Warning: copy(): open_basedir restriction in effect. File(/home/httpd/vhosts/website.com/httpdocs/gallery/data/503/image.gif) is not within the allowed path(s): (/home/httpd/vhosts/website.com/httpdocs:/var/www/vhosts/website.com/httpdocs:/tmp) in /var/www/vhosts/website.com/httpdocs/gallery/image-inc.php on line 241
Warning: getimagesize(): open_basedir restriction in effect. File(/home/httpd/vhosts/website.com/httpdocs/gallery/data/503/image.gif) is not within the allowed path(s): (/home/httpd/vhosts/website.com/httpdocs:/var/www/vhosts/website.com/httpdocs:/tmp) in /var/www/vhosts/website.com/httpdocs/gallery/image-inc.php on line 412
Warning: getimagesize(/home/httpd/vhosts/website.com/httpdocs/gallery/data/503/image.gif): failed to open stream: Operation not permitted in /var/www/vhosts/website.com/httpdocs/gallery/image-inc.php on line 412
|
as well as a note stating the image is too small (but obviously because it doesnt exist in the data dir)
the files upload fine. the files i have tested with all write to the uploads dir without issue. all permissions are set correctly as well. it has something to do with the $filepath being called from $Globals. how or where its getting /home/httpd/etc from i can only guess is a readdir as the line "/home/httpd/etc..." no longer exists in any coding on my site anywhere.
im hoping its something simple, and just my lack of sleep is blinding me from something horribly obvious. anyone have any suggestions? tips? point me in the right direction?