Jump to content

an error occurred while uploading image unable to upload nay images using PLESK 9.0.1 CentOs


Recommended Posts

has anyone got an update to this issue an error occurred while uploading image

i am using a 1and1 server dedicated which is a plesk 9.0.1 running centos

i 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 to

open_basedir /var/www/vhosts/virtualdomainname/httpdocs:/tmp

i have tried to create the directory :tmp in shell still no joy i have tried editing the httpd.include and restarted apache

still no joy, do the developers or anyone have a fix ?

Regards

Link to comment
Share on other sites

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 CentOs

GD details are:
GD Support enabled
GD Version bundled (2.0.28 compatible)
FreeType Support enabled
FreeType Linkage with freetype
FreeType Version 2.2.1
GIF Read Support enabled
GIF Create Support enabled
JPG Support enabled
PNG Support enabled
WBMP Support enabled
XBM Support enabled

PHP Version 5.1.6
MYSQL 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

ok i managed to fix it here is my fix:

I hope this helps out others!

right first of all i did this

i created a phptest file to list my php settings
i noticed that the plesk server had the open_basedir set as
open_basedir /var/www/vhosts/domain/httpdocs:/tmp no value

i logged in as root and created the folder :/tmp in my httpdocs folder

still did not work

next step was to change the open_basedir

managed to change it to none via this method

i created the following files in

my virtual directory var/www/vhosts/yourdomain/conf/
vhost.conf
vhost_ssl.conf
inside each file i put this


php_admin_flag engine on
php_admin_value open_basedir none

i then updated via this command in shell

# /usr/local/psa/admin/sbin/websrvmng -v -a

i then restarted the apache daemon

i 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 permission
so i then tried to regenerate the thumbnails and had a whole screen of permission denied messages

i 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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...