LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices

Reply
 
Search this Thread
Old 07-07-2003, 11:35 PM   #1
jerry_redhat
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/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????
 
Old 07-08-2003, 06:57 AM   #2
softcore26
Member
 
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
</IfModule>

if it succeeds in loading mod_php5.c (or php5) then you can run php5
 
Old 07-08-2003, 10:27 PM   #3
jerry_redhat
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
 
  


Reply


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


All times are GMT -5. The time now is 10:57 AM.

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