I am new to PHP - not been able to get it to work in WinXP

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
aes
Forum Newbie
Posts: 4
Joined: Sun May 18, 2003 3:35 pm

I am new to PHP - not been able to get it to work in WinXP

Post by aes »

I am new to PHP. Have followed directions to install on WinXP by using instructions in the "PHP and MySQL Web Development" book by Luke Welling and Laura Thomson. I have tried with utmost care at different times. Th only strange thing is that I have an external HD named G: where MySQL and Apache reside. I have installed PHP in both the C: and G: drives without any success. Can anybody help?

Thanks
User avatar
Templeton Peck
Forum Commoner
Posts: 45
Joined: Sun May 11, 2003 7:51 pm

Post by Templeton Peck »

Install Apache first

Install PHP(I used the zip version) extract to a directory like c:\php

rename the php-recommened.ini(can't remeber the exact name) to php.ini and copy to your windows directory.

add these lines to your apache httpd.conf file at the top:
ScriptAlias /php/ "c:/php/"
AddType application/x-httpd-php .php
Action application/x-httpd-php "/php/php.exe"
aes
Forum Newbie
Posts: 4
Joined: Sun May 18, 2003 3:35 pm

I am new to PHP - not been able to get it to work in WinXP

Post by aes »

Thanks. I did all of that,in the order you mentioned. Then to test, after starting Apache I submit a hello.php script to the browser and it does not work. However, the Apache server is working.

This may be a stupid question, but one does nedd to "start" PHP in any way?

Thanks
User avatar
Templeton Peck
Forum Commoner
Posts: 45
Joined: Sun May 11, 2003 7:51 pm

Post by Templeton Peck »

nope, you don't need to start php

did you copy your test php file to the apache htdocs directory?
aes
Forum Newbie
Posts: 4
Joined: Sun May 18, 2003 3:35 pm

Post by aes »

Yes I did.

Are there any automatic installations or installators?

Thanks,
User avatar
Templeton Peck
Forum Commoner
Posts: 45
Joined: Sun May 11, 2003 7:51 pm

Post by Templeton Peck »

There are some bundled php + apache installers, but personally I couldn't get any to work.. I had to do it manually.

Easy PHP is the only one I can recall
aes
Forum Newbie
Posts: 4
Joined: Sun May 18, 2003 3:35 pm

Post by aes »

Thanks for the help. I got it working now! The problem was in the php.ini file.

Thanks again!
User avatar
Templeton Peck
Forum Commoner
Posts: 45
Joined: Sun May 11, 2003 7:51 pm

Post by Templeton Peck »

No problem, glad to help (if I did any) :)
Post Reply