Jump to content
Sign in to follow this  
Julien

Installation issues in xampp/htdocs/cubecart

Recommended Posts

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.

Share this post


Link to post
Share on other sites

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

 

Share this post


Link to post
Share on other sites

Thank you bsmither.

I tried what you did. The server doesn't crash, but there is error 500 (server error).

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...