Building Apache 2.2 from source on CentOS

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
0
down vote

favorite












Summary



I am trying to install Apache 2.2 on a AWS Linux AMI, The specific AMI ID is below:



Amazon Linux 2 AMI (HVM), SSD Volume Type - ami-0d1000aff9a9bad89


Since yum does not support anything before Apache 2.4, I need to download my 2.2 version from the Apache website and build it from source.



I also know that since I'm running CentOS I should be installing the 'httpd' version instead of 'apache2'



Part 1: Installing httpd with yum works, but only for Apache 2.4



If I do:



sudo yum install httpd


Everything installs as I would expect:



  • /var/www/html directory is created

  • /etc/httpd/conf/httpd.conf is

  • created I can run 'sudo service start httpd'

  • I am able to deploy my application

  • However, it installs Apache 2.4

Part 2: Download Apache 2.2 and building from source does not work as I'd expect



Since I have this requirement that I must run a 2.2 version of Apache, I download it to the instance and build from source using the commands below:



sudo wget https://archive.apache.org/dist/httpd/httpd-2.2.29.tar.gz
tar -zxf httpd-2.2.29.tar.gz
./configure
Make
sudo Make install


After I run the above commands and build from source:



  • There is no /var/www/html directory created

  • There is no /etc/httpd directory created

  • I get the message below:


'Failed to start httpd.service: Unit not found.'




when running 'sudo service httpd start'



My Questions



Does anyone have a link to a proper source package of Apache 2.2 for CentOS, and if so are there any special instructions I'm missing ?



Side Note: I am aware I can copy things around and manually alter the conf file, the reason I believe something is awry is because I cannot run 'httpd' commands with the 2.2 version.









share







New contributor




