Upgrade from 4.0.3 to 4.0.2

Author Message

Jeroen van Duffelen

Monday 26 October 2009 3:52:37 pm

Ok, I'm going to upgrade to 4.1.4 first.

I've walked through steps 1, 2 and 4. The database is 4.1.4 now but I have to run steps 5, 6 and 7. I'm an SSH noob so I need some advice on that.

How do I run these upgrade scripts?

I know how to login on the server with ssh. But how to move from there? First step 5 please!

Jeroen van Duffelen

Tuesday 27 October 2009 1:08:21 am

Ok I'm able to login with SSH on the server and I know where to find the upgrade scripts.

So far so good, first step 5: Regenerate the autoload array for extensions:
The command I'm typing in my terminal after logging in on the server is:

php /home/admin/~path-to-ezpublish~/bin/php/ezpgenerateautoloads.php --extension

The result I'm getting is:

Warning: require(Base/src/base.php): failed to open stream: No such file or directory in /home/admin/domains/cman001.com/public_html/bin/php/ezpgenerateautoloads.php on line 47

Warning: require(Base/src/base.php): failed to open stream: No such file or directory in /home/admin/domains/cman001.com/public_html/bin/php/ezpgenerateautoloads.php on line 47

Fatal error: require(): Failed opening required 'Base/src/base.php' (include_path='.:/usr/local/lib/php') in /home/admin/domains/cman001.com/public_html/bin/php/ezpgenerateautoloads.php on line 47

Alex Pagnoni

Tuesday 27 October 2009 1:27:03 am

Hello,
before running the scripts type this from ssh: cd /home/admin/~path-to-ezpublish~/ then run the scripts from here

Alex

Innoteam
The Content Partners
http://www.innoteam.it

Jeroen van Duffelen

Tuesday 27 October 2009 1:40:32 am

So I'm a noob with command line.

Thx to @AlexPagnoni I managed to finish step 5. I had to go to the right directory in command line first and than execute the script.

So the command line code would be:

cd /home/admin/~path-to-ezpublish~/

and after that:

php bin/php/ezpgenerateautoloads.php --extension

No errors here. On Step 6 however, with following command i get an error and the messag to contact the webmaster...

php update/common/scripts/4.1/addlockstategroup.php

Started going through error logs, but where to look for errors generated in the command line? Can't find anything. Btw, my database is already at version 4.1.4 and I've got ezpublish with ezc 4.2 online. So the upgrade scripts I'm running are the ones that come with 4.2

Some system info:
CentOS Linux
Apache 2.2.8
DirectAdmin 1.33.7
Exim 4.69
MySQL 5.0.51a
Named 9.3.3rc2
ProFTPd 1.3.2
sshd
dovecot 1.0.10

Jeroen van Duffelen

Tuesday 27 October 2009 3:35:39 am

Problem with running these scripts seems to be:

[ Oct 27 2009 11:25:25 ] [server.server.nl] eZMySQLiDB: Connection error: Couldn't connect to database. Please try again later or inform the system administrator. Access denied for user 'root'@'localhost' (using password: NO)
[ Oct 27 2009 11:25:25 ] Unexpected error, the message was : Unable to connect to the database server 'localhost' in ~ezpublish-path~/lib/ezdb/classes/ezmysqlidb.php on line 155

Jeroen van Duffelen

Tuesday 27 October 2009 5:14:00 am

Ok found the solution to that. I had to put my database settings in the /settings/override/ site.ini

I had them in my siteaccess site.ini files.

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