Post by OnlyBlue » Fri Aug 08, 2008 12:08 pm

I have installed 0.7.7 and 0.7.8 on both my local PC and godaddy share hosting.

The configuration of my local PC is:
Windows XP-SP2
XAMPP 1.6.3a
--PHP 5.2.3
--Apache 2.2.4
--MySQL 5.0.45

The configuration of godaddy share hosting is:
Linux
Apache 1.3.33
PHP 5.2.5
MySQL 5.0.18

When I browser the 0.7.7 based website on my local PC with the following URL address , it works.
http://localhost/shop/index.php?control ... ation_id=1

When I browser the 0.7.7 based website on godaddy share hosting with the following URL address , it works.
http://shop.mydomain.com/index.php?cont ... ation_id=1

When I browser the 0.7.8 based website on my local PC with the following URL address , it works.
http://localhost/store/information/information_id/1

When I browser the 0.7.8 based website on godaddy share hosting with the following URL address ,
http://store.mydomain.com/information/information_id/1
a 500 Internal Server Error occurs:
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, support@supportwebsite.com 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.
When I try to browser the 0.7.8 based website on godaddy share hosting with the following URL address, it works.
http://store.mydomain.com/index.php?con ... ation_id=1

I looks a URL Alias problem. But I didn't find the mod_rewrite setting on godaddy share hosting by using phpinfo().
I saw some similar posts, but didn't figure out how to do. Could somebody please tell me how to solve this problem?
Thanks!
Best regards!

onlyblue

New member

Posts

Joined
Sun May 13, 2007 8:52 am

Post by fido-x » Fri Aug 08, 2008 1:17 pm

The 500 Internal Server Error is being thrown up because the server doesn't like something in your .htaccess file. The only real reason for having a .htaccess file in your setup is to ensure things like php_register_globals is turned off and to setup apache rewrites for use with URL Aliasing. Removing the .htaccess file from your hosted site should resolve this error.

Regards, Fido-X.

Image
Modules for OpenCart 2.3.0.2
Homepage Module [Free - since OpenCart 0.7.7]
Multistore Extensions
Store Manager Multi-Vendor/Multi-Store management tool

If you're not living on the edge ... you're taking up too much space!


User avatar
Expert Member

Posts

Joined
Sat Jun 28, 2008 1:09 am
Location - Tasmania, Australia

Post by OnlyBlue » Fri Aug 08, 2008 1:29 pm

Thanks for your reply, Fido-X
When I removed the .htaccess file, a 404 Not Found error occurs:

http://store.mydomain.com/information/information_id/1
Not Found
The requested URL /information/information_id/1 was not found on this server.

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

New member

Posts

Joined
Sun May 13, 2007 8:52 am

Post by fido-x » Fri Aug 08, 2008 1:34 pm

You'll also need to set URL Aliasing to "OFF".

Regards, Fido-X.

Image
Modules for OpenCart 2.3.0.2
Homepage Module [Free - since OpenCart 0.7.7]
Multistore Extensions
Store Manager Multi-Vendor/Multi-Store management tool

If you're not living on the edge ... you're taking up too much space!


User avatar
Expert Member

Posts

Joined
Sat Jun 28, 2008 1:09 am
Location - Tasmania, Australia

Post by OnlyBlue » Fri Aug 08, 2008 2:12 pm

fido-x wrote: You'll also need to set URL Aliasing to "OFF".

Regards, Fido-X.
I didn't find where to set up URL Aliasing to "OFF" in OpenCart. Is it in server side? If so, I can't change it because I'm using share hosting.

Best regards!

OnlyBlue

New member

Posts

Joined
Sun May 13, 2007 8:52 am

Post by frame » Fri Aug 08, 2008 3:47 pm

Insert into your .htaccess file:
RewriteBase /

New member

Posts

Joined
Sat Apr 26, 2008 7:24 pm

Post by fido-x » Fri Aug 08, 2008 4:09 pm

Log in to your OpenCart administration and from the "Admin" menu, select Configuration->Setting. You can turn URL Aliasing off from there.
Insert into your .htaccess file:
RewriteBase /
It was his .htaccess file that was causing the initial 500 Internal Server Error in the first place.

Regards, Fido-X.

