Building Apache 2.2 from source on CentOS
Clash 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.
shell centos apache-httpd php
New contributor
add a comment |Â
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.
shell centos apache-httpd php
New contributor
add a comment |Â
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.
shell centos apache-httpd php
New contributor
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
shell centos apache-httpd php
New contributor
New contributor
New contributor
asked 1 min ago
Joe
1
1
New contributor
New contributor
add a comment |Â
add a comment |Â
active
oldest
votes
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.
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.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
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
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password