[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Newbie question: can't get PHP working



I'm new to PHP and I'm not having any success getting PHP running from the stock Redhat 7.3 CDs. I've installed PHP 4.1.2 and Apache 1.3.23 from rpms. Apache seems to be
working okay because I can see the test page at http://localhost .


When I attempt to run the following script phptest.php in the browser: <? phpinfo() ?>
the script doesn't run and all I see is the contents of the file: <? phpinfo() ?>


I've gone through httpd.conf several times and have added the following lines explicitly as suggested in previous posts:

AddModule mod_php4.c
AddType application/x-httpd-php .php4 .php3 .phtml .php
AddType application/x-httpd-php-source .phps

I've also tried compiling php from the source obtained from PHP.NET
The source compiles just fine but PHP still doesn't run. If I run the following from the command line "/usr/bin/php phptest.php" and save the output to a file, the browser displays the contents of the output file correctly.


Is there some additional configuration that I need to do but don't know about?

Thanks, Fourmun





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]