Help With Tuto "how To: Make A Dev Copy Of Your Live Store In A Subdirectory"

Hi,

I am following the cs-cart tutorial How To: Make a Dev Copy of Your Live Store in a Subdirectory (https://docs.cs-cart.com/latest/install/useful_info/copying_store_to_subdirectory.html) but I have a problem finalizing it :

I created a copy of my cs-cart in a subdirectory (/dev)

I duplicated the database and can see the new one in phpmyadmin

I changed the config.local.php with the new datas

But when I try to access the dev subdirectory (www.mysite.com/dev) it returns the Service Unavailable screen.

I cannot find what I missed...

Hello

First, go to the admin panel and set the storefront address.
Show the content of the config.local.php file as you have the addresses set.
Best regards
Robert

Hello

First, go to the admin panel and set the storefront address.
Show the content of the config.local.php file as you have the addresses set.
Best regards
Robert

The admin panel cannot be accessed as it goes to the Service Unavailable Screen too.

Hello

Did you try development mode ?

In config.local.php set

ini_set('display_errors', 1);

and in file config.php please find "DEVEL" and replace

//define('DEVELOPMENT', true);

on

define('DEVELOPMENT', true);

Best regards

Robert

It seem it's a permission problem...

That's strange as the database was copied by ssh like the tutorial said and I did not changed the username and password.
PS: I replaced the user names with []

Warning: mysqli::__construct(): (HY000/1044): Access denied for user '[username]'@'localhost' to database '[new database name]' in .../dev/app/Tygh/Backend/Database/Mysqli.php on line 40


Tygh\Exceptions\AException

Message

Cannot connect to the database server

Error at

app/Tygh/Providers/DatabaseProvider.php, line: 49

Backtrace

			

File:

app/lib/vendor/pimple/pimple/src/Pimple/Container.php

Line:

118

Function:

Tygh\Providers\{closure}

File:

app/functions/fn.database.php

Line:

69

Function:

offsetGet

File:

app/functions/fn.control.php

Line:

992

Function:

db_get_field

File:

app/functions/fn.control.php

Line:

927

Function:

fn_get_storage_data

File:

init.php

Line:

133

Function:

fn_allowed_for

File:

log.php

Line:

25

Function:

require

Hello

If you have mysql you should set access:

INSERT INTO db (Host,Db,User,Select_Priv,Insert_Priv,Update_Priv,Delete_Priv,Create_Priv, Drop_Priv,Grant_Priv,References_Priv,Index_Priv,Alter_Priv) VALUES ('localhost','db_name','db_user','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y');

(change db_name and db_user)

and next

flush privileges;

Best regards

Robert

Thanks Robert.

Will test.