gorillas Posted August 31, 2010 Posted August 31, 2010 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
Guest Posted August 31, 2010 Posted August 31, 2010 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
MrPhil Posted August 31, 2010 Posted August 31, 2010 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.
gorillas Posted September 1, 2010 Author Posted September 1, 2010 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
gorillas Posted September 1, 2010 Author Posted September 1, 2010 Thank you, problem solved! We just forgot about the settings file in the admin directory...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.