add a note add a note

User Contributed Notes 2 notes

up
0
yaplej at gmail dot com
1 day ago
These were problems with php 5.5 on Windows Server 2012 R2.
They were OK in php 5.4 on Server 2003 R2.

Blank line above "<?php" prevents service from starting.

Using "
echo" anywhere seems to cause the service to be terminated.  Debug using a log file instead.

$logfile = 'c:\\temp\\mylog.log';
$log = fopen($logfile, 'a');
$logentry = "Stuff.\r\n";
fwrite(
$log, $logentry);
up
0
gospodin dot p dot zh at gmail dot com
1 year ago
win32service extension does not realize very important (as for me) method of ServiceBase::OnCustomCommand
----
http://msdn.microsoft.com/en-us/library/system.serviceprocess.servicebase.oncustomcommand.aspx
"OnCustomCommand lets you specify additional functionality beyond starting, stopping, pausing and continuing services."
To Top