Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

File upload problem in new Cpanel/osCommerce 2.2-MS2


gorillas

Recommended Posts

Posted

Hi everyone!

 

We have an "ancent" installation of oscommerce for one of our clients. When we moved it from an old/not updated Cpanel licens to an updated, which run PHP under SUEXEC, there were som problems which we had to solve. This included moving some of the code in htaccess files to php.ini-files in the directories and make sure the files/directories had right owner/permissions(755) of the files. The only thing we didn't get any success with was the product image upload function. We get 2 messages, one that the image is uploaded (success) AND the other tells the upload failed.

 

We are also using an old "modification" which cut the images for tumbnails and other sizes, which we don't remember the name of. Has anyone had any similar issues, which you have solved or maybe anyone has some input?

 

 

 

Daniel

Posted

Daniel,

 

Is the new host running PHP 5.x and MySQL 5.x ? Did you update the cart to the latest version RC2a ?

 

I ask because older versions of OSC were written for PHP 4.x and will need to be updated if your new host runs PHP 5.x

 

 

Chris

Posted

For the product image upload, directory permissions of 755 may not be adequate. I'm not familiar with SUEXEC, but if it's not running PHP as "owner", the running application will not have "write" permission to the directory, and can't upload files to there. If PHP is running in your "group", try 775. If it's running as "other/world", you'll need 777. Note that 777 is a major security hazard (especially on a shared server), so you'll want to change permissions back to 755 as soon as you're done uploading files.

Posted

Thank you for answer...

 

We have always been running under PHP5/mysql5, on both our earlier server and the new one. SUEXEC, to clearify, means instead of running the sites under root/apache user, each site runs individually on their own account. Changing owner/rights have we tried a lot, 777 (should not be used, but tested anyway) AND 755 is tested; we haven't tested 775 though... We will do that.

 

// Daniel

Archived

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

×
×
  • Create New...