June 15th, 2013, 08:47 AM
Should I install PHP from source?
In the past, I've always used yum to install PHP. At times, I didn't get exactly what I wanted, but it was the price of a simple yum install.
I am rebuilding my server with Apache and PHP by source, and with MySQL by rpm. Good or bad idea? Why do you think so?
Assuming this is not a terrible idea, I will configure PHP as follows. I want a typical PHP 5.4/Centos 6.4/Apache 2.4/MySQL 5.6 server but want SOAP. Does this seem like a reasonable configuration? Why do I need to yum install the various libraries, and if I had not done so, would I have been informed to do so?
yum install \
June 17th, 2013, 06:53 PM
Any reason I should not install PHP from source? I have successfully done so and it was fairly straightforward.
I will probably install MySQL using yum on the RPM file instead of using the Centos repo.
Instead of installing Apache by source, I am thinking of creating my own RPMs from the canonical Apache httpd tarball.
Don't feel obligated on commenting of the later two proposed directions, however, if you wish to, your comments would be highly valued.
June 17th, 2013, 06:57 PM
I've used emerge under Gentoo for years. I kind of figured we were far beyond the age of having to compile from source for standard installs...
June 17th, 2013, 07:03 PM
Also curious why you want to install from source. It's an interesting experience to be sure but unless you have weird requirements, like needing compile-time options set or you want something newer than your repos have, yum should be alright for you.
You say you need SOAP. You don't have it already?
June 17th, 2013, 07:11 PM
Thank you requinix,
Well, yes for the experience, but I think I am just about over that.
I don't believe SOAP is in the Centos repo (or at least it wasn't a year or so ago). To use yum with SOAP, last time, I had to use the remi repo. Also, the Centos repo only has PHP 5.3.3, and I wanted to take advantage of some of the latest features.
How do you install PHP?