Jump to content

[Resolved] Trouble running CubeCart on local computer


JackP

Recommended Posts

I decided I wanted to be able to run CubeCart on my local laptop so I could do code changes without impacting my current install as well as not have to FTP changes to test them.  I followed the instructions here:  https://support.cubecart.com/Knowledgebase/Article/View/216/42/how-do-i-move-my-cubecart-store-from-one-hosting-account-to-another   to create a copy on my local server (windows, apache, php, my sql) as well as copy the database.   After getting some issues resolved, I'm able to get the home page and admin to come up.  The admin seems to work ok, although it seems a little slow but not unreasonable.  However, anytime I try to look at a product, I get a 404 error.  I also get a 404 error on on clicking on About Us, Return Policy, etc. Is there some setting that you have to refresh/renable to get these to work?  Thanks.  Jack

Link to comment
Share on other sites

A 404 error is almost always when the WEB SERVER has not had it's configuration set to do URL Rewrites.

Apache requires a "mod_rewrite" module be installed and loaded. In Apache's httpd.conf file, there will be a statement:
LoadModule rewrite_module modules/mod_rewrite.so

Then, also:

<Directory "E:/Apache/wwwroot">
    #
    # Possible values for the Options directive are "None", "All",
    # or any combination of:
    #   Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
    #
    # Note that "MultiViews" must be named *explicitly* --- "Options All"
    # doesn't give it to you.
    #
    # The Options directive is both complicated and important.  Please see
    # http://httpd.apache.org/docs/2.2/mod/core.html#options
    # for more information.
    #
    Options Indexes FollowSymLinks

    #
    # AllowOverride controls what directives may be placed in .htaccess files.
    # It can be "All", "None", or any combination of the keywords:
    #   Options FileInfo AuthConfig Limit
    #
    AllowOverride All

    #
    # Controls who can get stuff from this server.
    #
    Order allow,deny
    Allow from all

</Directory>

CubeCart should have already made the appropriate declarations in the .htaccess file in CubeCart's main folder.

Link to comment
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.

×
×
  • Create New...