Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

404 Installation problem?


ry024

Recommended Posts

I'm trying to follow along with the install guide, I've attempted to both the catalog folder as well as taking the files out of catalog and just putting the files on the hosting site. But every time I try install oscommerce, it brings up an error saying

Not Found

 

The requested URL /install was not found on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

 

I have tried both mysite.com/catalog/install

as well as mysite.com/install

I also set all the permissions on the folders to 777 as well as tried it with the default permissions, but still to no avail, I can't install.

 

Does anyone know of anything I may be doing wrong? I cant connect MySQL until i can actually install oscommerce right?

 

I'm also using E-boundhost to host my domain, if that makes a difference.

Link to comment
Share on other sites

Don't set directories (folders) or files to 777. Those instructions are wrong. Always start with 755 (644 for files). If osC complains that it can't write to a specific directory, try 775 (664 for a file). Only if that still fails do you go to 777 (or 666), as those permissions are a security hazard (and if possible, you change them back to 755/644 as soon as osC is done with whatever it's doing).

 

I don't know what specific instructions you're following, but does it ask you to run "install.php", or go to "/install" directory? If "install.php", you left off the ".php" in the browser. If a directory, where did you install into? It may be actually asking you to go to /catalog, if that's where you installed osC.

 

If you're not using some sort of "one button" or automated installation, generally the instructions will tell you to create the empty database first. The exact procedure, along with what you fill in for the configure.php files, will vary from host to host. You'll need to actually create the database and its user/password, and GRANT the appropriate permissions to the user. The values to fill in for user, password, db name, etc. in configure.php will vary from host to host.

Link to comment
Share on other sites

I was following along with this video

 

http://www.youtube.com/watch?v=T9e04Lz0v-k

 

and I get this error

 

 

 

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, [email protected] and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

The tutorial above says to move the catalog folder to the public_html folder and install from there.

 

Another tutorial said to move the catalog folder to the main website directory as its own folder, which is the related to what I was saying in the 1st post.

Link to comment
Share on other sites

Also, I tried just putting everything from the catalog folder and moved it to my website directory and removed the default html link provided by the hosting company, and now when I try to type in my website to try and install oscommerce, it just loads 404 requested page not found. Do you think it's a problem with my host? All the files are in the directory but it keeps saying it cant be found..

Link to comment
Share on other sites

I just watched the video. Although it was done for osC 2.2RC2a, it should still be mostly applicable to 2.3.3, the current version. It wants you to end up with /shop holding the store, which is fine. The default installation is /catalog, but /shop or /store is fine. You don't want to end up with / holding the store. I also don't like them telling you to change the configure.php files to 777 -- that's totally unnecessary. Depending on your server's exact configuration, 644, 664, or maybe 666 would have done fine for running "install". They also changed them to 644, which works only if PHP is running in your group or as "other". osC will tell you if it doesn't like the 644 permissions (that it can write to the files) and then you change them to 444. If 644 works for them (not writable by PHP), 664 or 666 would have been needed for "install" to work.

 

First try using 644 permissions for configure.php. If "install" complains it can't update them, try 664. As a last resort try 666. Many servers have security software which bars access to a file or directory if it's xx7 or xx6 permissions. That may be why you're getting the 500 (Internal Server) error.

 

It sounds like you may have totally messed up your system trying to move stuff around. It would be a lot easier to rename /catalog to /shop rather than doing all this moving around. Check your ownership of your files and directories after FTPing and uploading the file, and unzipping it -- you should own them. If you don't own them, you can't change permissions. If your system is totally messed up, erase everything and start over.

 

Finally, don't get confused by all those "404 Errors" you're seeing. The real error is something else -- the "404 Not Found error was encountered while trying to use an ErrorDocument to handle the request" is just an Apache server brain fart -- a misconfiguration that seems to be depressingly common. It's just noise and means nothing.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...