LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   installing PHP4 and PHP5 on apache (https://www.linuxquestions.org/questions/linux-software-2/installing-php4-and-php5-on-apache-70851/)

jerry_redhat 07-07-2003 11:35 PM

installing PHP4 and PHP5 on apache
 
:newbie: :Pengy:

I have installed apache 1.3.27 on RedHat 8.0
and installed php 4.3.2 successfully
i then configured, compiled and installed PHP5.

so in httpd.conf it has

LoadModule php4_module libexec/libphp4.so
LoadModule php5_module libexec/libphp5.so

then later on i have added

AddType application/x-httpd-php .php # for php4 files
AddType application/x-httpd-php5 .php5 # for php5 of course

then in htdocs i have

test.php & test.php5

both containg

<?php
phpinfo();
?>

test.php works but test.php5 comes with "page can't be displayed

does anybody have a procedure i can follow for php4 & 5 to work together????

softcore26 07-08-2003 06:57 AM

try something like
<IfModule mod_php5.c>
AddType applicatoion/x-httpd-php .php .php5
</IfModule>

if it succeeds in loading mod_php5.c (or php5) then you can run php5

jerry_redhat 07-08-2003 10:27 PM

hey thx man , just what i needed :)


All times are GMT -5. The time now is 12:31 PM.