Upgrading to httpd 2.2.6 on RHEL and CentOS

September 12, 2007 by · 71 Comments 

Whew! Given that it's been 8 months since the release of Apache's httpd 2.2.4 I was starting to wonder whether or not the httpd developers were on an extended vacation. That said, they've just released version 2.2.6 of their wonderful web server. That vacation theory must have been wrong, given that they skipped version 2.2.5 (something that is rarely done) and went straight to 2.2.6. This release is a big one, fixing five potential security issues and numerous bugs to provide a more stable platform.

There's really not much more to say about this release other than "yum update" for my repo users or "download the src.rpm and get to compiling" for everyone else. If you decide to throw caution to the wind and build the src.rpm keep in mind that you shouldn't be building as 'root' (I know some of you do this anyway, despite my warnings, as I recently received an email asking for assistance from just such a person) and that you will need to fill dependencies on apr & apr-util before you can start (both of which are contained as binaries in my repo).

Have fun!

UPDATE (9/13/2007): The src.rpm and the binary rpms in the repo have been respun to fix a path issue with mod_ssl. If you don't use that package then you don't need to update. Likewise, if you had a valid key and certificate on your system BEFORE installing this version then you don't need to upgrade. This bug SHOULD have only affected new users who had never installed mod_ssl.

httpd 2.2.6 Changelog

Update (9/24/2009): Packages deleted, use the yum repository instead.

Comments

71 Responses to “Upgrading to httpd 2.2.6 on RHEL and CentOS”
  1. Jason says:

    The worker MPM is included but the module for PHP will not work with it because it is not thread-safe. A FastCGI binary for PHP is included for those that want it (mostly lighttpd users) and I know that it will work with Apache, I just don't know the process. If you'd like to elaborate on what is required then maybe I'll take a look.

  2. Joe says:

    Jason thanks for the great repo
    But i upgrade mysql first, then php and got this error. I am running Centos 4.5 with plesk installed can you help me? Its similar or john's problem but I dont understand what to do?

    Syntax error on line 209 of /etc/httpd/conf/httpd.conf: Syntax error on line 2 of /etc/httpd/conf.d/fcgid.conf: API module structure 'fcgid_module' in file /usr/lib/httpd/modules/mod_fcgid.so is garbled - expected signature 41503232 but saw 41503230 - perhaps this is not an Apache module DSO, or was compiled for a different Apache version?

  3. Andy says:

    Have you updated your httpd.conf and php.ini and so on, to the new versions that Yum has placed in their respective directories?

    They will be named as httpd.conf.rpm.save or something like that because Yum will not overwrite your current config files by default.

    if you haven't done this yet (ignore this if you have!) then you will need to copy any relevant parts of your old conf files (php settings, virtual hosts in httpd.conf etc) into your new config files, making sure the syntax etc is compliant with the new versions of the software.

    Also, what versions have you upgraded from, more info needed on your setup to help you.

  4. Joe says:

    Ok I accidentally renamed the wrong file but when I did the corrected this i get the error
    Starting httpd: httpd: Syntax error on line 147 of /etc/httpd/conf/httpd.conf: Cannot load /etc/httpd/modules/mod_access.so into server: /etc/httpd/modules/mod_access.so: cannot open shared object file: No such file or directory and I was trying to Upgrade MySQL, Php, and apache Previous Versions were:php: 4.3.9
    mysql: 4.1.20
    Apache: Apache v2.0.52
    Running Centos 4.5 updated php to 4.2.5 and mysql to 5.0.54
    anything else you need?
    Thanks

  5. Andy says:

    mod_access does not exist in Apache 2.2.
    Therefore you are using an incorrect .conf file or more likely, you have coped all of the old modules from the old config file into the new one that you just renamed.

    If you did do that, then a lot of the old modules do not work.

    Instead, the Apache 2.2 config file uses modules like:

    LoadModule auth_basic_module modules/mod_auth_basic.so

    you did back up the new conf file before you changed it didnt you?! 😉

    Let me know what you have done fully and I can help 🙂

  6. Joe says:

    Yes, I have three of them, because my apache was crashing last week, I had my host weak it, so I have a old client on that was on the old apache, and then I had the rpm.saved file, and then the current new one. I looked at all of them and none of them had the LoadModule auth_basic_module modules/mod_auth_basic.so so I dont get where to go from here then what do you do you recommend?

  7. Joe says:

    If there is a way I could contact you I could let you see for your self. If apache is running would the phpinfo file still work?

  8. Andy says:

    ok. well this form wouldnt let me add html.
    please google 'php info' and create a phpinfo file and upload it to your site.

    then post the URl (adn other information requested) but do it as plain text with spaces to avoid the spam detector

  9. Andy says:

    Reposted due to silly spam filter!! (sorry Jason 🙂 )

    Please do a text search, using notepad or similiar in the latest conf file for 'mod_info.so' as I want to find out what conf file you are running.
    if you cant find that text, paste ALL of the modules list from the conf file into your next post.
    The rpm saved file IS the newest conf file....have you renamed you current one to httpd.conf_old and then renamed the rpm save one to httpd.conf?

    Im struggling to work out what conf file you are working on.

    Then create a php info file as per my post above

  10. Andy says:

    yes, phpinfo should work
    I dont really have time to do free problem fixes for other people as my own servers and sites keep me very busy.
    you could email me at mrapcraig 'at' hotmail dot com if you like and I can take a peek and let you know

  11. Cameron says:

    Hi Jason, I get the following error for httpd with sudo yum update:

    ---> Downloading header for apr to pack into transaction set.
    apr-1.2.8-4.jason.1.i386. 100% |=========================| 10 kB 00:00
    ---> Package apr.i386 0:1.2.8-4.jason.1 set to be updated
    ---> Downloading header for httpd to pack into transaction set.
    httpd-2.2.6-jason.2.i386.rpm 66 kB 00:00
    http://www.jasonlitka.com/media/EL5Server/i386/httpd-2.2.6-jason.2.i386.rpm: [Errno -1] Header is not complete.
    Trying other mirror.
    Error: failure: httpd-2.2.6-jason.2.i386.rpm from utterramblings: [Errno 256] No more mirrors to try.

  12. Cameron says:

    nvm works now.

  13. Jason says:

    @Cameron,

    Try hardcoding "EL5" in the utterramblings.repo file. "EL5Server" is actually a redirect.

  14. iDaemon says:

    i was built httpd with your repos now GD and .htaccess doesn't work how can i solve this

  15. Jason says:

    @iDaemon,

    You built it from the src.rpm or you used by binaries? Are you using EL4 or 5, i386 or x86_64? Do you actually have GD installed? How about 'php-gd'?

  16. Jesse says:

    New version of Apache was released: 2.2.8

  17. Jason says:

    @Jesse,

    Yup. I built packages earlier today but there was a minor glitch that caused them to not work correctly on EL4 so I'm rebuilding now. They should be ready in about 15 minutes.

  18. Andy says:

    You are the man Jason 🙂

    I will wait for your confirmation that all is working correctly before Yumming your hard work onto my server!

    Thanks mate

  19. Timo says:

    Wow, thanks guys! This has probably saved me a few hours of work. Cheers!

  20. property abroad says:

    I cant get it to work having problems with my htaccess file

Trackbacks

Check out what others are saying about this post...


This site is no longer updated. If you have a need for RHEL/CentOS LAMP Stack updates outside the normal channels, I recommend ART. https://updates.atomicorp.com/channels/