Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

TheTechDev

Installation Error 500

Recommended Posts

Hello, I am getting error 500 after the package unzips.

Any help would be greatly appreciated. If you need more information please ask, i did not know what all to say.

I am using Xampp with php 8 and apache 2.4

I followed this: https://wiki.oscommerce.com/index.php?title=Installing_osCommerce_v.4.0 and all extensions is enabled. 

See photos for issue. 

Screenshot_10.thumb.png.694dbc54a062ae0c7e94d311ce1d33dd.pngScreenshot_11.thumb.png.033e35026af07da2c77733cebc2b74da.pngScreenshot_12.thumb.png.f670ac0df9c0f9d56adc461d750ae380.png

Edited by TheTechDev

Share this post


Link to post
Share on other sites

Appears to be something wrong with the .htaccess file that comes with it

No idea how to fix this in apache 2.4 / php 8

Screenshot_13.thumb.png.a8934dcc5d848b554c297085ae0611ca.png

Edited by TheTechDev

Share this post


Link to post
Share on other sites

Hello,

Try to comment out RedirectMatch rules in .htaccess files. Looks like you do not have Apache module mod_alias enabled:

# RedirectMatch 403 /\\.svn(/|$)
# RedirectMatch 403 /*\.sh($)
# RedirectMatch 403 /*\.log($)

And for security reason you can add Rewrite rules instead:

RewriteRule /*\.svn(/|$) - [F,L]
RewriteRule /*\.sh($) - [F,L]
RewriteRule /*\.log($) - [F,L]

Of course mod_rewrite should be enabled in the Apache configuration.

Share this post


Link to post
Share on other sites
28 minutes ago, TheTechDev said:

removing the .htaccess worked and it is working now. 

Website will not be fully working correctly without .htaccess. At least seo URLs.

Share this post


Link to post
Share on other sites
9 hours ago, asandros said:

Hello,

Try to comment out RedirectMatch rules in .htaccess files. Looks like you do not have Apache module mod_alias enabled:


# RedirectMatch 403 /\\.svn(/|$)
# RedirectMatch 403 /*\.sh($)
# RedirectMatch 403 /*\.log($)

And for security reason you can add Rewrite rules instead:


RewriteRule /*\.svn(/|$) - [F,L]
RewriteRule /*\.sh($) - [F,L]
RewriteRule /*\.log($) - [F,L]

Of course mod_rewrite should be enabled in the Apache configuration.

Both the Mod Alias and mod_rewrite is enabled in httpd.conf

Share this post


Link to post
Share on other sites

Hello,

Please review osCommerce wiki article to check what minimal steps are required to configure server for osCommerce 4:

https://wiki.oscommerce.com/index.php?title=Installing_osCommerce_4_on_Dedicated_Server,_Cloud_Server_or_VPS

It's applicable for Debian 11 and Ubuntu 20.04

In fact these are really minimal steps.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×