dmikester1 Posted September 18, 2019 Share Posted September 18, 2019 I just installed CubeCart on my localhost and I can't even get to the admin or storefront page. I get the following error when I visit either page: Internal Server Error The server encountered an internal error or misconfiguration and was unable to complete your request. Please contact the server administrator at [email protected] to inform them of the time this error occurred, and the actions you performed just before this error. More information about this error may be available in the server error log. In the logs I found this: Invalid command 'Order', perhaps misspelled or defined by a module not included in the server configuration From Stack Overflow I found the syntax changed from Apache 2.2 to 2.4 for the following lines in the .htaccess: "Order allow, deny Allow from all". Now it seems like an easy fix. But my question is why am I encountering this issue so early on in the process? Why isn't it using the latest syntax in the .htaccess file? Link to comment Share on other sites More sharing options...
bsmither Posted September 18, 2019 Share Posted September 18, 2019 This is part of the .htaccess directives CubeCart uses in the file if .htaccess does not already exist: ### File Security ### <FilesMatch "\.(htaccess)$"> Order Allow,Deny Deny from all </FilesMatch> What you posted above does not match exactly, thus I suspect there was already a file named .htaccess in CubeCart's main folder. Having the web server send out .htaccess is denied to all. Having the Deny directive be on the same line as the Order directive may be illegal. The web server may have these directives in its own dedicated configuration file. Also, in this configuration file, there should be an AllowOverride directive so that directives found in any .htaccess file can overrule those found in the web server's configuration file, such as mod_rewrite directives. Link to comment Share on other sites More sharing options...
dmikester1 Posted September 18, 2019 Author Share Posted September 18, 2019 I had an old install on here from before. I completely deleted all the files in the folder and deleted the entire database and started fresh. I'm not sure how there could have been an old .htacess file from before. I looked at the file and it says it was created today. Link to comment Share on other sites More sharing options...
bsmither Posted September 18, 2019 Share Posted September 18, 2019 I have no answer for CubeCart's continued use of the Apache 2.2 directives Order and Deny. A person with more experience in running hosting environments will be here shortly. Link to comment Share on other sites More sharing options...
havenswift-hosting Posted September 18, 2019 Share Posted September 18, 2019 30 minutes ago, bsmither said: I have no answer for CubeCart's continued use of the Apache 2.2 directives Order and Deny. There is no problem with using this statement with Apache 2.4 - every single server we run uses 2.4 and all CubeCart sites have this directive as part of the .htaccess file. Firstly check that the syntax and layout is exactly the same as shown above Link to comment Share on other sites More sharing options...
bsmither Posted September 18, 2019 Share Posted September 18, 2019 Any thoughts on the error message? See: http://httpd.apache.org/docs/trunk/upgrading.html#commonproblems Specifically, the Startup errors. (If this is a startup error, the problem may be with the web server - not with CubeCart.) Link to comment Share on other sites More sharing options...
havenswift-hosting Posted September 18, 2019 Share Posted September 18, 2019 If the syntax is correct in the .htaccess file, it is a web server configuration issue Link to comment Share on other sites More sharing options...
bsmither Posted September 18, 2019 Share Posted September 18, 2019 Have you ever been hit with this specific error message when configuring web servers, and if so, what was wrong and what did you do to fix it? Link to comment Share on other sites More sharing options...
havenswift-hosting Posted September 18, 2019 Share Posted September 18, 2019 Never seen that error message before but it is either a Windows Apache specific error (I assume the OP is using Windows as he says localhost) or they simply havent configured it correctly. We, of course always configure everything perfectly Link to comment Share on other sites More sharing options...
dmikester1 Posted September 19, 2019 Author Share Posted September 19, 2019 I'm using Windows 10 with Apache 2.4 and PHP 7. Just trying to install a fresh CubeCart install to play around and learn it. I blew away the contents of the folder again. I deleted the DB and the user. I recopied over the folder contents from CubeCart-6.2.6.zip. Now, I'm getting different errors. The page is just blank when I try and run the setup. I've attached an image showing my log. Those error messages all happen at the same time when I try and hit the setup folder in my browser. Link to comment Share on other sites More sharing options...
bsmither Posted September 19, 2019 Share Posted September 19, 2019 One can ignore any Notices. The Warnings need to be dealt with, but the Fatal Error is what is causing the white page. Somehow, PHP thinks there is an existing database it can communicate with. But CubeCart is not sending a username and a password. You mention the OS (Win10), PHP7, the web server (A24), but no mention of a database server. Initialize the database server if it's not already running. Make sure there is a user with a password. Create a database (sometimes called a Catalog or a Schema). Give the User relevant permissions to manage the database. Link to comment Share on other sites More sharing options...
dmikester1 Posted September 20, 2019 Author Share Posted September 20, 2019 Thank you for the tips! I am using MariaDB 10.3. Does the name of the database or user matter? I was calling the DB cubecart with the same DB username. Link to comment Share on other sites More sharing options...
bsmither Posted September 20, 2019 Share Posted September 20, 2019 A database server can contain a number of Schemas ("databases"). Each schema can have tames of tables that are the same as those in another schema. So, CubeCart needs to know which schema ("database") to use. User names can be anything. Therefore, the name of the schema and the name of the user could be the same. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.