Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Using Fedora
FedoraForum Search

Forgot Password? Join Us!

Using Fedora General support for current versions. Ask questions about Fedora and it's software that do not belong in any other forum.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 17th June 2006, 07:42 PM
markg85 Offline
Registered User
 
Join Date: Nov 2005
Age: 28
Posts: 65
How to get php 4.4.2 and php 5.1.4 running on fedora core 5?

Hey,

on my windows machine i have 1 apache service running on port 80 with php 5.1.4 and i have a second apache service on port 81 which runs php 4.4.2.. but i have no idea how to get this working on fedora core 5..

Besides that where do i donwload the php 4.4.2 rpm for fedora core 5 and is there any full guide somewhere to make this happen?

anyone got any ideas?
Reply With Quote
  #2  
Old 17th June 2006, 10:58 PM
markg85 Offline
Registered User
 
Join Date: Nov 2005
Age: 28
Posts: 65
i`m really wondering why this forum is called a support forum.. i`m not getting any support over here while there are hundreds!!! of people online!!!

and yes i know that this message is posted just a few hours ago.. o well i expect atleast one reply once every few hours of hundreds os people visit this forum but i guess 88% of the people are jsut fedora users without much knowledge of fedora itself to be able to provide the people who need a hard anwser with a anwser..

and the part that has the knowledge is probly not willing to walk through all the new threads a few times a day..

o well.. maybe i need to register at experts-exchange to see if they provide me with a good solution..

IF i found out how this works i will write a guide for this in dutch and anyone is free to translate it..
Reply With Quote
  #3  
Old 19th June 2006, 03:38 AM
Jman Offline
Registered User
 
Join Date: Mar 2004
Location: Minnesota, USA
Age: 27
Posts: 7,909
FYI, as of this writing, 27 people have viewed this thread. You can figure out the odds of one of them knowing the answer and voluenteering it.

Had you searched the web you would have found this: http://www.mjmwired.net/resources/mjm-fedora-php4.html The magic search terms: fedora php4.

I assume you need this for some application.
Reply With Quote
  #4  
Old 19th June 2006, 07:55 AM
markg85 Offline
Registered User
 
Join Date: Nov 2005
Age: 28
Posts: 65
yes i have searched and found that link allong with serveral other ones but i need the newest version of the 4.x.x series and the latest one of the 5.x.x series.

i`m verry PRO linux but things like this are realy a peace of cake in windows
Reply With Quote
  #5  
Old 19th June 2006, 10:20 AM
Omega Blue's Avatar
Omega Blue Offline
Registered User
 
Join Date: Apr 2005
Location: Fragrant Harbour
Posts: 1,344
I don't understand why you need such a strange config.
Reply With Quote
  #6  
Old 20th June 2006, 02:47 AM
Jman Offline
Registered User
 
Join Date: Mar 2004
Location: Minnesota, USA
Age: 27
Posts: 7,909
If you really need the latest you can get the rpm spec from the source rpm, bump the version, and rebuild.

The problem is that php doesn't seem to be parallel installable, as the guide mentioned removing php 5.

This is a no one bothers maintaining this so you get to kind of thing.
Reply With Quote
  #7  
Old 28th June 2006, 02:04 PM
mjmwired's Avatar
mjmwired Offline
Registered User
 
Join Date: Feb 2005
Posts: 204
There will never be a fully updated PHP4 rpm for Fedora. The Fedora philosophy is to support the latest version only. Hence the PHP4 is already discontinued. The guide linked above only references the latest PHP4 version released through the legacy support services (http://www.fedoralegacy.org/).

Hence you must recompile on your own or custom configure another SRC.RPM from somewhere else to suit your needs. There really is no simple solution as your needs are not very common.

And technically yes you can have both PHP versions parallely installed. You must compile them both as different modules and loaded separately in Apache. Then you must make sure the handlers for each module are specifically designated, ie. .php4 files load with the libphp4.so module and .php files load with the libphp.so module (which would be defaulted to PHP v5 from Fedora). Or something similar.

As for running 2 versions of Apache, that is also doable, but seems wasteful - unless the configurations for each will differ singnificantly. You can simply write your own script that launches an 2nd instance of httpd with manually specifiying your own custom httpd.conf and other config files and settings which are specific to your 2nd instance of Apache.

Some other distributions like SuSE do keep PHP4 at the latest version. You could try that or you can work out all the issues in porting their SRC.RPM. However in the end you most likely will have to build from source.

My opinion, yes you are right about FedoraForum it is more novices than highly technical people. Try linuxquestions.org or an apache or php mailing list or newsgroup for more focused questions. And finally, comparisons from Windows to Linux are meaningless and your expectations from FREE support are rather high.
Reply With Quote
  #8  
Old 28th June 2006, 04:37 PM
Sarthan's Avatar
Sarthan Offline
Registered User
 
Join Date: Feb 2006
Location: Belgium
Age: 35
Posts: 142
Here's how I did it.

Install PHP4 as a CGI-BIN module

# tar zxpf php-4.4.2.tar.gz

# cd php-4.4.2.tar.gz

# ./configure

# make

# cp sapi/cgi/php /var/www/cgi-bin/php4

# vi /etc/httpd/conf.d/php4.conf

AddHandler php4-script .php4
Action php4-script /cgi-bin/php4

DirectoryIndex index.php4

# cp /etc/php.ini /usr/local/lib/ (location of php4 ini file)

# /etc/rc.d/init.d/httpd restart
Reply With Quote
Reply

Tags
core, fedora, php, running

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Running Fedora Core 7 from CD leonardevens Using Fedora 6 23rd June 2007 02:23 AM
Running scisoft in Fedora Core 5 GillianW Fedora Core 5 - Dev 6 2nd October 2006 05:21 AM
running c++ on fedora core 4 xiekke Programming & Packaging 7 20th March 2006 06:26 PM
Fedora Core 2 book, Running Fedora Core 3 fyulaba Fedora Focus 0 18th March 2005 06:32 AM
Need help to get my fedora 3 core up and running irish rebel Fedora Core 3 Test Releases 2 15th October 2004 06:57 PM


Current GMT-time: 09:20 (Monday, 20-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat