Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I am trying to install php 5.2.17 on a CentoOS machine. Having problems as I have only used yum in the past. I have the file downloaded and unpacked...not clear on how I need to ./configure before using the make and make install?

UPDATE: I am getting this message when installing php 5.2.17 from a fresh cloud instance:

]# rpm -ivh php-5.2.17-1.x86_64.rpm error: Failed dependencies: libaspell.so.15()(64bit) is needed by php-5.2.17-1.x86_64 libcrypto.so.6()(64bit) is needed by php-5.2.17-1.x86_64 libcurl.so.3()(64bit) is needed by php-5.2.17-1.x86_64 libpspell.so.15()(64bit) is needed by php-5.2.17-1.x86_64 libssl.so.6()(64bit) is needed by php-5.2.17-1.x86_64 php-cli = 5.2.17-1 is needed by php-5.2.17-1.x86_64

I ended up installing php 5.3 on this instance which of addressed some of the above. However now I am wrestling with php-cli and php-common which are failing.

Any ideas?

share|improve this question

migrated from stackoverflow.com Feb 8 '12 at 23:51

This question came from our site for professional and enthusiast programmers.

    
Why would you want to install anything that is older than PHP 5.3? I mean: 5.4 is „near“ –  TimWolla Feb 8 '12 at 19:51
    
I understand fully...Have taken on a new site that is running an older version and have no choice at this point. Migrating later...have to deal with some things first. I know..it sucks. –  user1114330 Feb 8 '12 at 19:56
    
Sorry about that..I did actually spend a good bit of time trying before posting here. Thank you for the link though...however it fails on the second step with this message: –  user1114330 Feb 8 '12 at 20:17
    
]# rpm -ivh php-5.2.17-1.x86_64.rpm error: Failed dependencies: libaspell.so.15()(64bit) is needed by php-5.2.17-1.x86_64 libcrypto.so.6()(64bit) is needed by php-5.2.17-1.x86_64 libcurl.so.3()(64bit) is needed by php-5.2.17-1.x86_64 libpspell.so.15()(64bit) is needed by php-5.2.17-1.x86_64 libssl.so.6()(64bit) is needed by php-5.2.17-1.x86_64 php-cli = 5.2.17-1 is needed by php-5.2.17-1.x86_64 –  user1114330 Feb 8 '12 at 20:18
1  
Why the CentOS 6 requirement? You are building an unstable system. CentOS 5 would be a better choice. –  kaptk2 Feb 9 '12 at 0:29

1 Answer 1

up vote 0 down vote accepted

I found that running older versions of PHP is easiest done on older versions of Linux that have older versions of php out of the box...I used an older version of Ubuntu and got the job done.

Thanks all for your help!

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.