php install on xp

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
nefus
Forum Newbie
Posts: 16
Joined: Tue Mar 04, 2003 12:04 pm

php install on xp

Post 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.
User avatar
gstefan
Forum Newbie
Posts: 11
Joined: Thu Aug 21, 2003 2:29 pm

Post by gstefan »

My configuration is:
WinXP with:
-Apache 1.3.27
-MySql 3.23.55
-PHP 4.3.3
So it's works!
User avatar
mrvanjohnson
Forum Contributor
Posts: 137
Joined: Wed May 28, 2003 11:38 am
Location: San Diego, CA

Post 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.
nefus
Forum Newbie
Posts: 16
Joined: Tue Mar 04, 2003 12:04 pm

xp woes

Post 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. :-/
User avatar
mrvanjohnson
Forum Contributor
Posts: 137
Joined: Wed May 28, 2003 11:38 am
Location: San Diego, CA

Post 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
Stoneguard
Forum Contributor
Posts: 101
Joined: Wed Aug 13, 2003 9:02 pm
Location: USA

Post 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
nefus
Forum Newbie
Posts: 16
Joined: Tue Mar 04, 2003 12:04 pm

ah..

Post 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).
Post Reply