problems with PHP and SC.exe
Posted: Mon Feb 16, 2004 1:02 pm
I am running Apache 1.3.29 on Windows Server 2k3 Standard edition with PHP 4.3.4 as a module.
I have a script that writes a text file, and then resets a service so that the new text is read into the memory of the program associated with the service.
I have the script calling
$output=`sc stop myservice`
sleep(5);
$output=`sc start myservice`
and then the script outputs a list of changes made...and a link back to the main script that edits the text file.
The problem I am having is that some clients seem to have a problem with using the script. The will initiate the script that calls the service stop and then start.....but the service will stop...remain in a stopped state, and must be manually restarted from the console.
I also notice that when this starts occuring, I cannot reset the apache service, and they seem to have problems with php pages not displaying on the server.
Does anyone know what may cause this?
I have a script that writes a text file, and then resets a service so that the new text is read into the memory of the program associated with the service.
I have the script calling
$output=`sc stop myservice`
sleep(5);
$output=`sc start myservice`
and then the script outputs a list of changes made...and a link back to the main script that edits the text file.
The problem I am having is that some clients seem to have a problem with using the script. The will initiate the script that calls the service stop and then start.....but the service will stop...remain in a stopped state, and must be manually restarted from the console.
I also notice that when this starts occuring, I cannot reset the apache service, and they seem to have problems with php pages not displaying on the server.
Does anyone know what may cause this?