I am setting up a staging server using CentOS and need to install PHP 5.3 to mirror my production server. Using the standard
yum install php I'm sure will give me 5.4 - I've had a look and can't figure out how to specify a version number to install. Can anyone advise? Many thanks.
To specify a version you do:
This assumes that php-5.3.3-14 is available in the repos that your staging server. To see available php versions do:
I am assuming you are on Fedora since you mention php 5.4. Would it not be more advisable if you build your staging server with the same OS and repo sources as your production?
I think folks will be able to help you more if you state what OS versions and packages and what repositories are available to your production server. I might be wrong but i think that php rpms must also match the apache they are built for as a module.