TheTechDev Posted August 28, 2022 Share Posted August 28, 2022 (edited) 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. Edited August 28, 2022 by TheTechDev Quote Link to comment Share on other sites More sharing options...
osCommerce-Official Posted August 28, 2022 Share Posted August 28, 2022 @ynechitajlo could you please comment? Quote Link to comment Share on other sites More sharing options...
TheTechDev Posted August 28, 2022 Author Share Posted August 28, 2022 (edited) 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 Edited August 28, 2022 by TheTechDev Quote Link to comment Share on other sites More sharing options...
TheTechDev Posted August 29, 2022 Author Share Posted August 29, 2022 removing the .htaccess worked and it is working now. Quote Link to comment Share on other sites More sharing options...
asandros Posted August 29, 2022 Share Posted August 29, 2022 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. Quote Link to comment Share on other sites More sharing options...
asandros Posted August 29, 2022 Share Posted August 29, 2022 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. Quote Link to comment Share on other sites More sharing options...
TheTechDev Posted August 29, 2022 Author Share Posted August 29, 2022 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 Quote Link to comment Share on other sites More sharing options...
asandros Posted August 30, 2022 Share Posted August 30, 2022 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. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.