Need RPM package for PHP version 5.2.7 and up on redhat 5.1
Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Need RPM package for PHP version 5.2.7 and up on redhat 5.1
I am looking to upgrade php from 5.2.5 to a more secure version like minimum 5.2.7 I am working on RedHat 5.1.
I have tried to look for RPM's on rpm.pbone.net and rpm.find.net and no luck.
I now a can donwload the source code from PHP but I am not sure if I can compile on linux redhat. I have compiled the source code for solaris
but not linux.
Does anyone now where I can get my hand on the RPM.
The Arch is i386, Redhat 5.1.
It it very easy, just open the terminal and type 1) su
2 ) rpmbuild -bb /usr/src/redhat/SPECS/php.spec
... and wait .. to the packages are ready.
.....
It it very easy, just open the terminal and type 1) su
2 ) rpmbuild -bb /usr/src/redhat/SPECS/php.spec
... and wait .. to the packages are ready.
.....
RHEL5.X was based on FC6. There have been tons of changes between FC6 and F11. So while you might shoe horn it into your system it is likely not to function correctly. Rebuilding the RPM is the way to go.
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,519
Rep:
As lazlow says : Yes. The package shown is not an RPM package.
It is an SRC.RPM , no rpm , just source code.
' src.rpm ' just tells : "ready to build with rpmbuild
to get rpm packages"
Unpacking src.rpm's to /usr/src/redhat/SOURCES/ :
# rpm -i <package>src.rpm
And I actually did build the packages ( 5.3.0 ) on EL 5.
And no : you cannot use a Fedora binary rpm package on EL5,
only the Fedora SRC.RPM's, thus tailoring EL 5 packages.
.....
As lazlow says : Yes. The package shown is not an RPM package.
It is an SRC.RPM , no rpm , just source code.
' src.rpm ' just tells : "ready to build with rpmbuild
to get rpm packages"
Unpacking src.rpm's to /usr/src/redhat/SOURCES/ :
# rpm -i <package>src.rpm
And I actually did build the packages ( 5.3.0 ) on EL 5.
And no : you cannot use a Fedora binary rpm package on EL5,
only the Fedora SRC.RPM's, thus tailoring EL 5 packages.
.....
Thanks for the feedback,
I was wondering what dependencies did you use with PHP 5.3 when it comes
to MySQL.
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,519
Rep:
@ unSpawn # 8 ... Sorry ...
.. I see that mentioned every week .. without a 'how to do it' ..
.. It's easy to describe : a 'one liner' file '.rpmmacros' will create the
rpm's to e.g. /home/'name'/rpms/ , using 'rpmbuild' as ordinary user :
The line is : %_topdir /home/<username>/rpms
And ' rpm -i <package.src.rpm> ' will then copy the source code tar ball to
/home/<username>/rpms/SOURCES , and the <file>.spec to
/home/<username>/rpms/SPECS.
.....
NP about the unpriv. As far as HOWTO's go I used to point to docs like IBM DeveloperWorks (as seen here), but they're probably getting old now and I know Fedora has way more up to date docs and rules. I'd add some sane defaults to ~/.rpmmacros following your example (notice: tmp under rpms/):
I have decided to migrate the systems from this env (Virtuozzo with EL5)
Moving them to ESX hosts. I have already setup my repository for upgrades of PHP, MySQL...
I am going to usr YUM to do upgrades.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.