We are bringing an Interworx box online in the next few days (we currently use FC3 across most servers), and the client has requested FC4. However he does not want PHP5.
He would like, PHP4, Mysql 4.1.x & Apache2.
Please can someone give some details on the “best” way to ‘downgrade’ the PHP that will be installed by Interworx?
Many Thanks, and looking forward to your responses.
I’ll have to face this very same problem this week (waiting for a server to be put online), and I’ll try myself if nobody answers I’ll let you know the results… I’ve been fighting mysql 4.1.x, 4.0.x and 3.23.x with PHP for some time now.
Install IWorx-CP as “normal” (i.e. with default fedora PHP5)
Remove the PHP package that fedora provides (DO NOT REMOVE THE PHP-IWORX PACKAGE) using rpm -e <pack names>
Edit your /etc/yum.conf and put an exlucde in there for php. This will ensure that next time YUM runs it won’t clobber the work we’re about to do with the “newer” php5 default RPMs
You may have to install rpm-build and gcc (using “yum install gcc rpm-build”) if the previous command gives you issues. If the RPM complains of missing dependencies (of which there are a ton) you may also have to install all of them. If you can’t find mhash/libmhash look here: http://dag.wieers.com/packages/libmhash/
Once that completes you’ll have a bunch of new RPMs in /usr/src/redhat/RPMS/i386 or /usr/src/redhat/RPMS/x86_64 depending on your architecture. Just rpm -Uvh <packages you want installed> and that should do it
Hello. I finally setup a FC4 box with PHP4 + MySQL 4.1.
I tried the guidelines provided by Chris, but rpmbuild won’t make it compiling PHP4 from src.rpm on FC4, perhaps some GCC version issues or whatever. I read that some other people faced the same problem and tried a proposed solution: just using the FedoraCore3 PHP4 rpms.
This worked for me, just had to resolve some dependencies.
I also have to add something about the firewall on Fedora Core 4.
I had to disable the redhat firewall enabled by default in my FC4 installation in order to make APF work correctly (they get “mixed”). By default, this disables responses to HTTP, FTP, etc.
So you have to select “Disable firewall”, executing /usr/sbin/setup (it’s a console app), and then start APF.
I had locked myself but having a “Trusted IP” saved me from a reinstall and now it’s working nice.
There is also quite a problem with APF and the Kernel that FC4 comes with, meaning APF wouldn’t work at all. There is a fix which I will details shortly however it is only a temporary fix to get the firewall “functioning”.