Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

500 Internal Server Error updating PHP 5.3 to 5.4


valquiria23

Recommended Posts

Hello friends, I need help!

I just changed the PHP version in my hosting (godaddy) from 5.3 to 5.4 and I am getting the following error:

500 Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator and inform them of the time the error occurred, and the actions you performed just before this error.

More information about this error may be available in the server error log.


Apache Server at www.mysite.com Port 80

 

this is my .htaccess configuration:

 

# $Id$
#
# This is used with Apache WebServers
#
# For this to work, you must include the parameter 'Options' to
# the AllowOverride configuration
#
# Example:
#
# <Directory "/usr/local/apache/htdocs">
#   AllowOverride Options
# </Directory>
#
# 'All' with also work. (This configuration is in the
# apache/conf/httpd.conf file)

# The following makes adjustments to the SSL protocol for Internet
# Explorer browsers

#<IfModule mod_setenvif.c>
#  <IfDefine SSL>
#    SetEnvIf User-Agent ".*MSIE.*" \
#             nokeepalive ssl-unclean-shutdown \
#             downgrade-1.0 force-response-1.0
#  </IfDefine>
#</IfModule>

# If Search Engine Friendly URLs do not work, try enabling the
# following Apache configuration parameter

AcceptPathInfo On

# Fix certain PHP values
# (commented out by default to prevent errors occuring on certain
# servers)

# php_value session.use_trans_sid 0
#  php_value register_globals 1

# --------------

# If you are getting errors you may need to comment this out like ..
Options +FollowSymLinks
# Options +SymLinksIfOwnerMatch
<IfModule mod_rewrite.c>
# RewriteEngine On

  # RewriteBase instructions
  # Change RewriteBase dependent on how your shop is accessed as below.
  # http://www.mysite.com = RewriteBase /
  # http://www.mysite.com/catalog RewriteBase /catalog/ 
  # http://www.mysite.com/catalog/shop/ = RewriteBase /catalog/shop/

  # Change RewriteBase using the instructions above  
#  RewriteBase /mysite/catalog/
  
  RewriteBase /catalog/

  RewriteRule ^([a-z0-9/-]+)-p-([0-9]+).html$ product_info.php [NC,L,QSA]
  RewriteRule ^([a-z0-9/-]+)-c-([0-9_]+).html$ index.php [NC,L,QSA]
  RewriteRule ^([a-z0-9/-]+)-m-([0-9]+).html$ index.php [NC,L,QSA]
  RewriteRule ^([a-z0-9/-]+)-pi-([0-9]+).html$ popup_image.php [NC,L,QSA]
  RewriteRule ^([a-z0-9/-]+)-pr-([0-9]+).html$ product_reviews.php [NC,L,QSA]
  RewriteRule ^([a-z0-9/-]+)-pri-([0-9]+).html$ product_reviews_info.php [NC,L,QSA]
  # Articles contribution
  RewriteRule ^([a-z0-9/-]+)-t-([0-9_]+).html$ articles.php [NC,L,QSA]
  RewriteRule ^([a-z0-9/-]+)-au-([0-9]+).html$ articles.php [NC,L,QSA]
  RewriteRule ^([a-z0-9/-]+)-a-([0-9]+).html$ article_info.php [NC,L,QSA]
  # Information pages
  RewriteRule ^([a-z0-9/-]+)-i-([0-9]+).html$ information.php [NC,L,QSA]
  # Links contribution
  RewriteRule ^([a-z0-9/-]+)-links-([0-9_]+).html$ links.php [NC,L,QSA]
  # Newsdesk contribution
  RewriteRule ^([a-z0-9/-]+)-n-([0-9]+).html$ newsdesk_info.php [NC,L,QSA]
  RewriteRule ^([a-z0-9/-]+)-nc-([0-9]+).html$ newsdesk_index.php [NC,L,QSA]
  RewriteRule ^([a-z0-9/-]+)-nri-([0-9]+).html$ newsdesk_reviews_info.php [NC,L,QSA]
  RewriteRule ^([a-z0-9/-]+)-nra-([0-9]+).html$ newsdesk_reviews_article.php [NC,L,QSA]
</IfModule>
 

 

 

 

 

:heart: Community Oscommerce fan :heart: You'll find the latest osC community version here.

 

Link to comment
Share on other sites