Joe is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.























    up vote
    0
    down vote

    favorite












    Summary



    I am trying to install Apache 2.2 on a AWS Linux AMI, The specific AMI ID is below:



    Amazon Linux 2 AMI (HVM), SSD Volume Type - ami-0d1000aff9a9bad89


    Since yum does not support anything before Apache 2.4, I need to download my 2.2 version from the Apache website and build it from source.



    I also know that since I'm running CentOS I should be installing the 'httpd' version instead of 'apache2'



    Part 1: Installing httpd with yum works, but only for Apache 2.4



    If I do:



    sudo yum install httpd


    Everything installs as I would expect:



    • /var/www/html directory is created

    • /etc/httpd/conf/httpd.conf is

    • created I can run 'sudo service start httpd'

    • I am able to deploy my application

    • However, it installs Apache 2.4

    Part 2: Download Apache 2.2 and building from source does not work as I'd expect



    Since I have this requirement that I must run a 2.2 version of Apache, I download it to the instance and build from source using the commands below:



    sudo wget https://archive.apache.org/dist/httpd/httpd-2.2.29.tar.gz
    tar -zxf httpd-2.2.29.tar.gz
    ./configure
    Make
    sudo Make install


    After I run the above commands and build from source:



    • There is no /var/www/html directory created

    • There is no /etc/httpd directory created

    • I get the message below:


    'Failed to start httpd.service: Unit not found.'




    when running 'sudo service httpd start'



    My Questions



    Does anyone have a link to a proper source package of Apache 2.2 for CentOS, and if so are there any special instructions I'm missing ?



    Side Note: I am aware I can copy things around and manually alter the conf file, the reason I believe something is awry is because I cannot run 'httpd' commands with the 2.2 version.









    share







    New contributor




    Joe is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
    Check out our Code of Conduct.





















      up vote
      0
      down vote

      favorite









      up vote
      0
      down vote

      favorite











      Summary



      I am trying to install Apache 2.2 on a AWS Linux AMI, The specific AMI ID is below:



      Amazon Linux 2 AMI (HVM), SSD Volume Type - ami-0d1000aff9a9bad89


      Since yum does not support anything before Apache 2.4, I need to download my 2.2 version from the Apache website and build it from source.



      I also know that since I'm running CentOS I should be installing the 'httpd' version instead of 'apache2'



      Part 1: Installing httpd with yum works, but only for Apache 2.4



      If I do:



      sudo yum install httpd


      Everything installs as I would expect:



      • /var/www/html directory is created

      • /etc/httpd/conf/httpd.conf is

      • created I can run 'sudo service start httpd'

      • I am able to deploy my application

      • However, it installs Apache 2.4

      Part 2: Download Apache 2.2 and building from source does not work as I'd expect



      Since I have this requirement that I must run a 2.2 version of Apache, I download it to the instance and build from source using the commands below:



      sudo wget https://archive.apache.org/dist/httpd/httpd-2.2.29.tar.gz
      tar -zxf httpd-2.2.29.tar.gz
      ./configure
      Make
      sudo Make install


      After I run the above commands and build from source:



      • There is no /var/www/html directory created

      • There is no /etc/httpd directory created

      • I get the message below:


      'Failed to start httpd.service: Unit not found.'




      when running 'sudo service httpd start'



      My Questions



      Does anyone have a link to a proper source package of Apache 2.2 for CentOS, and if so are there any special instructions I'm missing ?



      Side Note: I am aware I can copy things around and manually alter the conf file, the reason I believe something is awry is because I cannot run 'httpd' commands with the 2.2 version.









      share







      New contributor




      Joe is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.











      Summary



      I am trying to install Apache 2.2 on a AWS Linux AMI, The specific AMI ID is below:



      Amazon Linux 2 AMI (HVM), SSD Volume Type - ami-0d1000aff9a9bad89


      Since yum does not support anything before Apache 2.4, I need to download my 2.2 version from the Apache website and build it from source.



      I also know that since I'm running CentOS I should be installing the 'httpd' version instead of 'apache2'



      Part 1: Installing httpd with yum works, but only for Apache 2.4



      If I do:



      sudo yum install httpd


      Everything installs as I would expect:



      • /var/www/html directory is created

      • /etc/httpd/conf/httpd.conf is

      • created I can run 'sudo service start httpd'

      • I am able to deploy my application

      • However, it installs Apache 2.4

      Part 2: Download Apache 2.2 and building from source does not work as I'd expect



      Since I have this requirement that I must run a 2.2 version of Apache, I download it to the instance and build from source using the commands below:



      sudo wget https://archive.apache.org/dist/httpd/httpd-2.2.29.tar.gz
      tar -zxf httpd-2.2.29.tar.gz
      ./configure
      Make
      sudo Make install


      After I run the above commands and build from source:



      • There is no /var/www/html directory created

      • There is no /etc/httpd directory created

      • I get the message below:


      'Failed to start httpd.service: Unit not found.'




      when running 'sudo service httpd start'



      My Questions



      Does anyone have a link to a proper source package of Apache 2.2 for CentOS, and if so are there any special instructions I'm missing ?



      Side Note: I am aware I can copy things around and manually alter the conf file, the reason I believe something is awry is because I cannot run 'httpd' commands with the 2.2 version.







      shell centos apache-httpd php





      share







      New contributor




      Joe is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.










      share







      New contributor




      Joe is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.








      share



      share






      New contributor




      Joe is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.









      asked 1 min ago









      Joe

      1




      1




      New contributor




      Joe is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.





      New contributor





      Joe is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.






      Joe is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.

























          active

          oldest

          votes











          Your Answer







          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "106"
          ;
          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: false,
          noModals: false,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: null,
          bindNavPrevention: true,
          postfix: "",
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );






          Joe is a new contributor. Be nice, and check out our Code of Conduct.









           

          draft saved


          draft discarded


















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f478030%2fbuilding-apache-2-2-from-source-on-centos%23new-answer', 'question_page');

          );

          Post as a guest



































          active

          oldest

          votes













          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes








          Joe is a new contributor. Be nice, and check out our Code of Conduct.









           

          draft saved


          draft discarded


















          Joe is a new contributor. Be nice, and check out our Code of Conduct.












          Joe is a new contributor. Be nice, and check out our Code of Conduct.











          Joe is a new contributor. Be nice, and check out our Code of Conduct.













           


          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f478030%2fbuilding-apache-2-2-from-source-on-centos%23new-answer', 'question_page');

          );

          Post as a guest













































































          Popular posts from this blog

          How to check contact read email or not when send email to Individual?

          Bahrain

          Postfix configuration issue with fips on centos 7; mailgun relay