Minggu, 17 Januari 2021

How to install apache 2.4.46 from source on centos 7

  Tidak ada komentar

Download apache source

[root@147 ~]# wget https://github.com/apache/httpd/archive/2.4.46.tar.gz -O httpd-2.4.46.tar.gz
--2021-01-17 10:30:53--  https://github.com/apache/httpd/archive/2.4.46.tar.gz
Resolving github.com (github.com)... 13.229.188.59
Connecting to github.com (github.com)|13.229.188.59|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://codeload.github.com/apache/httpd/tar.gz/2.4.46 [following]
--2021-01-17 10:30:53--  https://codeload.github.com/apache/httpd/tar.gz/2.4.46
Resolving codeload.github.com (codeload.github.com)... 54.251.140.56
Connecting to codeload.github.com (codeload.github.com)|54.251.140.56|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [application/x-gzip]
Saving to: ‘httpd-2.4.46.tar.gz’

    [         <=>                                                                             ] 12,007,558  7.02MB/s   in 1.6s

2021-01-17 10:30:55 (7.02 MB/s) - ‘httpd-2.4.46.tar.gz’ saved [12007558]

[root@147 ~]#

Download Apr

[root@147 ~]# wget https://github.com/apache/apr/archive/1.7.0.tar.gz -O apr-1.7.0.tar.gz
--2021-01-17 10:31:55--  https://github.com/apache/apr/archive/1.7.0.tar.gz
Resolving github.com (github.com)... 52.74.223.119
Connecting to github.com (github.com)|52.74.223.119|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://codeload.github.com/apache/apr/tar.gz/1.7.0 [following]
--2021-01-17 10:31:55--  https://codeload.github.com/apache/apr/tar.gz/1.7.0
Resolving codeload.github.com (codeload.github.com)... 13.250.162.133
Connecting to codeload.github.com (codeload.github.com)|13.250.162.133|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [application/x-gzip]
Saving to: ‘apr-1.7.0.tar.gz’

    [ <=>                                                                                     ] 751,416     --.-K/s   in 0.1s

2021-01-17 10:31:56 (5.48 MB/s) - ‘apr-1.7.0.tar.gz’ saved [751416]

[root@147 ~]#

Download Apr Utils

[root@147 ~]# wget https://github.com/apache/apr-util/archive/1.6.1.tar.gz -O apr-utils-1.6.1.tar.gz
--2021-01-17 10:32:33--  https://github.com/apache/apr-util/archive/1.6.1.tar.gz
Resolving github.com (github.com)... 13.229.188.59
Connecting to github.com (github.com)|13.229.188.59|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://codeload.github.com/apache/apr-util/tar.gz/1.6.1 [following]
--2021-01-17 10:32:33--  https://codeload.github.com/apache/apr-util/tar.gz/1.6.1
Resolving codeload.github.com (codeload.github.com)... 13.229.189.0
Connecting to codeload.github.com (codeload.github.com)|13.229.189.0|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [application/x-gzip]
Saving to: ‘apr-utils-1.6.1.tar.gz’

    [ <=>                                                                                     ] 432,752     --.-K/s   in 0.09s

2021-01-17 10:32:34 (4.50 MB/s) - ‘apr-utils-1.6.1.tar.gz’ saved [432752]

[root@147 ~]#
Configure the apache 
[root@147 httpd-2.4.46]# ./configure --prefix=/usr/local/apache2 --enable-mpms-shared=all --with-mpm=event --enable-mods-shared=all --with-ssl=/usr/local/ssl111 --enable-ssl --with-nghttp2=/usr/local/nghttp2 --enable-http2 --with-included-apr --enable-so
checking for chosen layout... Apache
checking for working mkdir -p... yes
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking target system type... x86_64-pc-linux-gnu
configure:
configure: Configuring Apache Portable Runtime library...
configure:
configuring package in srclib/apr now

Fastcgi buffer will store responses up to 4K+64*4K=260K in memory.

Tidak ada komentar :

Posting Komentar