LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices

Reply
 
Search this Thread
Old 10-21-2005, 06:45 PM   #1
kz26
Member
 
Registered: Aug 2005
Location: USA
Distribution: Fedora, Ubuntu, Backtrack
Posts: 70

Rep: Reputation: 15
PHP5 to PHP4 on FC4?


Help! I am using a Fedora Core 4 box as an Apache webserver with PHP to host my website
(see signature) . The server is running Apache 2.0.54 with PHP 5.0.4. However I am using phpATM http://phpatm.free.fr , a php file manager which is designed to run with php4. phpATM freaks out on php5; all I get is a blank page. Anyone know if I can safely downgrade my php5 to php4, preferably with an RPM?
 
Old 10-21-2005, 09:44 PM   #2
mjmwired
Member
 
Registered: Apr 2004
Distribution: CentOS6, CentOS5, F16, F15, Ubuntu, OpenSuse
Posts: 620

Rep: Reputation: 39
I'd be interested in this too. Has someone generated a working RPM? I've tried compiling the SRC RPM for PHP4 from FC3 but it breaks all over the place. Too frustrating.

The response I get from the Fedora community is that Fedora Core is bleeding edge and hence using FC4 is not recommended if you need things like PHP4 or Apache1.3.

Anyways, I have PHP4 running on my FC4 box, but I installed from source. I didn't kill PHP5, just disabled it in the Apache conf (httpd.conf).
 
Old 10-22-2005, 04:24 PM   #3
barrythai
Member
 
Registered: Dec 2004
Location: thailand
Distribution: suse9.3, Mandrake10.1
Posts: 381

Rep: Reputation: 30
Quote:
Originally posted by mjmwired
I'd be interested in this too. Has someone generated a working RPM? I've tried compiling the SRC RPM for PHP4 from FC3 but it breaks all over the place. Too frustrating.

The response I get from the Fedora community is that Fedora Core is bleeding edge and hence using FC4 is not recommended if you need things like PHP4 or Apache1.3.

Anyways, I have PHP4 running on my FC4 box, but I installed from source. I didn't kill PHP5, just disabled it in the Apache conf (httpd.conf).
Can't understand you using Apache 1.3 isn't this a bit dated for LAMP.

I'am still trying someone to answer my question if anyone has full LAMP working on Fedora 4 on x86_64

The apache 2 and php has had problems for the last 6 months on Mandrake 10.2 and Suse 9.3 (now fixed on 10) looking for answers
in Fedora 4 since the other two distro's have problems with wireless on x86_64.

Anyone help on this?
 
Old 10-23-2005, 07:55 PM   #4
mjmwired
Member
 
Registered: Apr 2004
Distribution: CentOS6, CentOS5, F16, F15, Ubuntu, OpenSuse
Posts: 620

Rep: Reputation: 39
Quote:
Can't understand you using Apache 1.3 isn't this a bit dated for LAMP.
Apache 1.3 maybe a bit outdated, but many providers still use it (mine inclusive). So if I wanted to mirror a public webserver on my own lan, then it would be nice to match it. In my case Apache2 works almost exactly as my 1.3 on the internet. SO this is not the main issue.

However, PHP4 is still very much standard and many apps still use it. I've spent the past few hours trying to rebuild a modified PHP4 RPM for FC4 and have had no luck. Too many things either won't compile with GCC4 or some settings in the .SPEC file have problems. In the end my goal is to have a PHP4 RPM without disturbing the include PHP5 on FC4.

Quote:
The apache 2 and php has had problems for the last 6 months on Mandrake 10.2 and Suse 9.3 (now fixed on 10) looking for answers
in Fedora 4 since the other two distro's have problems with wireless on x86_64.

Anyone help on this?
How can anyone help if you haven't described your problems in detail and what you have tried to resolve them? Although I would recommend a separate thread instead of changing the main point on this thread (PHP4 on FC4).
 
Old 10-23-2005, 09:56 PM   #5
mjmwired
Member
 
Registered: Apr 2004
Distribution: CentOS6, CentOS5, F16, F15, Ubuntu, OpenSuse
Posts: 620

Rep: Reputation: 39
Okay, if anybody cares at all, I have compiled PHP4 RPM's for FC4. I gave up trying to get PHP4 and PHP5 working together so, I have simply uninstalled PHP5 altogether.

The basic procedure I followed was this:
- Obtained and installed the latest PHP4 src.rpm from Fedora Updates (php-4.3.11-2.7.src.rpm)
- Installed (from source) GCC 3.4 **
- Did an rpmbuild of the php4 .spec file
- Uninstalled all PHP5 rpms
- Installed all necessary PHP4 rpms

** I had found out that the PHP4 SRC.RPM would not properly compile with GCC4 or GCC3.2 (included in FC4) so I used a GCC3.4 which I had installed separately.

Anyways, I don't know if this provides any advantage over installing the binary RPMs from FC3 with any necessary compatibility libraries.

Last edited by mjmwired; 10-23-2005 at 10:11 PM.
 
Old 10-24-2005, 06:09 AM   #6
barrythai
Member
 
Registered: Dec 2004
Location: thailand
Distribution: suse9.3, Mandrake10.1
Posts: 381

Rep: Reputation: 30
Quote:
Originally posted by mjmwired
Apache 1.3 maybe a bit outdated, but many providers still use it (mine inclusive). So if I wanted to mirror a public webserver on my own lan, then it would be nice to match it. In my case Apache2 works almost exactly as my 1.3 on the internet. SO this is not the main issue.

However, PHP4 is still very much standard and many apps still use it. I've spent the past few hours trying to rebuild a modified PHP4 RPM for FC4 and have had no luck. Too many things either won't compile with GCC4 or some settings in the .SPEC file have problems. In the end my goal is to have a PHP4 RPM without disturbing the include PHP5 on FC4.



How can anyone help if you haven't described your problems in detail and what you have tried to resolve them? Although I would recommend a separate thread instead of changing the main point on this thread (PHP4 on FC4).
Sorry I tried that on the other two forums and never got anyone to come up and admit that apache 2 and php did not work on
x86_64 systems until now. I hadn't been following Fedora for the last 6 monthsand especially, since they seperated from Redhat 8.1.

Seeing that you might have been able to answer some of my questions I was grasping at straws in returning to test Fedora 4 again.

This is the other two distro's have solved the LAMP problems now, but the wireless on x86_64 does not work to the best of my knowledge on these distro's and thought you were ecperienced enough to answer my problems.

I think I already have asked these questions on Fedora as well, but maybe I will ask again.


 
  


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
apache2 php4 and php5 as modules Nathanael Linux - Software 1 08-09-2005 12:10 PM
replacing PHP4 with PHP5 in SuSE 9.2? paganprogrammer Linux - Software 3 07-03-2005 02:25 AM
Php5 >> Php4 Eric45008 Slackware 22 04-25-2005 08:37 PM
upgradeing from php4 to php5 mgarcia001 Debian 0 09-30-2004 08:31 PM
installing PHP4 and PHP5 on apache jerry_redhat Linux - Software 2 07-08-2003 11:27 PM


All times are GMT -5. The time now is 03:36 PM.

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