Forums / Install & configuration / cronjob running both php4 & php5

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] davey@php.net
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

eZ debug

Timing: Jan 20 2025 05:09:08
Script start
Timing: Jan 20 2025 05:09:08
Module start 'content'
Timing: Jan 20 2025 05:09:09
Module end 'content'
Timing: Jan 20 2025 05:09:09
Script end

Main resources:

Total runtime1.0471 sec
Peak memory usage4,096.0000 KB
Database Queries191

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0071 589.0703180.8281
Module start 'content' 0.00710.8699 769.8984539.5000
Module end 'content' 0.87700.1700 1,309.3984332.7500
Script end 1.0470  1,642.1484 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00410.3962210.0002
Check MTime0.00150.1455210.0001
Mysql Total
Database connection0.00090.089310.0009
Mysqli_queries0.966392.28201910.0051
Looping result0.00220.21171890.0000
Template Total1.012696.720.5063
Template load0.00220.208720.0011
Template processing1.010496.498420.5052
Template load and register function0.00020.017610.0002
states
state_id_array0.00100.099010.0010
state_identifier_array0.00260.248420.0013
Override
Cache load0.00190.1797400.0000
Sytem overhead
Fetch class attribute can translate value0.00140.129730.0005
Fetch class attribute name0.00170.157830.0006
XML
Image XML parsing0.00310.296730.0010
class_abstraction
Instantiating content class attribute0.00000.000630.0000
General
dbfile0.00900.8624280.0003
String conversion0.00000.000630.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

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
2content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
10content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
7content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 23
 Number of unique templates used: 7

Time used to render debug report: 0.0002 secs