Page 1 of 1
I am new to PHP - not been able to get it to work in WinXP
Posted: Sun May 18, 2003 3:35 pm
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
Posted: Sun May 18, 2003 4:45 pm
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"
I am new to PHP - not been able to get it to work in WinXP
Posted: Sun May 18, 2003 4:57 pm
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
Posted: Sun May 18, 2003 5:01 pm
by Templeton Peck
nope, you don't need to start php
did you copy your test php file to the apache htdocs directory?
Posted: Sun May 18, 2003 5:07 pm
by aes
Yes I did.
Are there any automatic installations or installators?
Thanks,
Posted: Sun May 18, 2003 5:27 pm
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
Posted: Sun May 18, 2003 5:42 pm
by aes
Thanks for the help. I got it working now! The problem was in the php.ini file.
Thanks again!
Posted: Sun May 18, 2003 6:07 pm
by Templeton Peck
No problem, glad to help (if I did any)
