How to Install PHP 5.2 in Redhat
- 1). Log in your RHEL computer.
- 2). Go to the "Applications" menu then the "Accessories" submenu and select "Terminal."
- 3). Type "su" and press "Enter." Type in your root or administrator password and press "Enter."
- 4). Type "yum search php" and press "Enter."
- 5). Locate the php.i386 5.2.X and write down the X value down.
- 6). Type "yum install php.i385 5.2.X" and press "Enter."
- 7). Wait 1 to 10 minutes for PHP to install depending on your computer and Internet speed.
Source...