Image
Modules for OpenCart 2.3.0.2
Homepage Module [Free - since OpenCart 0.7.7]
Multistore Extensions
Store Manager Multi-Vendor/Multi-Store management tool

If you're not living on the edge ... you're taking up too much space!


User avatar
Expert Member

Posts

Joined
Sat Jun 28, 2008 1:09 am
Location - Tasmania, Australia

Post by SiteE@se » Fri Aug 08, 2008 4:31 pm

If you use aliasing and the .htaccess fille supplied in 0.7.8 I've found some servers throw up an internal error unless you comment out the Options +FollowSymlinks thus:

#Options +FollowSymlinks

Chris

Chris @ SiteE@se Web Design


Active Member

Posts

Joined
Mon Dec 17, 2007 7:40 am
Location - UK

Post by OnlyBlue » Fri Aug 08, 2008 6:19 pm

siteease wrote: If you use aliasing and the .htaccess fille supplied in 0.7.8 I've found some servers throw up an internal error unless you comment out the Options +FollowSymlinks thus:

#Options +FollowSymlinks

Chris
I commented out the options +FollowSymlinks. It's no effect.
:(

New member

Posts

Joined
Sun May 13, 2007 8:52 am

Post by SiteE@se » Sat Aug 09, 2008 6:51 pm

Looks like Godaddy has issues with mod_rewrite for other folk too:

http://www.btjones.com/2007/12/09/godad ... oblem-fix/

http://www.ericfaerber.com/2007/08/21/g ... d_rewrite/

Google throws up loads more.  Unless there's another Godaddy user on these forums that has a solution for you it might be best to think about moving to another hosting provider. We can offer a hosting package for UK users & OpenCart and there are others on the forum who offer packages suitable for those in other countries ......

Chris

Chris @ SiteE@se Web Design


Active Member

Posts

Joined
Mon Dec 17, 2007 7:40 am
Location - UK

Post by OnlyBlue » Sun Aug 10, 2008 6:43 am

@Fido-X

When I remove the .htaccess file and set URL Aliasing to off, a 404 Not Found error appears. 

:(

New member

Posts

Joined
Sun May 13, 2007 8:52 am

Post by fido-x » Sun Aug 10, 2008 10:39 am

Some hosting services provide you with a "php.ini" (which can be put in your hosted directory) and also allow you some kind of facility to make suitable changes to the Apache configuration for the hosted site (this would be the best place to put any "Options +FollowSymLinks" or other rewrite stuff for URL Aliasing).

Alternatively, use version 0.7.7, which doesn't have these problems.

Image
Modules for OpenCart 2.3.0.2
Homepage Module [Free - since OpenCart 0.7.7]
Multistore Extensions
Store Manager Multi-Vendor/Multi-Store management tool

If you're not living on the edge ... you're taking up too much space!


User avatar
Expert Member

Posts

Joined
Sat Jun 28, 2008 1:09 am
Location - Tasmania, Australia

Post by Qphoria » Sun Aug 10, 2008 10:48 am

OnlyBlue wrote: When I remove the .htaccess file and set URL Aliasing to off, a 404 Not Found error appears. 
I think the reason for the 404 is due to another code bug. It is still trying to use Alias on the front end even when turned off. You need to edit your "library/environment/url.php" file and
change:

Code: Select all

if (!preg_match('/\/admin\/index.php/',$_SERVER['PHP_SELF'])) {
to:

Code: Select all

if ((!preg_match('/\/admin\/index.php/',$_SERVER['PHP_SELF'])) && ($this->config->get('config_url_alias'))) {

Image
Donate!|OpenCart Basics|GeoZones
Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by virtualgeorge » Sat Aug 16, 2008 1:39 am

I don't think you should use godaddy hosting for any type of db website. I have seen so many people in other forums over the years with problems with a lot of different scripts.

I prefer cpanel hosting but thats just what I am used to.

I have some websites I manage on godaddy that are just simple html sites and they work fine but try to install a php/mysql anything and I always run into problems.

One good thing though, I have never seen any of my godaddy hosted sites go down. 

Active Member

Posts

Joined
Wed Jun 18, 2008 5:57 am
Who is online

Users browsing this forum: No registered users and 1 guest