How to deploy?

Author Message

valentina ferrari

Wednesday 17 January 2007 11:39:57 pm

Hi all,
I need to deploy an ezpublish site from machine A (manual installation) to machine B.
I configured machine B in the same way as machine A, including database users and access permissions; I thought at this point it would have been enough to copy the entire ezpublish folder between the machines, but unfortunately whenever I try to access the site, I get an "Error 50: no database connection could be made". I even checked the .ini files looking for some settings that could point the database to the wrong location, but to no avail.

How to effectively copy ezpublish between two machines?

Thanks.

kracker (the)

Thursday 18 January 2007 12:34:12 am

You should be able to fix this error without starting over ;)

Take a look at your site.ini.append(.php)

[DatabaseSettings]
Charset=utf-8
Server=localhost
User=db
Password=db
Database=ezpublish_390

Also look at your siteaccess settings, it seems as though your eZ publish installation does not know which siteaccess is the default.

[SiteSettings]
DefaultAccess=example_com
SiteList[]=example_com
SiteList[]=example_com_admin
SiteList[]=ezwebin_site_user
SiteList[]=ezwebin_site_admin

[SiteAccessSettings]
ForceVirtualHost=true
CheckValidity=false
AvailableSiteAccessList[]=example_com
AvailableSiteAccessList[]=example_com_admin
AvailableSiteAccessList[]=ezwebin_site_user
AvailableSiteAccessList[]=ezwebin_site_admin
MatchOrder=host;uri;
HostMatchMapItems[]
HostMatchMapItems[]=example.com;example_com
HostMatchMapItems[]=edit.dev.example.com;example_com_admin

<i>hth,
//kracker

Jello Biafra - Fight Terror-Resist Corporations</i>

Member since: 2001.07.13 || http://ezpedia.se7enx.com/

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 31 2025 06:00:22
Script start
Timing: Jan 31 2025 06:00:22
Module start 'layout'
Timing: Jan 31 2025 06:00:22
Module start 'content'
Timing: Jan 31 2025 06:00:22
Module end 'content'
Timing: Jan 31 2025 06:00:22
Script end

Main resources:

Total runtime0.0183 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.0069 588.1250151.2109
Module start 'layout' 0.00690.0025 739.335936.6484
Module start 'content' 0.00940.0072 775.984490.2656
Module end 'content' 0.01660.0016 866.250029.9922
Script end 0.0183  896.2422 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002312.5119140.0002
Check MTime0.00115.9351140.0001
Mysql Total
Database connection0.00084.159810.0008
Mysqli_queries0.003720.331630.0012
Looping result0.00000.065110.0000
Template Total0.00116.110.0011
Template load0.00095.082610.0009
Template processing0.00020.993110.0002
Override
Cache load0.00073.691210.0007
General
dbfile0.002815.318080.0004
String conversion0.00000.037740.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