I attempted to install php using rpm -Uvh http://repo.webtatic.com/yum/el6/latest.rpm and then yum install php54w. Then after restarting apache my phpinfo() shows up but when I try to run a index.php it reports a 500 error. I tried also just yum install php. yum install php-devel yum install php-cli` php-common etc and still 500 error. I figured installing from source is the only thing I can do now.
–
SephMerahOct 14 '12 at 17:10

1

You probably should ask a question regarding the task you really want to accomplish, not this task (which will cause you all sorts of headaches in the future, even if you manage to do it).
–
Michael Hampton♦Oct 14 '12 at 17:11

1 Answer
1

If you use fpm there will be almost no need to do checkinstall. fpm still has a few warts and does require some post-processing with rpmrebuild. In my case, I got the same error during initial build of checkinstall, said goodbye, and then searched for the RPM through RPMFind.net, where a suitable version emerged.

Have rarely used checkinstall, but fpm was a treat for me. It is even possible to pack fpm into an RPM after the initial gem installation and to reinstall it properly :)

Following up on @Michael Hampton 's request and your clarifications: you have no compelling reason to compile PHP from sources and attempt to track (with your bare feet!) the bleeding-edge of PHP for your production environment. More than any other program, PHP often breaks backward compatibility. However, being able to roll out RPMs is quite helpful for a lot of situations where only the source is available.

EDIT #3: another advantage of fpm is not running under root. Saves a bit of mental stress, actually.