Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Unable to Instal OSCommerce


kramster

Recommended Posts

Posted

I have been trying to set up a test OSCommerce site for 3 days now and every time I try to run the installation I get a server 500 error.

 

I tried renaming all the .htaccess files I could find.

 

I changed the permissions on the two configure.php files.

 

I tried a second server.

 

The first server I tried is already running Joomla 1.5.15 with OSC 3 and JFusion 1.2.4 - in this instance the running has Joomla living in public_html/squirrel and OSC in public_html/squirrel/oscommerce - no worries.

 

I installed Joomla 1.5.18 in public_html/jfdev successfully. I then tried to instal OSC 2.2 rc2a in public_html/jfdev/catalog but whatever I do I get a server 500. I tried deleting catalog and intstalling OSC in public_html/jfdev instead, but no luck there either.

 

So I tried another server, this one is running our live system Joomla 1.5.18 with OSC 2.2 rc2

Joomla lives in public_html and OSC in public_html/catalog

 

I loaded Joomla 1.5.18 into public_html/squirrel and OSC into public_html/squirrel/catalog but the same server 500 error came up.

 

I suspect this issue may have to do something with paths but am unsure how to fix it if this is so. Note that my OSC v3 installation works with the same relative directory setup as I'm trying to get working with 2.2 rc2a.

 

I('d very much appreciate any help.

Posted

500 errors are mostly due to a permission problem, also make sure you are uploading with the correct type via FTP (BINARY or ASCII)

Nic

Sometimes you're the dog and sometimes the lamp post

[/url]

My Contributions

Posted

Hi Nic,

 

I extracted the catalog/... from the release zipfile and rezipped it. I uploaded that using the cPanel File Manager Upload. That doesn't have any parameters at all so I don't know whether the transfer is ASCII or binary. All of the permissions are as they came out of the zipfile (mostly 777 and 666)

 

Mark

Posted
I tried renaming all the .htaccess files I could find.

What for? .htaccess files are in there for a reason. Any php_value and php_flag lines have to be removed and put into php.ini, but other than that, you should keep your .htaccess. Errors in an .htaccess will cause a 500 error, but you should fix the problem, not toss out the file.

 

That doesn't have any parameters at all so I don't know whether the transfer is ASCII or binary.

A .zip file must be transferred in binary. If you were able to unzip it, it must have been.

 

All of the permissions are as they came out of the zipfile (mostly 777 and 666)

That's WRONG. Directory permissions should be 755 and file permissions should be 644 (except configure.php, which are 444 after you're done modifying them). Depending on how your server is configured (whether PHP and the server software run as you, in your group, or as "other") you might have to go to 775/664 or (temporarily only, and in extreme cases) 777/666 for specific directories and files that osC needs to write to.

 

Read

-- 500 error causes

http://www.oscommerce.com/forums/topic/345637-internal-server-error/page__view__findpost__p__1442374

-- setting permissions

http://www.oscommerce.com/forums/index.php?showtopic=327395&view=findpost&p=1443272

Posted

Why using oscom3 still stable version not in place plus some framework changes in pipeline.

 

Will be a prob in future as no add ons will be available so as to expand Your features.

 

Satish

Ask/Skype for Free osCommerce value addon/SEO suggestion tips for your site.

 

Check My About US For who am I and what My company does.

Posted

Mr. Phil

 

re .htaccess - in reading through the forum trying to find a solution, many posts suggested deleting the .htaccess files. I renamed them so that I could put them back later. It didn't work anyway.

 

permission - I don't know whether it was the process I used - I unzipped the release file on my local machine and then rezipped the catalog directory tree. This I uploaded to the server where I unzipped it. The majority of directories were 777 and files 666, although the configuration.php files were 444. I didn't think Winzip changed permissions, although it might have. I'm aware that I have to change them to 755/644 which is tedium plus and which I had to do on our live site when it got hacked.

 

It would seem that the permissions may be upsetting the server somehow - I'll tryt again once I have checked the whole directory tree and reviewed all the .htaccess files.

 

Thanks for you help.

 

Satish - The reason I've installed OSC 3 is to take a look at it for future reference - it's not a live site.

Posted

Problem fixed.

 

The problem was this. I followed the Quick Instal Guide at

http://www.oscommerce.com/forums/topic/162231-quick-install-guide/

 

At step 2 I unzipped the v2.2 rc2a zipfile and extracted the catalog folder onto my local PC.

 

To do step 3 I used cPanel's File Manager Upload. Now this allows you to upload only one file at a time so I zipped the catalog directory and uploaded this new zipfile to the server and unzipped it in File Manager.

 

Herein lies the problem - all of the permissions were wrong! Directories were 777 and files were 666.

 

To fix this I deleted the catalog directory from the server and then uploaded it from my PC using Core FTP LE. This process was exceedingly painful as it took a little over an hour.

 

I then went on to step 5 and OSC installed beautifully.

 

Perhaps others have fallen into the same trap that I did by rezipping the catalog directory.

 

I hope this helps someone else.

 

Regards, Mark

Archived

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

×
×
  • Create New...