How to upgrade apache 2.2.15 to apache 2.4.12 on CentOS 6.6?











up vote
3
down vote

favorite












I tried ,but didn't work for me.



Apache 2.4 on CentOS 6.6:



Step 1:



cd /etc/yum.repos.d/
wget http://repos.fedorapeople.org/repos/jkaluza/httpd24/epel-httpd24.repo


Step 2:



yum install httpd24.x86_64


Step 3:



$ /opt/rh/httpd24/root/usr/sbin/httpd -version
Server version: Apache/2.4.6 (Red Hat)
Server built: Sep 25 2013 05:25:46
NOTE: config files are in: /opt/rh/httpd24/root/etc/httpd

$ ls
conf conf.d conf.modules.d logs modules run
EDIT: in case you want to switch off Apache 2.2

$ chkconfig httpd off
$ chkconfig --list | grep httpd
httpd 0:off 1:off 2:off 3:off 4:off 5:off 6:off
httpd24-httpd 0:off 1:off 2:off 3:off 4:off 5:off 6:off
EDIT 2: http://wiki.apache.org/httpd/PHP-FPM

yum install php-fpm
/etc/init.d/php-fpm start


Does any body knows the solutions, please let me know.










share|improve this question




























    up vote
    3
    down vote

    favorite












    I tried ,but didn't work for me.



    Apache 2.4 on CentOS 6.6:



    Step 1:



    cd /etc/yum.repos.d/
    wget http://repos.fedorapeople.org/repos/jkaluza/httpd24/epel-httpd24.repo


    Step 2:



    yum install httpd24.x86_64


    Step 3:



    $ /opt/rh/httpd24/root/usr/sbin/httpd -version
    Server version: Apache/2.4.6 (Red Hat)
    Server built: Sep 25 2013 05:25:46
    NOTE: config files are in: /opt/rh/httpd24/root/etc/httpd

    $ ls
    conf conf.d conf.modules.d logs modules run
    EDIT: in case you want to switch off Apache 2.2

    $ chkconfig httpd off
    $ chkconfig --list | grep httpd
    httpd 0:off 1:off 2:off 3:off 4:off 5:off 6:off
    httpd24-httpd 0:off 1:off 2:off 3:off 4:off 5:off 6:off
    EDIT 2: http://wiki.apache.org/httpd/PHP-FPM

    yum install php-fpm
    /etc/init.d/php-fpm start


    Does any body knows the solutions, please let me know.










    share|improve this question


























      up vote
      3
      down vote

      favorite









      up vote
      3
      down vote

      favorite











      I tried ,but didn't work for me.



      Apache 2.4 on CentOS 6.6:



      Step 1:



      cd /etc/yum.repos.d/
      wget http://repos.fedorapeople.org/repos/jkaluza/httpd24/epel-httpd24.repo


      Step 2:



      yum install httpd24.x86_64


      Step 3:



      $ /opt/rh/httpd24/root/usr/sbin/httpd -version
      Server version: Apache/2.4.6 (Red Hat)
      Server built: Sep 25 2013 05:25:46
      NOTE: config files are in: /opt/rh/httpd24/root/etc/httpd

      $ ls
      conf conf.d conf.modules.d logs modules run
      EDIT: in case you want to switch off Apache 2.2

      $ chkconfig httpd off
      $ chkconfig --list | grep httpd
      httpd 0:off 1:off 2:off 3:off 4:off 5:off 6:off
      httpd24-httpd 0:off 1:off 2:off 3:off 4:off 5:off 6:off
      EDIT 2: http://wiki.apache.org/httpd/PHP-FPM

      yum install php-fpm
      /etc/init.d/php-fpm start


      Does any body knows the solutions, please let me know.










      share|improve this question















      I tried ,but didn't work for me.



      Apache 2.4 on CentOS 6.6:



      Step 1:



      cd /etc/yum.repos.d/
      wget http://repos.fedorapeople.org/repos/jkaluza/httpd24/epel-httpd24.repo


      Step 2:



      yum install httpd24.x86_64


      Step 3:



      $ /opt/rh/httpd24/root/usr/sbin/httpd -version
      Server version: Apache/2.4.6 (Red Hat)
      Server built: Sep 25 2013 05:25:46
      NOTE: config files are in: /opt/rh/httpd24/root/etc/httpd

      $ ls
      conf conf.d conf.modules.d logs modules run
      EDIT: in case you want to switch off Apache 2.2

      $ chkconfig httpd off
      $ chkconfig --list | grep httpd
      httpd 0:off 1:off 2:off 3:off 4:off 5:off 6:off
      httpd24-httpd 0:off 1:off 2:off 3:off 4:off 5:off 6:off
      EDIT 2: http://wiki.apache.org/httpd/PHP-FPM

      yum install php-fpm
      /etc/init.d/php-fpm start


      Does any body knows the solutions, please let me know.







      apache centos






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited May 30 '15 at 12:27









      Unheilig

      11.9k165283




      11.9k165283










      asked May 28 '15 at 7:51









      Irfan Sayyed

      1613




      1613
























          2 Answers
          2






          active

          oldest

          votes

















          up vote
          0
          down vote













          It would be best if you built it yourself from the Apache source code on a CentOS 6.6 system.



          Compiling and Installing Apache 2.4:



          http://httpd.apache.org/docs/current/install.html



          Make note of the configure line during the build so you can make sure it includes all the modules you want (Like mod_ssl...etc..). Details on what is available for the configure line located here http://httpd.apache.org/docs/current/programs/configure.html



          $ CC="pgcc" CFLAGS="-O2" 
          ./configure --prefix=/sw/pkg/apache
          --enable-ldap=shared
          --enable-lua=shared


          If you want your own RPM, create a SPEC file with your own customizations.






          share|improve this answer




























            up vote
            -1
            down vote













            The easiest way is to install the SCL version, as described here:



            https://unix.stackexchange.com/questions/412122/how-to-update-apache-to-2-4-29-using-scl






            share|improve this answer





















            • I'm not sure why this was downvoted. Compiling apache from scratch is very problematic, especially if you want to keep your existing configuration. Using SCL worked perfectly for me, and was very straightforward.
              – CpnCrunch
              Aug 29 at 20:34











            Your Answer






            StackExchange.ifUsing("editor", function () {
            StackExchange.using("externalEditor", function () {
            StackExchange.using("snippets", function () {
            StackExchange.snippets.init();
            });
            });
            }, "code-snippets");

            StackExchange.ready(function() {
            var channelOptions = {
            tags: "".split(" "),
            id: "1"
            };
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function() {
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled) {
            StackExchange.using("snippets", function() {
            createEditor();
            });
            }
            else {
            createEditor();
            }
            });

            function createEditor() {
            StackExchange.prepareEditor({
            heartbeatType: 'answer',
            convertImagesToLinks: true,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: 10,
            bindNavPrevention: true,
            postfix: "",
            imageUploader: {
            brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
            contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
            allowUrls: true
            },
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            });


            }
            });














             

            draft saved


            draft discarded


















            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f30500382%2fhow-to-upgrade-apache-2-2-15-to-apache-2-4-12-on-centos-6-6%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown

























            2 Answers
            2






            active

            oldest

            votes








            2 Answers
            2






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes








            up vote
            0
            down vote













            It would be best if you built it yourself from the Apache source code on a CentOS 6.6 system.



            Compiling and Installing Apache 2.4:



            http://httpd.apache.org/docs/current/install.html



            Make note of the configure line during the build so you can make sure it includes all the modules you want (Like mod_ssl...etc..). Details on what is available for the configure line located here http://httpd.apache.org/docs/current/programs/configure.html



            $ CC="pgcc" CFLAGS="-O2" 
            ./configure --prefix=/sw/pkg/apache
            --enable-ldap=shared
            --enable-lua=shared


            If you want your own RPM, create a SPEC file with your own customizations.






            share|improve this answer

























              up vote
              0
              down vote













              It would be best if you built it yourself from the Apache source code on a CentOS 6.6 system.



              Compiling and Installing Apache 2.4:



              http://httpd.apache.org/docs/current/install.html



              Make note of the configure line during the build so you can make sure it includes all the modules you want (Like mod_ssl...etc..). Details on what is available for the configure line located here http://httpd.apache.org/docs/current/programs/configure.html



              $ CC="pgcc" CFLAGS="-O2" 
              ./configure --prefix=/sw/pkg/apache
              --enable-ldap=shared
              --enable-lua=shared


              If you want your own RPM, create a SPEC file with your own customizations.






              share|improve this answer























                up vote
                0
                down vote










                up vote
                0
                down vote









                It would be best if you built it yourself from the Apache source code on a CentOS 6.6 system.



                Compiling and Installing Apache 2.4:



                http://httpd.apache.org/docs/current/install.html



                Make note of the configure line during the build so you can make sure it includes all the modules you want (Like mod_ssl...etc..). Details on what is available for the configure line located here http://httpd.apache.org/docs/current/programs/configure.html



                $ CC="pgcc" CFLAGS="-O2" 
                ./configure --prefix=/sw/pkg/apache
                --enable-ldap=shared
                --enable-lua=shared


                If you want your own RPM, create a SPEC file with your own customizations.






                share|improve this answer












                It would be best if you built it yourself from the Apache source code on a CentOS 6.6 system.



                Compiling and Installing Apache 2.4:



                http://httpd.apache.org/docs/current/install.html



                Make note of the configure line during the build so you can make sure it includes all the modules you want (Like mod_ssl...etc..). Details on what is available for the configure line located here http://httpd.apache.org/docs/current/programs/configure.html



                $ CC="pgcc" CFLAGS="-O2" 
                ./configure --prefix=/sw/pkg/apache
                --enable-ldap=shared
                --enable-lua=shared


                If you want your own RPM, create a SPEC file with your own customizations.







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Jun 1 '15 at 17:48









                GoinOff

                1,05111229




                1,05111229
























                    up vote
                    -1
                    down vote













                    The easiest way is to install the SCL version, as described here:



                    https://unix.stackexchange.com/questions/412122/how-to-update-apache-to-2-4-29-using-scl






                    share|improve this answer





















                    • I'm not sure why this was downvoted. Compiling apache from scratch is very problematic, especially if you want to keep your existing configuration. Using SCL worked perfectly for me, and was very straightforward.
                      – CpnCrunch
                      Aug 29 at 20:34















                    up vote
                    -1
                    down vote













                    The easiest way is to install the SCL version, as described here:



                    https://unix.stackexchange.com/questions/412122/how-to-update-apache-to-2-4-29-using-scl






                    share|improve this answer





















                    • I'm not sure why this was downvoted. Compiling apache from scratch is very problematic, especially if you want to keep your existing configuration. Using SCL worked perfectly for me, and was very straightforward.
                      – CpnCrunch
                      Aug 29 at 20:34













                    up vote
                    -1
                    down vote










                    up vote
                    -1
                    down vote









                    The easiest way is to install the SCL version, as described here:



                    https://unix.stackexchange.com/questions/412122/how-to-update-apache-to-2-4-29-using-scl






                    share|improve this answer












                    The easiest way is to install the SCL version, as described here:



                    https://unix.stackexchange.com/questions/412122/how-to-update-apache-to-2-4-29-using-scl







                    share|improve this answer












                    share|improve this answer



                    share|improve this answer










                    answered Apr 10 at 20:43









                    CpnCrunch

                    2,4601820




                    2,4601820












                    • I'm not sure why this was downvoted. Compiling apache from scratch is very problematic, especially if you want to keep your existing configuration. Using SCL worked perfectly for me, and was very straightforward.
                      – CpnCrunch
                      Aug 29 at 20:34


















                    • I'm not sure why this was downvoted. Compiling apache from scratch is very problematic, especially if you want to keep your existing configuration. Using SCL worked perfectly for me, and was very straightforward.
                      – CpnCrunch
                      Aug 29 at 20:34
















                    I'm not sure why this was downvoted. Compiling apache from scratch is very problematic, especially if you want to keep your existing configuration. Using SCL worked perfectly for me, and was very straightforward.
                    – CpnCrunch
                    Aug 29 at 20:34




                    I'm not sure why this was downvoted. Compiling apache from scratch is very problematic, especially if you want to keep your existing configuration. Using SCL worked perfectly for me, and was very straightforward.
                    – CpnCrunch
                    Aug 29 at 20:34


















                     

                    draft saved


                    draft discarded



















































                     


                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function () {
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f30500382%2fhow-to-upgrade-apache-2-2-15-to-apache-2-4-12-on-centos-6-6%23new-answer', 'question_page');
                    }
                    );

                    Post as a guest















                    Required, but never shown





















































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown

































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown







                    Popular posts from this blog

                    Bressuire

                    Vorschmack

                    Quarantine