Problem moving site to new server

Author Message

Michael Hall

Thursday 08 May 2008 7:41:32 pm

I have developed an EZ4 site on my local dev machine, and transferred this site to another machine with identical OS and software (CentOS5.1, Apache2, PHP5, MySQL5).

I rsynced the original html directory across to the new server, and imported a mysql dump into the new database. All paths and database details should be identical.

However, the site is now broken on the new server. The best I can get is an EZPublish page telling me I don't have access (to index.php). If I try any other URL I get 'Module not found' errors.

Is there something I could have overlooked in the migration process?

Łukasz Serwatka

Thursday 08 May 2008 11:13:15 pm

Hi,

Have you updated database settings in your siteaccesses site.ini.append.php file as well? Turn on debug output and check what errors you see.

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

Michael Hall

Friday 09 May 2008 12:03:53 am

Yes, I have updated the database details in the siteaccess/ezwebin_site/site.ini.append.php file. In fact, the details are exactly the same on both machines. Also, the two machines were installed with an identical OS from the same CDs. The only difference is that /var is on its own partition on the new machine.

The weird thing is if I leave the database password out, EZ4 at least displays an HTML page with an error message on it:

Access denied
You do not have permission to access this area.
Possible reasons for this are:
* Your current user does not have the proper privileges to access this page.
* You misspelled some parts of your URL, try changing it.

If I add the correct password (I can log in to the database on the command line), I get a fatal error without even an HTML page:

Fatal error: eZ Publish did not finish its request
The execution of eZ Publish was abruptly ended, the debug output is present below.
(no output)

DebugOutput is enabled in site.ini.append.php

I am accessing the new machine using an IP address at the moment, could this cause any problems?

Łukasz Serwatka

Friday 09 May 2008 1:16:27 am

Hi,

You have to figure out what causing this error:

Fatal error: eZ Publish did not finish its request
The execution of eZ Publish was abruptly ended, the debug output is present below.

Check web server logs and PHP logs.

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

Michael Hall

Sunday 11 May 2008 5:26:06 pm

Thanks for the reminder to check logs. For the record, I was caught by the fact that CentOS 5.1 doesn't install php-xml by default. Installing it solved this problem and all is now well.

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 19:39:04
Script start
Timing: Jan 18 2025 19:39:04
Module start 'layout'
Timing: Jan 18 2025 19:39:04
Module start 'content'
Timing: Jan 18 2025 19:39:04
Module end 'content'
Timing: Jan 18 2025 19:39:04
Script end

Main resources:

Total runtime0.9830 sec
Peak memory usage4,096.0000 KB
Database Queries63

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0064 589.4844152.6406
Module start 'layout' 0.00640.0032 742.125039.4766
Module start 'content' 0.00950.9719 781.6016562.5547
Module end 'content' 0.98150.0015 1,344.156312.1406
Script end 0.9830  1,356.2969 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00310.3196160.0002
Check MTime0.00130.1356160.0001
Mysql Total
Database connection0.00100.105110.0010
Mysqli_queries0.923293.9155630.0147
Looping result0.00070.0676610.0000
Template Total0.943396.020.4717
Template load0.00170.172420.0008
Template processing0.941695.788920.4708
Template load and register function0.00020.023710.0002
states
state_id_array0.00080.086210.0008
state_identifier_array0.00120.119120.0006
Override
Cache load0.00150.1490330.0000
Sytem overhead
Fetch class attribute can translate value0.00070.069220.0003
Fetch class attribute name0.00170.168860.0003
XML
Image XML parsing0.00070.070120.0003
class_abstraction
Instantiating content class attribute0.00000.002070.0000
General
dbfile0.00080.0805180.0000
String conversion0.00000.000840.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
5content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
8content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
2content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
2content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 20
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs