Julien Posted July 12, 2019 Share Posted July 12, 2019 Hello, This is my first attempt of running cubecart's 6.2.5 version in xampp for Windows as I want to configure as much as possible on localhost, before migrating to a production server. Because I develop several sites, the files are not directly put in htdocs but in per-site subfolders: D:\xampp\htdocs\first.com D:\xampp\htdocs\second.com D:\xampp\htdocs\cubecart The folder that I created for cubecart is not named "shop" but "cubecart". For installation, I have not navigated to the /setup subfolder, but only the root of the website. However, the installer ran fine. Compatibility checks were OK and the tables were created. For me, cubecart is not running at all and makes the Apache server crash. (Apache asks permission for stopping.) After the reading several threads, here's what I have attempted so far, without success : renamed .htaccess file so that it is no longer used appended the following lines to includes/global.inc.php (...) $glob['cookie_domain'] = '127.0.0.1'; // No trailing slash - BEST to use IP address $glob['storeURL'] = 'http://127.0.0.1/cubecart'; // No trailing slash $glob['standard_url'] = 'http://127.0.0.1/cubecart'; // No trailing slash $glob['ssl_url'] = 'https://127.0.0.1/cubecart'; // No trailing slash $glob['rootRel'] = '/localhost/cubecart/'; // MUST have trailing slash -- use single slash for no path ?> added ini-custom.inc.php in cubecart folder: <?php # Custom initialization commands # Filename: ini-custom.inc.php # File location: main CubeCart folder ini_set('memory_limit', '256M'); ini_set('max_execution_time', '60'); ini_set('error_log', 'error_log'); ini_set('log_errors', 'on'); ?> and checked that it is effectively included at line 162 of ini.inc.php . I identified the crash coming from the last line in index.php (at the root): $GLOBALS['gui']->display('templates/'.$global_template_file); The "display" method seems located in "classes/gui.class.php". This is where I'm stuck. However, I assume the error most probably comes from a server configuration issue. Before disabling the .htaccess file, I also had attempted to set the RewriteBase: <IfModule mod_rewrite.c> RewriteEngine On RewriteBase /localhost/cubecart/ Thank you for your help. Link to comment Share on other sites More sharing options...
bsmither Posted July 12, 2019 Share Posted July 12, 2019 Welcome Julien! Glad to see you made it to the forums. Let's make a couple of adjustments. In the .htaccess file, please have: <IfModule mod_rewrite.c> RewriteEngine On RewriteBase /cubecart/ and later: ### Default store 404 page ### ErrorDocument 404 /cubecart/index.php In global.inc.php, please have: $glob['rootRel'] = '/cubecart/'; // Relative to web server document root, MUST have trailing slash -- use single slash for no path Link to comment Share on other sites More sharing options...
Julien Posted July 13, 2019 Author Share Posted July 13, 2019 Thank you bsmither. I tried what you did. The server doesn't crash, but there is error 500 (server error). Link to comment Share on other sites More sharing options...
bsmither Posted July 13, 2019 Share Posted July 13, 2019 Please create the error_log. There may be the reason logged there. Link to comment Share on other sites More sharing options...
Julien Posted July 20, 2019 Author Share Posted July 20, 2019 The code to generate the error log was already there (ini-custom.inc.php) but the error log was not created because of server error 500. I ended up installing on a remote host. The shop is hidden behind an index.html file. In the .htaccess, I forbid all trafic excepted, mine based on my IP (where the starts in ***.***.***.*** are replaced by my IPv4 address). order deny,allow deny from all allow from ***.***.***.*** It does the trick. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.