Making a dummy?

Author Message

Trond Åge Kvalø

Tuesday 01 June 2004 2:16:53 am

First of all, sorry for posting twice, but I didn't get any replies in the other thread.

Our customers eZ site has finally gone live.

We'd like to develop the site further of course, but I don't think our client will be happy having all sorts of debug showing up.

How do we make an exact copy of this site that we can play with and tweak as we see fit. We will need all the data from the original site, and all the changes in data in the live site should propagate to the dummy site. But our changes must not show in the live site.

We would also like to use some other domain name for this dummy site.

Anyone who have any suggestions?

best regards
trondåge

trondåge

Balazs Halasy

Tuesday 01 June 2004 2:56:45 am

Hi,

We're glad to hear that the site is up and running. Congratulations! What is the URL? Have you submitted it to the "Latest eZ publish sites" section?

What you can do is to turn on debugging only for a specific host or an IP range. This can be easily set up from within the site.ini config file (or an override). Debug information will then simply only be visible on a selection of hosts and not for the public. Setting up another domain name shouldn't be a problem: just make sure that you have the correct triggers set up in the global override file for site.ini. (Simply just add add the new domain names to the actual siteaccesses that are listed there.)

Making an exact copy is not a problem:

1) Copy the entire file structure.
2) Dump the database (mysqldump -u username -p <databasename> > whatever.sql)
3) Tweak necessary settings on development site (siteaccesses in main override)
4) Import the database (make sure eZ publish can reach it / use it)
5) Clear all caches (manually)
6) You're all set.

Propagating data in your case would have to be done manually. You'd have to export and import the database (and the var directory which contains files, images, etc.) for example once a day. When you're done developing/bugfixing: export the test-site (same procedure as described above) to the live site. This will make sure that "changes must not show in the live site" during development. Yes, it may sound a bit hard, but it isn't. I would recommend that you set up SVN (Subversion) to be able to control and see changes that were made on the filesystem. No matter what you do: you'll have to have two versions of the site.. and sync them manually.. as far as I know, there is no way to sync the things and at the same time make sure that changes only show on one site.

Allman

Trond Åge Kvalø

Tuesday 01 June 2004 4:10:10 am

Hi Allman

Thanks for replying I'll ponder this some more and will take due notice of your comments. The URI for the site is http://www.kompetanseportalen.no

The site is not registered in the latest eZ sites because our client said we shouldn't.

best regards
trondåge

trondåge

Trond Åge Kvalø

Tuesday 08 June 2004 5:58:13 am

Ok, here's what I've done so far.

I've copied all files from ...../htdocs/lms to ....../htdocs/ekurs

I've created a new database called ekurs where I've inserted all the tables and data from the live site using mysqldump --opt > dumpfile and mysql < dumpfile

I've added the following lines to my Vhost.conf file:

<VirtualHost my_servers_IP-adress>
ServerName ekurs.atlantia.no
DocumentRoot ....../htdocs/ekurs
</VirtualHost>

<VirtualHost my_servers_IP-adress>
ServerName admin.atlantia.no
DocumentRoot ....../htdocs/ekurs
</VirtualHost>

Here's my site access settings in override/site.ini.append.php

[SiteAccessSettings]
CheckValidity=false
MatchOrder=host
HostMatchType=map
HostMatchMapItems[]=ekurs.atlantia.no;kompetanseportalen
HostMatchMapItems[]=admin.atlantia.no;kompetanseportalen_admin
AvailableSiteAccessList[]=kompetanseportalen
AvailableSiteAccessList[]=kompetanseportalen_admin

In the settings directory I have two subfolders named kompetanseportalen and kompetanseportalen_admin.

Here's some of my kompetanseportalen/site.ini.append:
[SiteSettings]
IndexPage=/content/view/full/2
LoginPage=embedded
SiteName=Kompetanseportalen
SiteURL=index.php

[SiteAccessSettings]
RequireUserLogin=false

[DesignSettings]
SiteDesign=kompetanseportalen

[ContentSettings]
TranslationList=
ViewCaching=disabled
ViewTemplates

[DatabaseSettings]
DatabaseImplementation=ezmysql
Server=localhost
Database=ekurs
User=*****
Password=*******
Charset=iso-8859-1
Socket=disabled

[FileSettings]
VarDir=var/kompetanseportalen

Here's some of my kompetanseportalen_admin/site.ini.append:
[SiteSettings]
DefaultPage=/content/view/full/2
LoginPage=custom
SiteName=Kompetanseportalen_admin
SiteURL=lms/index.php

[SiteAccessSettings]
RequireUserLogin=true

[DesignSettings]
SiteDesign=admin

[ContentSettings]
TranslationList=
ViewCaching=disabled
ViewTemplates

[DatabaseSettings]
DatabaseImplementation=ezmysql
Server=localhost
Database=ekurs
User=*********
Password=**********
Charset=iso-8859-1
Socket=disabled

[FileSettings]
VarDir=var/kompetanseportalen

My current problem is that the admin site at admin.atlantia.no seems to work, but not ekurs.atlantia.no does not. It only shows a blank page. Can anyone see what's wrong?

I believe it has something to do with eZ because my ISP has told me that the server is configured correctly.

Please help anyone. I think this might be an issue of not seeing the forest because of the trees so any outside help is deeply appreciated.

Best regards
trondåge

trondåge

Trond Åge Kvalø

Tuesday 08 June 2004 6:00:26 am

And yes, I have restarted Apache :-)

trondåge

trondåge

Dan Putra

Wednesday 24 November 2004 2:02:39 am

(Pardon my english first).
Hi! I'm still newbie with eZ publish and I'm the new guy at the office. Now I need to modified our web site. The earlier developer guy didn't leave any notes or documentation whatsoever, so I thought it would be much safer if i clone the original to another machine first.

I did that. I copied the whole file in ezpublish root directory. Got the apache, php and mysql running, import the database, and fixing the 'site.ini' file.

The clone looks okay. The front page is there. The problem is that I can't view ANY articles! The data (in mysql) are there, but eZ can't find it. I keep getting 'Page not Found' error.

Is there something that i missed?

Regards,
--Dan Putra

Balazs Halasy

Wednesday 24 November 2004 2:09:36 am

Have you cleared all caches? Use the shell to do this:

./bin/shell/clearcache --clear-all

By the way: Which version are you running? Is the cloned site publicly available?

Allman

Dan Putra

Wednesday 24 November 2004 9:02:27 pm

Hi Allman. That's a cool hat.

Ok, i cleared the caches. Now i can only see the header and footer. All of the contains seems just disapeared. Funny thing is that the 'Poll' and 'Forum' section work perfectly. That means eZ publish can reach my MySQL, right?

Oh, i forgot to tell you. The original server runs under Linux, with eZ publish 2.2.9 (http://cdc.eng.ui.ac.id -- thought you might like to know).

But the clone runs under Win98, with the exactly same eZ publish release, only i use the 'installer' one. And the clone runs locally.

Is there something i have to know about copying eZ publish site to another platform?

Cheers from Jakarta,
--Dan

Dan Putra

Wednesday 24 November 2004 9:04:59 pm

Forgot one thing.

In the admin site, the clone one, that is. I keep getting:
Error:User does not exist in site
Error:Password does not exist in site

But i'm able to log on (using all the admin accounts. How come?)

--Dan

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