LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Fedora (https://www.linuxquestions.org/questions/fedora-35/)
-   -   PHP5 to PHP4 on FC4? (https://www.linuxquestions.org/questions/fedora-35/php5-to-php4-on-fc4-375561/)

kz26 10-21-2005 05:45 PM

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?

mjmwired 10-21-2005 08:44 PM

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).

barrythai 10-22-2005 03:24 PM

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?

mjmwired 10-23-2005 06:55 PM

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).

mjmwired 10-23-2005 08:56 PM

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.

barrythai 10-24-2005 05:09 AM

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.


:newbie: :scratch: :Pengy: :newbie: :study: :tisk: :cry:


All times are GMT -5. The time now is 02:01 PM.