PHP4 on Fedora Core 5
Friday, April 7th, 2006 ~ 7:04 pm
Apparently some developers still require PHP4 on their web servers. The previous method for doing so on Fedora Core 4 (FC4) was to use the FC3 RPM’s. (A formal procedure was provided by the guide: PHP4 on FC4.)
Since the release of FC5, the dependancies and outdated linking from the FC3 RPM packages may be difficult to resolve. It is recommended to recompile the PHP4 SRC.RPM and link it to the running software provided in FC5. However, there are some needed changes to the SRC.RPM. There is a modified source RPM package provided on the following guide:
Steps provided should work for FC5 as well as FC4. There are some precompiled binary RPM’s provided as well.
These have only been tested by myself. I would appreciate it if anyone can report as to how well these work!
April 13th, 2006 at 9:38 am
I have try on x86_64 machine, have an error messege:
007+ In branch 2 008- In branch 3 008+ i=3 009- hi 009+ In branch 3 010+ hi -- ../tests/lang/021.diff result ends. TEST FAILURE: ../tests/lang/015.diff -- 001- Hello 001+ PHP Warning: mime_magic: type regex BEGIN[[:space:]]*[{] application/x-awk invalid in Unknown on line 0 002+ Hello -- ../tests/lang/015.diff result ends. error: Bad exit status from /var/tmp/rpm-tmp.55718 (%check)Have a explaination about this issue. thank’s
June 30th, 2006 at 7:22 am
I try to install your precompiled RPM PKG as followings.
#rpm -ivh php-4.3.11-2.8.1.mjm.i386.rpm \
> php-domxml-4.3.11-2.8.1.mjm.i386.rpm \
> php-gd-4.3.11-2.8.1.mjm.i386.rpm \
> php-mysql-4.3.11-2.8.1.mjm.i386.rpm \
> php-pear-4.3.11-2.8.1.mjm.i386.rpm \
> php-xmlrpc-4.3.11-2.8.1.mjm.i386.rpm
error: Failed dependencies:
libdb-4.2.so is needed by php-4.3.11-2.8.1.mjm.i386
#
So I will try to compile as your step.
I will let you know that result.
June 30th, 2006 at 7:26 am
No recompile needed.
http://www.mjmwired.net/resources/mjm-php4-fc4.html
From FC4 but similar for FC5:
June 30th, 2006 at 8:47 am
Great!!!!
I finished successfully!!!!
Thanks so much………………..!!!!
So beautiful !!!
July 10th, 2006 at 10:02 pm
I had run into these same problems, and solved some of them independently, but after understanding that the mime_magic errors during the PHP build tests (and at runtime) are caused by a dubious entry in the file RPM, it became clear that the simplest and best solution is to make sure that the original FC5 file-4.16-6.2 RPM is installed, not the newer updates version file-4.17-2.fc5.
This is the missing clue that Agus Riant needed.
@alex
July 11th, 2006 at 7:44 am
Thanks Alex! I only tested with the updates for all the basic dependancies, not a fully updated system. I will make a note of this change in the guide.
July 22nd, 2006 at 11:48 am
Hi, I install your php 4 rpm for Mapscript (UMN Mapserver). When Apache load php4 module, it ’show this message
Sat Jul 22 23:36:59 2006] [warn] module php4_module is already loaded, skipping
[Sat Jul 22 23:36:59 2006] [notice] Digest: generating secret for digest authentication …
[Sat Jul 22 23:36:59 2006] [notice] Digest: done
PHP Warning: Unknown(): Unable to load dynamic library ‘/usr/lib/php4/php_mapscript.so’ - /usr/lib/php4/php_mapscript.so: undefined symbol: php_gd_gdImageCopy in Unknown on line 0
[Sat Jul 22 23:36:59 2006] [notice] mod_python: Creating 4 session mutexes based on 256 max processes and 0 max threads.
But i have already installed
php-mysql-4.3.11-2.8.1.mjm
php-ncurses-4.3.11-2.8.1.mjm
php-debuginfo-4.3.11-2.8.1.mjm
php-domxml-4.3.11-2.8.1.mjm
php-xmlrpc-4.3.11-2.8.1.mjm
php-ldap-4.3.11-2.8.1.mjm
php-4.3.11-2.8.1.mjm
php-pear-4.3.11-2.8.1.mjm
php-imap-4.3.11-2.8.1.mjm
php-pgsql-4.3.11-2.8.1.mjm
php-devel-4.3.11-2.8.1.mjm
php-gd-4.3.11-2.8.1.mjm
php-mbstring-4.3.11-2.8.1.mjm
So i don’t know why apache show this warning.
Thank for any help
Best regards
July 23rd, 2006 at 11:52 am
To fix Linh Dang’s problem with mapscript:
August 30th, 2006 at 9:06 pm
[root@proxy1 PHP4onFedora]# rpm -ivh php-4.3.11-2.8.1.mjm.i386.rpm
error: Failed dependencies:
php-pear is needed by php-4.3.11-2.8.1.mjm.i386
How to fix ?
August 30th, 2006 at 9:16 pm
Pwizard: Did you read the instructions carefully? You have to install every RPM you want at the same time.