Page 1 of 1

installation problems

Posted: Tue Sep 14, 2004 4:46 pm
by Stelios
Hi everybody,

I am trying to install php 4.3.0 with apache 1.3 as my web server and I cant test my code on my computer. I am running winxp and yes!!! the phpinfo file is in the htdocs folder. I have done everything by the book and it is still not working. When I try to test it I type on IE http://localhost/test.php to get the info page, but instead I get the code from the test.php file. Any ideas why this might be happening?

Thank you very much for your support! :lol:

Posted: Tue Sep 14, 2004 4:50 pm
by feyd
did you use the php installer or did you use the install zip?

At any rate, you either haven't added the right lines to httpd.conf in Apache, or maybe you didn't restart Apache.

Posted: Tue Sep 14, 2004 4:51 pm
by Stelios
I used php zip and I did the manual installation

Posted: Tue Sep 14, 2004 4:53 pm
by feyd
mmkay, did you restart apache? Are you sure you added the right lines to the httpd.conf? It may be a good idea to post your httpd.conf... or at least the load modules sections and the relevent php sections..

Posted: Tue Sep 14, 2004 4:56 pm
by Stelios
I restarted apache and I did type the right lines on the httpd.conf...here it is....
ScriptAlias /php/ "c:/php/"
AddType application/x-httpd-php .php
Action application/x-httpd-php "/php/php.exe"
these are the last lines, as for the rest I havent changed anything...

Posted: Tue Sep 14, 2004 4:59 pm
by feyd
you didn't add a LoadModule? that's your problem, likely...

Posted: Tue Sep 14, 2004 5:01 pm
by Stelios
no, i didnt...what modules do i have to load and where? By the way I have tried the installation on two different computers with the only difference that I have installed as isapi on one and as cgi module on other.both are doing the same thing...apache is working properly, mysql as well...

Posted: Tue Sep 14, 2004 5:05 pm
by feyd

Code: Select all

LoadModule php4_module "C:\your\php\path\sapi\php4apache.dll"
I think...

Posted: Tue Sep 14, 2004 5:08 pm
by Stelios
am afraid it doesnt work...is this not supposed to go on a sapi installation? the thing I have added is supposed to be for a cgi one isnt it?

Posted: Tue Sep 14, 2004 5:13 pm
by feyd
I don't do cgi installs. so... read the manual... or maybe ask on #php (irc.freenode.net) ... don't blame me if you get yelled at on the channel though..