Page 1 of 1

php install on xp

Posted: Wed Oct 08, 2003 2:03 pm
by nefus
Are there any problems with php install on XP? I recently installed php with apache and mysql only to discover a script that I'd been testing on a 2000 server simply refused to run. I get all sorts of errors. Yes, I do have the same ini settings in php.

Posted: Wed Oct 08, 2003 2:23 pm
by gstefan
My configuration is:
WinXP with:
-Apache 1.3.27
-MySql 3.23.55
-PHP 4.3.3
So it's works!

Posted: Wed Oct 08, 2003 2:44 pm
by mrvanjohnson
only to discover a script that I'd been testing on a 2000 server simply refused to run
I'm curious as to what you mean here. I have installed PHP several times on different Windows environments (NT, 2000, XP, even 98 with Cold Fusion, Java, and ASP support) and with the exception of running into the occasional issue of getting PHP to work, I've never had a problem with it breaking anything that was existing on the server. I would really like to know what happen and if it was really a problem with PHP or Apache or MySQL or was it something else.

I had a client once that was cursing the fact he could not get PHP/Apache/MySQL up and running on a W2K box. Started bad mouthing Open Source in general and a ton of other things. I looked at it for about 10 seconds and realized he was already running IIS. Then he was also trying to start Apache up on port 80 and it was complaining. Most of the times it is just that simple. Not so much a problem with the tool itself but understanding how the tool works.

xp woes

Posted: Wed Oct 08, 2003 2:52 pm
by nefus
Well... I guess I have several problems really. Error logging doesn't seem to work either. But the script itself still kicks out all sorts of undefined variable errors even with E_Warning.

But the script is a bot that connects to an irc server. I'd love to show you a log of the errors, but I can't get it work well. The bot runs from command line so I've tired a c:\php\php -q phpbot.php > error.log but no it still kicks output to the screen instead of the file. If either it or php error logging worked, then I could. :-/

Posted: Wed Oct 08, 2003 3:39 pm
by mrvanjohnson
OK I misunderstood you. I thought you were saying there was some script installed on your box that was running until you installed PHP then it seemed to break. The problem you are referring to could obviously been a million different things from coding issue to configuration issues. Sorry for the confusion, thanks for clarifying

Posted: Wed Oct 08, 2003 7:47 pm
by Stoneguard
Try the following line to log the errors to the file:

Code: Select all

c:\php\php -q phpbot.php > error.log 2>&1

ah..

Posted: Wed Oct 08, 2003 10:42 pm
by nefus
Thanks, that worked perfectly! Now I can debug more easily.

I suppose my follow up question will be, could there be anything that might cause my php script to not work correctly from command line (keeping in mind it did work perfectly fine on another system).