paul2 Posted April 19, 2009 Share Posted April 19, 2009 has anyone got an update to this issue an error occurred while uploading imagei am using a 1and1 server dedicated which is a plesk 9.0.1 running centosi am unable to upload any images, i have setup prestashop on a 1and1 hosting account with no problem as there hosting accounts seem to have the directive of open_basedir set to none, however on a plesk server they have it set toopen_basedir /var/www/vhosts/virtualdomainname/httpdocs:/tmpi have tried to create the directory :tmp in shell still no joy i have tried editing the httpd.include and restarted apachestill no joy, do the developers or anyone have a fix ?Regards Link to comment Share on other sites More sharing options...
paul2 Posted April 19, 2009 Author Share Posted April 19, 2009 well i have been messing with config files now for a good few hours and have manged to get the open_base set to none with safe mode on and still it will not upload any images.Surely someone has an idea how to fix this problem?is it a php.ini problem?a permissions issues?My system is PLESK 9.0.1 on CentOsGD details are:GD Support enabledGD Version bundled (2.0.28 compatible)FreeType Support enabledFreeType Linkage with freetypeFreeType Version 2.2.1GIF Read Support enabledGIF Create Support enabledJPG Support enabledPNG Support enabledWBMP Support enabledXBM Support enabled PHP Version 5.1.6MYSQL Client API version 5.0.45 i have checked all the permissions and it installed perfect with no permission errors on the installer the cart works other than you are unable to upload any images.Hope someone can help! as seen lots of information on this but no real clear fix.Regards Link to comment Share on other sites More sharing options...
paul2 Posted April 19, 2009 Author Share Posted April 19, 2009 ok i managed to fix it here is my fix:I hope this helps out others!right first of all i did thisi created a phptest file to list my php settingsi noticed that the plesk server had the open_basedir set as open_basedir /var/www/vhosts/domain/httpdocs:/tmp no valuei logged in as root and created the folder :/tmp in my httpdocs folderstill did not worknext step was to change the open_basedirmanaged to change it to none via this methodi created the following files inmy virtual directory var/www/vhosts/yourdomain/conf/vhost.confvhost_ssl.confinside each file i put thisphp_admin_flag engine onphp_admin_value open_basedir nonei then updated via this command in shell# /usr/local/psa/admin/sbin/websrvmng -v -ai then restarted the apache daemoni then went to the config.inc.php file and enabled show errors so i could see the bugs i noticed when i uploaded images i had a permisions errors it seems that Apache did not have permissionso i then tried to regenerate the thumbnails and had a whole screen of permission denied messagesi logged into shell typed the following:[root@s15346461# chown -R apache:psacln httpdocs[root@s15346461# chmod -R g+w httpdocs[root@s15346461# find httpdocs -type d -exec chmod g+s {} \;i then regenrated the thumbnails no errors!i then tried to upload a image all works fine!i hope this helps out you guys with the same problem as im sure there is others with this problem browsing the threads! Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now