Clone site - login access not allowed

Author Message

Samuel Torton

Tuesday 13 July 2010 11:06:58 am

Hi,

I wanted to clone a site to another machine, but I have trouble to login the new cloned site.

First, I dumped my working website:

. dump MySQL database;

. tar the whole ezpublish structure

Second I restore the website to another machine:

. insert MySQL table to my new database;

. restored the tar to the new root folder;

. and of course modified the right site.ini files to access the new database, new URL

And now when I type the URL http://mynewclone website, I'm not authorized to access the website (neither with anonymous, nor while being authenticated with admin account), on any siteaccess (frontoffice, backoffice)

Any idea?

Thank you.

Samuel Torton

Ivo Lukac

Thursday 15 July 2010 12:26:26 am

No idea but you can enable Debug with SQL output to see what is happening...

http://www.linkedin.com/in/ivolukac
http://www.netgen.hr/eng/blog
http://twitter.com/ilukac

Samuel Torton

Thursday 15 July 2010 3:43:55 am

Yes, I have enabled Debug, and I've noticed some strange error messages... and then I realised I had forgotten some important required parameters in the Apache & PHP config for this new website.

Now the problem is solved, everything works perfectly and I confirm the procedure I used in my previous message (DB dump + files tar + change site.ini parameters) is the right one.

Cheers,

Samuel Torton

Gaetano Giunta

Thursday 15 July 2010 5:30:17 am

I think it would be a very nice feature to have a cli script in eZ that did all the checks that are normally done at install time via the setup wizard.

Helpful when moving the site over from dev to prod, or when switching servers.

I added an issue on wit a little while ago about that - maybe the exact wording mentioned having the checks done from within the admin interface, but of course via script is even better - esp. if you cannot login...

Principal Consultant International Business
Member of the Community Project Board

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 18 2025 10:53:11
Script start
Timing: Jan 18 2025 10:53:11
Module start 'layout'
Timing: Jan 18 2025 10:53:11
Module start 'content'
Timing: Jan 18 2025 10:53:11
Module end 'content'
Timing: Jan 18 2025 10:53:11
Script end

Main resources:

Total runtime0.0166 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0046 589.1484152.6406
Module start 'layout' 0.00460.0031 741.789139.4609
Module start 'content' 0.00770.0068 781.250093.2266
Module end 'content' 0.01450.0021 874.476634.3047
Script end 0.0166  908.7813 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002515.3008140.0002
Check MTime0.00116.4223140.0001
Mysql Total
Database connection0.00073.992110.0007
Mysqli_queries0.002515.305130.0008
Looping result0.00000.066010.0000
Template Total0.00169.810.0016
Template load0.00095.141910.0009
Template processing0.00084.635210.0008
Override
Cache load0.00063.547110.0006
General
dbfile0.002313.973080.0003
String conversion0.00000.030140.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs