Problem upgrading EZwebin from 1.1 to 1.2

Problem upgrading EZwebin from 1.1 to 1.2

Wednesday 09 May 2007 7:10:00 pm - 7 replies

Author Message

Łukasz Serwatka

Thursday 10 May 2007 12:04:15 am

Hello Francis,

Update script must be run using PHP CLI (php.exe in cli folder) from eZ Publish root directory.

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

francis Yip

Thursday 10 May 2007 4:24:59 am

Hello Lukasz,

Thanks for helping me. Really appreciate. Please pardon me as I am new to EZpublish.( a few weeks old !)

The Ezpub windows installer created a subdirectory c:\program files\ Ezpublish which has among it several subdirectory like
c:\program files\ Ezpublish\PHP ( this contain a php.exe)
c:\program files\ Ezpublish\Mysql.

I suppose when you say root directory you mean this.?

This is what I did :

1) I copy ezwebinupgrade.php to c:\program files\ Ezpublish\

2) and I invoke the DOS command line box ( that black box where I can type dos command ) by running CMD

3) at the DOS prompt showing c:\program file\ezpublish\ >

The command I issue is :

.\php\php ezwebinupgrade.php

4) But I get the same error that I mentioned earlier.

And no matter which directory I copy that upgrade PHP script and try to run it from ... it still give me the same error

Łukasz Serwatka

Thursday 10 May 2007 4:35:40 am

By eZ Publish root folder I meant, folder where are all eZ Publish files (kernel, design, var, etc.):

For example:

www/ezpublish-3.9.2/
                     |  - design
                     | - extension
                     | - kernel
                     | - var
                     | - etc
                     | - index.php

From this directory you need to run ezezwebin update script. First of all, make sure that php.exe is your CLI, not CGI. Check with php.exe -v You should see something like:

PHP 4.4.6 (cli) (built: Apr  3 2007 13:41:16)
Copyright (c) 1997-2007 The PHP Group
Zend Engine v1.3.0, Copyright (c) 1998-2004 Zend Technologies

Of course version can be different in your case.

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

francis Yip

Thursday 10 May 2007 5:22:17 am

Thanks.

But too bad that the PHP 4.4.4 that was bundled as part of the Ezpublish 3.9.1 windows installer is CGI-fcgi and not CLI and this is why I am facing all these problems.

Łukasz Serwatka

Thursday 10 May 2007 5:32:29 am

I submitted an enhancement request about this:
http://issues.ez.no/10764

It should be included in next release of windows installer.

You can download php binary from php.net.

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

francis Yip

Thursday 10 May 2007 9:04:59 am

Seemingly Php.net ( and all other mirror sites ) has removed all 4.4.4 windows binaries ..so I have little choice but download and extracted the CLI PHP.exe and php4ts.dll from 4.4.7 binaries on php.net site.

Now at least the ezwebinupgrade.php script seems to execute BUT other than output the following , nothing else happens. It does not download from the default download site now does it unpack etc.

following is the output if I specify url:

When the script display the last line -- all files ( extension ...) will be overwritten the DOS cursor will just stay there blinking and nothing happens next . There is also no download activities on my network card. So it is not actually downloading anything. And so I decided to hit the ENTER key .. and immediately it issue the output line .. DONE.

But clearly it has not done anything other than display that few lines.

Next I then manually downloaded the 3.9.2 packages from Ez.no and place it in a folder c:\ezpkg

then I issue the command :
C:\Program Files\eZpublish\ezpublish>php.exe ezwebinupgrade.php package-dir: c:\ezpkg

But strange .. it output exactly the same few lines of message as when I use the options url:

But it does not read from the package directory c:\ezpkg

Infact the same lines will be displayed even if I don't specify any options.

So now I am still stuck in this upgrade problem

======================
C:\Program Files\eZpublish\ezpublish>php.exe ezwebinupgrade.php url:

PHP Warning: Unknown(): Unable to load dynamic library 'C:\Program Files\eZpubl
ish\php\extensions\php_ldap.dll' - The operating system cannot run %1.
in Unknown on line 0
Notice: No siteaccess provided, will use default siteaccess
Warning: Processing in auto-mode:
- packages will be downloaded to '/tmp/ezwebin';
- packages will be imported to 'var/storage/packages/ez_systems';
- installing of existing classes will be skipped;
- all files(extesion, design, downloaded and imported packages) will be overwrit
ten;

Done
==================

Michael Kress

Thursday 10 May 2007 9:25:22 am

Consider using linux. If it's not possible, install vmware and install linux inside a virtual machine. Web development under windows is a pain.
Regards
Michael

You must be logged in to post messages in this topic!

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