Although I was initially struggeling, I finally managed to build a PHP4 RPM for CentOS 5
Initially I planned to make tutorial on how I managed to build my RPM (which you can still use), however due to some issues with the original PHP 4.3.9 RPM for CentOS 4 I decided to create a RPM of PHP 4.4.7 (and upgrade to 4.4.8 later).
A few challenges later I managed to cleanly build PHP4 including passing all the needed tests.
UPDATE: See this new post for a slightly new version and eAccelerator RPM’s.
I’m not going to explain all the challenges I had to overcome to get the RPM’s to build, in stead you can just grab the SRPM yourself and build the RPM’s. I will supply the fully build RPM’s soon.
Changelog since 4.3.9-3.22.9.el4
Changelog
The SRPM builds a php4 CLI and CGI binary which you can use, I use ‘php4′ everywhere so it should run fine with PHP5 alongside.
Building the RPM’s
You can build with the SRPM yourself, using the instructions I mentioned in my previous post. Basically you only have to do the following (if your BUILD environement is in order!).
Download php4-4.4.8-LAB3.src.rpm
Bugs? Remarks? Feel free to leave a comment!
Ivo







2 Comments at "PHP4 RPM (4.4.8) for CentOS 5"
[...] PHP4 RPM (4.4.8) for CentOS 5Iphone / Ipod touch controlling remote itunes and winamp (windows)Building PHP4 (RPM) on CentOS 5How to control a PC or Mac with the iPhone / Ipod TouchA pesky BHO: cfgmgr3.dll Jan 03 [...]
Thank you for sharing your sources and instructions. I was trying to build this for x86_64 following your instructions but got this error:
#define YYTEXT_POINTER 1
#endif
#ifdef __cplusplus
extern “C” void std::exit (int) throw (); using std::exit;
configure: exit 1
+ make -j4
make: *** No targets specified and no makefile found. Stop.
error: Bad exit status from /var/tmp/rpm-tmp.76743 (%build)
RPM build errors:
Bad exit status from /var/tmp/rpm-tmp.76743 (%build)
Comment Now!