forgot to say, I'm using the latest CentOS 4.5 SRPM:<br><a href="http://mirror.centos.org/centos/4.5/updates/SRPMS/php-4.3.9-3.22.5.src.rpm">http://mirror.centos.org/centos/4.5/updates/SRPMS/php-4.3.9-3.22.5.src.rpm</a>
<br><br><br><div><span class="gmail_quote">On 8/13/07, <b class="gmail_sendername">Juan Nin</b> <<a href="mailto:juanin@gmail.com">juanin@gmail.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi!<br><br>I want to install PHP 4 via RPM on a CentOS 5 server.<br>I downloaded the CentOS 4.5 , installed all needed dependency packages, but I'm having troubles while building the RPM:<br><br>
I was having compile errors with the Apache APR module, I had to make a symlink form apr-config to apr-1-config, since the package expected to find apr-config which didn't exist, and had to pass via CFLAGS the result of "apr-config --cppflags --includes --cflags"
<br><br>Now I reach a stage, where some test are made, I to check fo some PHP bugs and it fails there...<br>I removed the first bug giving probelsm to see what happened, and failed with another one, which it's really strange, bugs like the #23951 which was solved in June 2003... I don;t understand why is this happening..  :(
<br><br>Has anyone been able to compile a PHP 4 RPM on CentOS 5 or are there any available SRPMs out there already prepared for this? 
<br><br>I've compiled PHP 4.4.7 from source downloaded form 
<a href="http://php.net" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">php.net</a> with no problems, but I would like to install it via RPM, preferably by using the CentOS PHP 4 RPM.<br>If there isn't, I will compile directly form source and not use RPM, but would prefer to do it via RPM if possible
<br><br>Thanks in advance,
<br><span class="sg"><br>Juan<br></span><br>PS: please, don't reply telling me to use PHP 5, I NEED to use PHP 4 on this case, will migrate to PHP 5 ASAP, but still can not do it yet  :)<br>
</blockquote></div><br>