Valquiria - Check if there is a php.ini file in the root directory. Some commands in 5.3 are not allowed in 5.4 and can cause that failure.

Support Links:

For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc.

All of My Addons

Get the latest versions of my addons

Recommended SEO Addons

Link to comment
Share on other sites

1 hour ago, valquiria23 said:

Dear @Jack_mcs , @wHiTeHaT

I do not have php.ini files in the root.
I already removed the # and it still does not work.

Please help!!

Kiss

Valqui

Hi,

A same issue arouse with me I did the following first:-

Checking the CGI error log where the errors related to website are listed in detail. It may help locate the actual error and file that is causing the error.

Or

please contact the host to give you the error details in relation to it and post it here which may help us debug further.

Hope it helps!

Warm Regds./

radhavallabh

Link to comment
Share on other sites

You really need to see server log (apache error_log). It will have all the info you need.\

One of the problems may be security. Make sure your PHP files have permission set to 644 (e.q. not writable by anyone but owner).

Rudolf

Link to comment
Share on other sites

Lots of things can trigger a 500 error after an upgrade. Your host may have done more than just a minor PHP upgrade (5.4 is still very obsolete... you should be at least at 5.6). I see you have "Options" in your .htaccess -- many hosts have banned that. Your host may have installed something like suPHP, which won't allow "world writable" permissions (mentioned above) on any file or directory. The best thing would be to ask your host exactly what they changed that would trigger such an error. Also read through http://www.catskilltech.com/FreeSW/faqs/index.html#err500

Link to comment
Share on other sites

Dear @MrPhil, @wHiTeHaT, @rudolfl, @Jack_mcs

Thank you very much friends for your answers.

I have a php5.ini file in the root. Its configuration is:

register_globals = on
allow_url_fopen = off

expose_php = Off
max_input_time = 60
variables_order = "EGPCS"
extension_dir = ./
upload_tmp_dir = / tmp
precision = 12
SMTP = relay-hosting.secureserver.net
url_rewriter.tags = "a = href, area = href, frame = src, input = src, form =, fieldset ="

[Zend]
zend_extension = / usr / local / zo / ZendExtensionManager.so
zend_extension = / usr / local / zo / 4_3 / ZendOptimizer.so

When I rename it, it gives me the following error:

Fatal error: Class 'SQLiteDatabase' not found in /home/content/25/14014725/html/ferreteriaideal/catalog/includes/modules/ultimate_seo_urls5/cache_system/sqlite.php on line 103

Any ideas that I can do?

Kisses

Valqui

:heart: Community Oscommerce fan :heart: You'll find the latest osC community version here.

 

Link to comment
Share on other sites

My first guess would be the register_globals = on line.  Try removing that and see if it helps. Register globals are not allowed under php 5.4 so if  your code requires register globals to run,  you will have to update it.

Support Links:

For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc.

All of My Addons

Get the latest versions of my addons

Recommended SEO Addons

Link to comment
Share on other sites

The error is saying it can't find the SQLLiteDatabase. That has been replace with SQLLite3 though I thought not until after 5.4. You can check with your host to see if it is installed and, if not, see if they will install it. As far as I know it is only used by SEO 5 so you could try turning that off to see if it makes a difference. SEO 5 doesn't completely turn off so if it doesn't make a difference, that may not prove anything. But if the error goes away, it is due to the addon. In that case, check to see if there is an update for it. You also try disabling cache in its settings since that is what the failure indicates it is used for. If you turn that off, you may be able to remove the .htaccess file (just rename it) and see if the problem goes away. I don't use SEO 5 so I'm guessing at a few things here. The idea is to try to see if that is causing the problems or not and then proceed from there.

Support Links:

For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc.

All of My Addons

Get the latest versions of my addons

Recommended SEO Addons

Link to comment
Share on other sites

You may be seeing two different problems here. The 500 error must be due to something in the php5.ini file that your server doesn't like (it disappears when the php5.ini file disappears, so...). You may need to go over it line by line with your host's tech support. osC doesn't need register globals, so that line should be gone, but there may be others that are causing trouble. Once you're past the 500 error (i.e., it's fixed), the SQLite problem is probably a separate issue, unless it's being triggered by something in the php5.ini file. Anyway, I would fix the 500 error problem first, and with a fair amount of luck, that might fix the SQLite problem too.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...