Best way to install Apache on Centos 6
I am installing MySQL, Apache, and PHP on a new Centos 6.4 server.
For MySQL, you have three choices. Using "yum install mysql" along with Centos's repository is the simplest, but installs a very old version. Or you can go with "official" documentation at MySQL.com, but it has a few gotchas. The following seems like the best of both worlds. Code:
# yum install MySQL-shared-5.6.11-2.el6.x86_64.rpm In regards to Apache, I would like your opinions which way would be best, and why:
Thanks |
Quote:
Quote:
This example for MySQL also applies to Apache: Quote:
|
Thanks bigrigdriver,
The problem as I see it is Centos is not very diligent on upgrading their servers. It appears that the latest versions are PHP 5.3.3.22, MySQL 5.1.69, and Apache 2.2.155. I suppose I can start seaching for other repos, but don't know if I am confortable doing so. Am I missing something? Code:
[root@centosBox Downloads]# yum list available | grep httpd |
Unless you NEED (not want) the absolute latest, go with the Centos repo versions.
Otherwise you risk breaking dependencies & other issues. Note that RedHat (Centos is a free rebuild) does actually backport fixes from newer versions, hence the long version strings. You can always check the release notes if you absolutely require something you think isn't there in the base version. |
Thanks chrism01,
Sometimes with PHP I need some new feature. As for the other two, I don't necessarily need the latest, but don't want any security holes either. Apache httpd 2.2.15 was released on 2010-03-07 15:08. There appears to be a whole string of patches to address security concerns. I am new to all this, but have some concerns of using such an old platform. Should I not be? As for MySQL, does my use of yum on the rpm package not protect against breaking dependencies & other issues? Probably not, but you can't blame for for hoping! Also, back to Apache, will creating an RPM as described below and using yum to install provide any advantages? Thanks Quote:
|
Ah. The thing here is that all those security fixes you mentioned are backported to the latest EL httpd package. So, if you have 2.2.15 from RHEL, SL or CENTOS you will find it already has those patches in it.
Proof: Code:
rpm -q --changelog httpd|head |
Quote:
|
CentOS is a rebuild of RHEL
the major version numbers of programs will NEVER change in the lifetime of RHEL6 NOW red hat is VERY diligent on installing backported SECURITY fixes to updates though the version of MySQL and Apache and Php might be a bit old ,they DO have the current security and bug fixes applied to them . Also these versions are VERY well tested !!! in over 5 years i have only had ONE crash on rhel/cent/sl and that was 100% MY FAULT ! |
Thanks szboardstretcher, I did find it odd how Apache was such an old version. I am curious on who takes the time applying fixes to older software versions (I assume that is what backported means?), but will take your word on it.
Thanks DavidMcCann and John VV, I was not saying CentOS is not concerned about security, only my limited view (which is undoubtedly wrong) implied they were. |
Hi,
Quote:
Quote:
Quote:
If you really do need to use newer versions on some things (eg php), it is worth checking the 3rd party repositories listed at http://wiki.centos.org/AdditionalResources/Repositories Cheers, Evo2. |
All times are GMT -5. The time now is 09:31 PM. |