cronjob running both php4 & php5

Author Message

SM SM

Sunday 03 September 2006 11:05:14 am

Executing "runcronjob" script in windows command prompt(mannualy)

c:\php4\cli\php.exe runcronjobs.exe

gives error:

"The application has failed to start because php4ts.dll was not found".

============

ez version 3.8.3 on windows xp with IIS 5

runninig both php4.4.4 & php5.1.6

Have directory C:\php4 and C:\php5

in directory c:\php4\ have dir \cli\php.exe and HAVE FILE c:\php4\php4ts.dll

in environment path variables put C:\php4\cli\;

tryed this solition from
http://bugs.php.net/bug.php?id=25176 (does not help - the same mistake)
======================

[20 Aug 2003 7:10pm UTC] [email protected]
Worked this one out...

The reason is that the cgi binary has the php4ts.dll for PHP5 in its
PWD, and when it requests the dll, thats where windows looks first and
tells it that its there.
The CLI binary does NOT have a php4ts.dll for PHP5 in its PWD, so
windows traverses the %PATH%, where it finds the PHP4 php4ts.dll and
tells the binary thats where it was found.

Solution: Put a copy of php4ts.dll in c:\php5\cli if you need to run
PHP5 and PHP4 simultaneously (testing), otherwise put c:\php5 in your
path(note that when running the PHP4 binaries, they will find the PHP5
php4ts.dll, the problem is reversed).

===========================

ANY HELP?

Norman Leutner

Sunday 03 September 2006 11:43:49 pm

Hi,

please take a look at http://ez.no/products/ez_publish/info/requirements_for_ez_publish
At first I would recommend to use apache and not IIS if you can.

To execute your cronjobs you can copy the php4ts.dll to c:\windows\system32
so It's found by the php client. Then create a small batch file like this:

@ech off
cd d:\www\mysite
c:\php4\cli\php.exe runcronjobs.php >> result.txt

Then create a sceduled task which executes the batch file.

Mit freundlichen Grüßen
Best regards

Norman Leutner

____________________________________________________________
eZ Publish Platinum Partner - http://www.all2e.com
http://ez.no/partners/worldwide_partners/all2e_gmbh

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