How to upgrade httpd

Discussion in 'Plesk 6.0 Troubleshooting and Problems' started by Xiongchan, Dec 24, 2003.

  1. Xiongchan

    Xiongchan Guest

    I have httpd2.0.40 under psa6.0.1 and RH9. I want to upgrage httpd2.0.40 to a newer version.
    what should i do?
    3xs
     
  2. mtijssen

    mtijssen Guest

    well what you can do it run up2date from redhat:

    up2date -u (for all updates that are there for you system)

    up2date httpd (for only updating httpd to the latest redhat release)
     
  3. Xiongchan

    Xiongchan Guest

    3xs.
    Will it affect psa6.0.1 or mod_* that httpd used?
     
  4. mtijssen

    mtijssen Guest

    the only thing i had to do after this update was running this:

    cp /usr/sbin/psa-suexec /usr/sbin/suexec

    because otherwise the scripts won't work.

    for the rest everything was still working. ;) but have a search on this board, there are more threads about up2date and httpd
     
  5. Xiongchan

    Xiongchan Guest

    Thank you:) ,i will do it .
     
  6. md3vxx

    md3vxx Mega Poster

    Messages:
    184
    Q.

    Hi,

    I'm trying to decide on updating:

    Name Version Rel
    ----------------------------------------------------------
    httpd 2.0.40 21.9
    httpd-manual 2.0.40 21.9
    mod_ssl 2.0.40 21.9

    But i'm not finding any 'straight' information as to what problems I may have aside from the CGI issue which is easily fixed.

    Has anyone else found anything solid?

    Does mod_ssl have any significant inpact?

    Thanks.
     
  7. Xiongchan

    Xiongchan Guest

    It seems that up2date httpd does not work for me. Below is the result:
    -bash-2.05b# up2date -l

    Fetching package list for channel: redhat-9.0INLDDedStd-i386...
    ########################################

    Fetching Obsoletes list for channel: redhat-9.0INLDDedStd-i386...
    ########################################

    Fetching rpm headers...
    ########################################

    Name Version Rel
    ----------------------------------------------------------
    kernel 2.4.20 20.9.2INLDSmpIPvsDs

    -bash-2.05b# up2date httpd

    Fetching package list for channel: redhat-9.0INLDDedStd-i386...
    ########################################

    Fetching Obsoletes list for channel: redhat-9.0INLDDedStd-i386...
    ########################################

    Fetching rpm headers...
    ########################################

    The following packages you requested are already updated:
    httpd

    the httpd version is still the old. What's wrong

    -bash-2.05b# rpm -qa |grep http
    httpd-2.0.40-21.5.3INLD
    httpd-devel-2.0.40-21.5.3INLD
    httpd-manual-2.0.40-21.5.3INLD

     
  8. Xiongchan

    Xiongchan Guest

    I think i know why up2date did not update my httpd.The update server that i subscribe to have no httpd package,see below:
    -bash-2.05b# up2date --show-orphans //those are not part
    of channels my system is currently sub-
    scribed to.
    comps-9-0.20030313
    courier-imap-1.7.3-31psa.rh9
    gpg-pubkey-db42a60e-37ea5438
    j2sdk-1.4.1_01-fcs
    mod_webapp-4.1.24-2psa.rh9
    psa-6.0.1-rh9.build030723.13
    psa-courier-imap-add-6.0.1-rh9.build030723.13
    psa-locale-6.0.1-rh9.build030723.13
    psa-logrotate-3.6.6-2.rh9
    psa-proftpd-1.2.8-rh9.build031023.13
    psa-proftpd-xinetd-1.2.8-rh9.build031023.13
    psa-qmail-1.03-rh9.build030723.13
    psa-tomcat-configurator-6.0.1-rh9.build030723.13
    tomcat4-4.1.24-full.2jpp
    tomcat4-admin-webapps-4.1.24-full.2jpp
    tomcat4-webapps-4.1.24-full.2jpp

    and
    -bash-2.05b# up2date --show-available |grep httpd
    redhat-config-httpd-1.0.1-18

    so,the channel that i subscribe to does not have httpd package.Then which channel do u use? and how to change the channel?
    3xs
     
  9. Xiongchan

    Xiongchan Guest

    I download the httpd-2.0.40-21.9.i386.rpm from redhat network,and do rpm -Uvh httpd-2.0.40-21.9.i386.rpm,then everything is ok
    thanks all.
     
  10. mtijssen

    mtijssen Guest

    i am using this channel:

    redhat-linux-i386-9

    you can chose that channel within the configprogram of the redhat update configure tool. So what you did run the first time also to configure up2date with your account information.
     
  11. Xiongchan

    Xiongchan Guest

    Thanks for your information. I will switch to this channel.
     
  12. hostcorp

    hostcorp Guest

    Hi,

    In order to upgrade apache, you will need to recompile a few of the modules that are part of the webserver.

    These are:

    - mod_python
    - mod_perl
    - php
    - mod_frontpage

    In order to do this, you will need to download the SRPMs for mod_python, mod_perl and php - Plesk supplies the source for mod_frontpage.

    To do this, first compile your new httpd RPMs (we are using 2.0.48), and make sure you have httpd-devel installed.

    Secondly, rebuild mod_python and mod_perl with the new httpd RPMs installed. This will use the new httpd code and enable these modules to function.

    Thirdly, run the below commands to recompile and install a new frontpage module:

    cd /usr/local/frontpage/version5.0/apache2
    apxs -c mod_frontpage.c mod_fpcgid.c
    apxs -i -a -n frontpage ./mod_frontpage.la

    If you're prepared to wait, I'll release the RPMs I've made from the above to the general public, which will mean no downtime while you recompile the apache modules.
     
  13. hostcorp

    hostcorp Guest

    One last thing, you'll need to fix the suexec binary that apache overwrites when you upgrade it.

    This can be done by running the following command:

    cp -a /usr/sbin/psa-suexec /usr/sbin/suexec

    and say yes to overwriting /usr/sbin/suexec

    If the above steps are not done, frontpage will not work, nor will any cgi scripts that your clients have uploaded.
     
  14. Xiongchan

    Xiongchan Guest

    Maybe if i upgrade to higer version, i need to do the following steps. But what i have upgraded is the same pathed version of httpd from redhat network. It works fine.
    Anyway,thank you.
     

Share This Page