Hi!
I want to install PHP 4 via RPM on a CentOS 5 server. I downloaded the CentOS 4.5 , installed all needed dependency packages, but I'm having troubles while building the RPM:
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"
Now I reach a stage, where some test are made, I to check fo some PHP bugs and it fails there... 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.. :(
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?
I've compiled PHP 4.4.7 from source downloaded form php.net with no problems, but I would like to install it via RPM, preferably by using the CentOS PHP 4 RPM. If there isn't, I will compile directly form source and not use RPM, but would prefer to do it via RPM if possible
Thanks in advance,
Juan
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 :)
Juan Nin wrote:
I want to install PHP 4 via RPM on a CentOS 5 server. I downloaded the CentOS 4.5 , installed all needed dependency packages, but I'm having troubles while building the RPM:
how about setting up a CentOS-4 VM on the C5 machine and just using that ? will atleast give you package management ability and let you host php-4 on the machine without needing to loose the c5 host.
- KB
no, don't want to add that complexity and overhead to the box....
On 8/13/07, Karanbir Singh mail-lists@karan.org wrote:
Juan Nin wrote:
I want to install PHP 4 via RPM on a CentOS 5 server. I downloaded the CentOS 4.5 , installed all needed dependency packages, but I'm having troubles while building the RPM:
how about setting up a CentOS-4 VM on the C5 machine and just using that ? will atleast give you package management ability and let you host php-4 on the machine without needing to loose the c5 host.
- KB
-- Karanbir Singh : http://www.karan.org/ : 2522219@icq _______________________________________________ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Juan Nin wrote:
no, don't want to add that complexity and overhead to the box....
you are probably adding more complexity and a lot more manual overhead by going down the route of building the php-4 src.rpm ... but thats just my opinion.
- KB
mmh oks, I'll then compile directly from the PHP 4.4.7 source downloaded form php.net and use it with no RPM when we are ready to migrate to PHP 5 I then use the PHP 5 RPM
thnx
On 8/13/07, Karanbir Singh mail-lists@karan.org wrote:
Juan Nin wrote:
no, don't want to add that complexity and overhead to the box....
you are probably adding more complexity and a lot more manual overhead by going down the route of building the php-4 src.rpm ... but thats just my opinion.
- KB
-- Karanbir Singh : http://www.karan.org/ : 2522219@icq _______________________________________________ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
forgot to say, I'm using the latest CentOS 4.5 SRPM: http://mirror.centos.org/centos/4.5/updates/SRPMS/php-4.3.9-3.22.5.src.rpm
On 8/13/07, Juan Nin juanin@gmail.com wrote:
Hi!
I want to install PHP 4 via RPM on a CentOS 5 server. I downloaded the CentOS 4.5 , installed all needed dependency packages, but I'm having troubles while building the RPM:
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"
Now I reach a stage, where some test are made, I to check fo some PHP bugs and it fails there... 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.. :(
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?
I've compiled PHP 4.4.7 from source downloaded form php.net with no problems, but I would like to install it via RPM, preferably by using the CentOS PHP 4 RPM. If there isn't, I will compile directly form source and not use RPM, but would prefer to do it via RPM if possible
Thanks in advance,
Juan
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 :)
Juan Nin wrote:
forgot to say, I'm using the latest CentOS 4.5 SRPM: http://mirror.centos.org/centos/4.5/updates/SRPMS/php-4.3.9-3.22.5.src.rpm
On 8/13/07, *Juan Nin* <juanin@gmail.com mailto:juanin@gmail.com> wrote:
Hi! I want to install PHP 4 via RPM on a CentOS 5 server. I downloaded the CentOS 4.5 , installed all needed dependency packages, but I'm having troubles while building the RPM: 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" Now I reach a stage, where some test are made, I to check fo some PHP bugs and it fails there... 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.. :( 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? I've compiled PHP 4.4.7 from source downloaded form php.net <http://php.net> with no problems, but I would like to install it via RPM, preferably by using the CentOS PHP 4 RPM. If there isn't, I will compile directly form source and not use RPM, but would prefer to do it via RPM if possible Thanks in advance, Juan 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 :)
Well ... if you want php 4, then use centos-4.5 ... unless you are using the centos-4.5 version of all things that php compiles against (httpd, apr, etc.) then you are going to have nothing but problems trying to downgrade the version.