Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 07-07-2003, 11:35 PM   #1
LQ Newbie
Registered: Jul 2003
Location: Australia
Distribution: RedHat 8.0
Posts: 10

Rep: Reputation: 0
installing PHP4 and PHP5 on apache

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/
LoadModule php5_module libexec/

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


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????
Old 07-08-2003, 06:57 AM   #2
Registered: Jul 2003
Location: columbia
Distribution: Linux+XP
Posts: 40

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

if it succeeds in loading mod_php5.c (or php5) then you can run php5
Old 07-08-2003, 10:27 PM   #3
LQ Newbie
Registered: Jul 2003
Location: Australia
Distribution: RedHat 8.0
Posts: 10

Original Poster
Rep: Reputation: 0
hey thx man , just what i needed


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
help installing PHP5 for Apache blizunt7 Fedora 6 11-03-2005 10:59 AM
PHP5 to PHP4 on FC4? kz26 Fedora 5 10-24-2005 05:09 AM
replacing PHP4 with PHP5 in SuSE 9.2? paganprogrammer Linux - Software 3 07-03-2005 01:25 AM
Php5 >> Php4 Eric45008 Slackware 22 04-25-2005 07:37 PM
upgradeing from php4 to php5 mgarcia001 Debian 0 09-30-2004 07:31 PM > Forums > Linux Forums > Linux - Software

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

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration