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.