Selasa, 26 Maret 2019

How to install apache 2.4.37 form source fedora 27

  Tidak ada komentar
Looking for semanage package name 
[root@itop ~]# yum install -y expat-devel pcre pcre-devel openssl-devel
Last metadata expiration check: 2:53:29 ago on Tue 26 Mar 2019 11:04:52 AM WIB.
Package pcre-8.42-5.fc27.x86_64 is already installed, skipping.
Package openssl-devel-1:1.1.0i-1.fc27.x86_64 is already installed, skipping.
Dependencies resolved.
======================================================================================================================================
 Package                          Arch                        Version                              Repository                    Size
======================================================================================================================================
Installing:
 expat-devel                      x86_64                      2.2.5-1.fc27                         updates                       54 k
 pcre-devel                       x86_64                      8.42-5.fc27                          updates                      550 k
Installing dependencies:
 pcre-cpp                         x86_64                      8.42-5.fc27                          updates                       44 k
 pcre-utf16                       x86_64                      8.42-5.fc27                          updates                      192 k
 pcre-utf32                       x86_64                      8.42-5.fc27                          updates                      183 k

Transaction Summary
======================================================================================================================================
Install  5 Packages

Total download size: 1.0 M
Installed size: 2.7 M
Downloading Packages:
(1/5): pcre-cpp-8.42-5.fc27.x86_64.rpm                                                                396 kB/s |  44 kB     00:00
(2/5): expat-devel-2.2.5-1.fc27.x86_64.rpm                                                            397 kB/s |  54 kB     00:00
(3/5): pcre-utf16-8.42-5.fc27.x86_64.rpm                                                              1.3 MB/s | 192 kB     00:00
(4/5): pcre-utf32-8.42-5.fc27.x86_64.rpm                                                              1.2 MB/s | 183 kB     00:00
(5/5): pcre-devel-8.42-5.fc27.x86_64.rpm                                                              1.7 MB/s | 550 kB     00:00
--------------------------------------------------------------------------------------------------------------------------------------
Total                                                                                                 615 kB/s | 1.0 MB     00:01
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
  Preparing        :                                                                                                              1/1
  Installing       : pcre-utf32-8.42-5.fc27.x86_64                                                                                1/5
  Running scriptlet: pcre-utf32-8.42-5.fc27.x86_64                                                                                1/5
  Installing       : pcre-utf16-8.42-5.fc27.x86_64                                                                                2/5
  Running scriptlet: pcre-utf16-8.42-5.fc27.x86_64                                                                                2/5
  Installing       : pcre-cpp-8.42-5.fc27.x86_64                                                                                  3/5
  Running scriptlet: pcre-cpp-8.42-5.fc27.x86_64                                                                                  3/5
  Installing       : pcre-devel-8.42-5.fc27.x86_64                                                                                4/5
  Installing       : expat-devel-2.2.5-1.fc27.x86_64                                                                              5/5
  Running scriptlet: expat-devel-2.2.5-1.fc27.x86_64                                                                              5/5
Running as unit: run-rf0f7c092ba40491f9e605884994d6995.service
  Verifying        : expat-devel-2.2.5-1.fc27.x86_64                                                                              1/5
  Verifying        : pcre-devel-8.42-5.fc27.x86_64                                                                                2/5
  Verifying        : pcre-cpp-8.42-5.fc27.x86_64                                                                                  3/5
  Verifying        : pcre-utf16-8.42-5.fc27.x86_64                                                                                4/5
  Verifying        : pcre-utf32-8.42-5.fc27.x86_64                                                                                5/5

Installed:
  expat-devel.x86_64 2.2.5-1.fc27    pcre-devel.x86_64 8.42-5.fc27    pcre-cpp.x86_64 8.42-5.fc27    pcre-utf16.x86_64 8.42-5.fc27
  pcre-utf32.x86_64 8.42-5.fc27

Complete!
[root@itop ~]#
Perform package installation

Looking for semanage package name 

[root@itop ~]# yum install python
Last metadata expiration check: 0:56:06 ago on Tue 26 Mar 2019 02:05:04 PM WIB.
Dependencies resolved.
======================================================================================================================================
 Package                               Arch                      Version                             Repository                  Size
======================================================================================================================================
Installing:
 python2                               x86_64                    2.7.15-4.fc27                       updates                    101 k
Installing dependencies:
 python2-libs                          x86_64                    2.7.15-4.fc27                       updates                    6.3 M
 python2-pip                           noarch                    9.0.3-2.fc27                        updates                    2.0 M
 python2-setuptools                    noarch                    37.0.0-2.fc27                       updates                    606 k

Transaction Summary
======================================================================================================================================
Install  4 Packages

Total download size: 9.0 M
Installed size: 36 M
Is this ok [y/N]: y
Downloading Packages:
(1/4): python2-2.7.15-4.fc27.x86_64.rpm                                                               685 kB/s | 101 kB     00:00
(2/4): python2-setuptools-37.0.0-2.fc27.noarch.rpm                                                    2.5 MB/s | 606 kB     00:00
(3/4): python2-pip-9.0.3-2.fc27.noarch.rpm                                                            2.3 MB/s | 2.0 MB     00:00
(4/4): python2-libs-2.7.15-4.fc27.x86_64.rpm                                                          6.8 MB/s | 6.3 MB     00:00
--------------------------------------------------------------------------------------------------------------------------------------
Total                                                                                                 4.5 MB/s | 9.0 MB     00:02
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
  Preparing        :                                                                                                              1/1
  Installing       : python2-libs-2.7.15-4.fc27.x86_64                                                                            1/4
  Running scriptlet: python2-libs-2.7.15-4.fc27.x86_64                                                                            1/4
  Installing       : python2-pip-9.0.3-2.fc27.noarch                                                                              2/4
  Installing       : python2-setuptools-37.0.0-2.fc27.noarch                                                                      3/4
  Installing       : python2-2.7.15-4.fc27.x86_64                                                                                 4/4
  Running scriptlet: python2-2.7.15-4.fc27.x86_64                                                                                 4/4
Running as unit: run-r3e045400996c46ec9e90a9f207e9b8c3.service
  Verifying        : python2-2.7.15-4.fc27.x86_64                                                                                 1/4
  Verifying        : python2-libs-2.7.15-4.fc27.x86_64                                                                            2/4
  Verifying        : python2-pip-9.0.3-2.fc27.noarch                                                                              3/4
  Verifying        : python2-setuptools-37.0.0-2.fc27.noarch                                                                      4/4

Installed:
  python2.x86_64 2.7.15-4.fc27                     python2-libs.x86_64 2.7.15-4.fc27          python2-pip.noarch 9.0.3-2.fc27
  python2-setuptools.noarch 37.0.0-2.fc27

Complete!
[root@itop ~]#
Perform package installation


Looking for semanage package name 

[root@itop ~]# wget https://github.com/apache/httpd/archive/2.4.37.tar.gz -O httpd-2.4.37.tar.gz
--2019-03-26 14:58:12--  https://github.com/apache/httpd/archive/2.4.37.tar.gz
Resolving github.com (github.com)... 13.250.177.223, 52.74.223.119, 13.229.188.59
Connecting to github.com (github.com)|13.250.177.223|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://codeload.github.com/apache/httpd/tar.gz/2.4.37 [following]
--2019-03-26 14:58:13--  https://codeload.github.com/apache/httpd/tar.gz/2.4.37
Resolving codeload.github.com (codeload.github.com)... 13.229.189.0, 13.250.162.133, 54.251.140.56
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: ‘httpd-2.4.37.tar.gz’

httpd-2.4.37.tar.gz                   [              <=>                                           ]  11.26M  4.12MB/s    in 2.7s

2019-03-26 14:58:16 (4.12 MB/s) - ‘httpd-2.4.37.tar.gz’ saved [11812549]

[root@itop ~]#
[root@itop ~]# ls
anaconda-ks.cfg                   index.html           iTop-2.6.0-4294.zip  openlitespeed      README
epel-release-latest-7.noarch.rpm  INSTALL              LICENSE              php-5.6.37         web
httpd-2.4.37.tar.gz               iTop-2.0.2-1476.zip  ols1clk.sh           php-5.6.37.tar.gz
[root@itop ~]#

Perform package installation


Looking for semanage package name 

[root@itop ~]# wget https://github.com/apache/apr/archive/1.6.5.tar.gz -O apr-1.6.5.tar.gz
--2019-03-26 14:58:38--  https://github.com/apache/apr/archive/1.6.5.tar.gz
Resolving github.com (github.com)... 13.250.177.223, 13.229.188.59, 52.74.223.119
Connecting to github.com (github.com)|13.250.177.223|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://codeload.github.com/apache/apr/tar.gz/1.6.5 [following]
--2019-03-26 14:58:38--  https://codeload.github.com/apache/apr/tar.gz/1.6.5
Resolving codeload.github.com (codeload.github.com)... 13.229.189.0, 13.250.162.133, 54.251.140.56
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-1.6.5.tar.gz’

apr-1.6.5.tar.gz                      [ <=>                                                        ] 715.89K  3.68MB/s    in 0.2s

2019-03-26 14:58:39 (3.68 MB/s) - ‘apr-1.6.5.tar.gz’ saved [733069]

[root@itop ~]#
[root@itop ~]# ls
anaconda-ks.cfg                   httpd-2.4.37.tar.gz  iTop-2.0.2-1476.zip  ols1clk.sh     php-5.6.37.tar.gz
apr-1.6.5.tar.gz                  index.html           iTop-2.6.0-4294.zip  openlitespeed  README
epel-release-latest-7.noarch.rpm  INSTALL              LICENSE              php-5.6.37     web
[root@itop ~]#

Perform package installation


Looking for semanage package name 

[root@itop ~]# wget https://github.com/apache/apr-util/archive/1.6.1.tar.gz -O apr-util-1.6.1.tar.gz
--2019-03-26 14:59:16--  https://github.com/apache/apr-util/archive/1.6.1.tar.gz
Resolving github.com (github.com)... 13.229.188.59, 13.250.177.223, 52.74.223.119
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]
--2019-03-26 14:59:17--  https://codeload.github.com/apache/apr-util/tar.gz/1.6.1
Resolving codeload.github.com (codeload.github.com)... 13.229.189.0, 13.250.162.133, 54.251.140.56
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-util-1.6.1.tar.gz’

apr-util-1.6.1.tar.gz                 [ <=>                                                        ] 422.61K  --.-KB/s    in 0.1s

2019-03-26 14:59:17 (3.26 MB/s) - ‘apr-util-1.6.1.tar.gz’ saved [432752]

[root@itop ~]#
[root@itop ~]# ls
anaconda-ks.cfg        epel-release-latest-7.noarch.rpm  INSTALL              LICENSE        php-5.6.37         web
apr-1.6.5.tar.gz       httpd-2.4.37.tar.gz               iTop-2.0.2-1476.zip  ols1clk.sh     php-5.6.37.tar.gz
apr-util-1.6.1.tar.gz  index.html                        iTop-2.6.0-4294.zip  openlitespeed  README
[root@itop ~]#

Perform package installation


Looking for semanage package name 

[root@itop ~]# tar xzf httpd-2.4.37.tar.gz
[root@itop ~]# tar xzf apr-1.6.5.tar.gz
[root@itop ~]# tar xzf apr-util-1.6.1.tar.gz
[root@itop ~]#
Perform package installation


Looking for semanage package name 

[root@itop ~]# ls
anaconda-ks.cfg   apr-util-1.6.1                    httpd-2.4.37         INSTALL              LICENSE        php-5.6.37         web
apr-1.6.5         apr-util-1.6.1.tar.gz             httpd-2.4.37.tar.gz  iTop-2.0.2-1476.zip  ols1clk.sh     php-5.6.37.tar.gz
apr-1.6.5.tar.gz  epel-release-latest-7.noarch.rpm  index.html           iTop-2.6.0-4294.zip  openlitespeed  README
[root@itop ~]#

Perform package installation


Looking for semanage package name 

[root@itop ~]# mv apr-util-1.6.1 httpd-2.4.37/srclib/apr-util
[root@itop ~]#
[root@itop ~]# mv apr-1.6.5 httpd-2.4.37/srclib/apr
[root@itop ~]#
[root@itop ~]# ls
anaconda-ks.cfg        epel-release-latest-7.noarch.rpm  index.html           iTop-2.6.0-4294.zip  openlitespeed      README
apr-1.6.5.tar.gz       httpd-2.4.37                      INSTALL              LICENSE              php-5.6.37         web
apr-util-1.6.1.tar.gz  httpd-2.4.37.tar.gz               iTop-2.0.2-1476.zip  ols1clk.sh           php-5.6.37.tar.gz
[root@itop ~]#
Perform package installation

Looking for semanage package name 


[root@itop ~]# cd httpd-2.4.37/
[root@itop httpd-2.4.37]#
[root@itop httpd-2.4.37]# ls
ABOUT_APACHE     ap.d          CHANGES         emacs-style  INSTALL         libhttpd.mak  NOTICE         README.platforms  support
acinclude.m4     build         CMakeLists.txt  httpd.dep    InstallBin.dsp  LICENSE       NWGNUmakefile  ROADMAP           test
Apache-apr2.dsw  BuildAll.dsp  config.layout   httpd.dsp    LAYOUT          Makefile.in   os             server            VERSIONING
Apache.dsw       BuildBin.dsp  configure.in    httpd.mak    libhttpd.dep    Makefile.win  README         srclib
apache_probes.d  buildconf     docs            include      libhttpd.dsp    modules       README.cmake   STATUS
[root@itop httpd-2.4.37]#

Perform package installation

Looking for semanage package name 



[root@itop httpd-2.4.37]# ./buildconf
found apr source: srclib/apr
found apr-util source: srclib/apr-util
rebuilding srclib/apr/configure
buildconf: checking installation...
buildconf: python version 2.7.15 (ok)
buildconf: autoconf version 2.69 (ok)
buildconf: libtool version 2.4.6 (ok)
buildconf: copying libtool helper files using /usr/bin/libtoolize
buildconf: creating include/arch/unix/apr_private.h.in ...
buildconf: creating configure ...
buildconf: generating 'make' outputs ...
buildconf: rebuilding rpm spec file
rebuilding srclib/apr-util/configure

Looking for apr source in /root/httpd-2.4.37/srclib/apr
Creating include/private/apu_config.h ...
Creating configure ...
Generating 'make' outputs ...
rebuilding rpm spec file
copying build files
rebuilding include/ap_config_auto.h.in
rebuilding configure
rebuilding rpm spec file
fixing timestamps for ap_expr sources
[root@itop httpd-2.4.37]#
Perform package installation

Looking for semanage package name 



[root@itop httpd-2.4.37]# ./configure --prefix=/usr/local/apache2 --enable-so --enable-ssl  --with-included-apr
checking for chosen layout... Apache
checking for working mkdir -p... yes
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/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
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
Configuring APR library
Platform: x86_64-pc-linux-gnu
checking for working mkdir -p... yes
APR Version: 1.6.5
checking for chosen layout... apr
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o

config.status: creating build/pkg/pkginfo
config.status: creating build/config_vars.sh
config.status: creating include/ap_config_auto.h
config.status: executing default commands
configure: summary of build options:

    Server Version: 2.4.37
    Install prefix: /usr/local/apache2
    C compiler:     gcc
    CFLAGS:          -g -O2 -pthread
    CPPFLAGS:        -DLINUX -D_REENTRANT -D_GNU_SOURCE
    LDFLAGS:
    LIBS:
    C preprocessor: gcc -E

[root@itop httpd-2.4.37]#

Perform package installation

Looking for semanage package name 



[root@itop ~]# make

pers -prefer-pic -c mod_rewrite.c && touch mod_rewrite.slo
/root/httpd-2.4.37/srclib/apr/libtool --silent --mode=link gcc  -g -O2 -pthread           -o mod_rewrite.la -rpath /usr/local/apache2/modules -module -avoid-version  mod_rewrite.lo
make[4]: Leaving directory '/root/httpd-2.4.37/modules/mappers'
make[3]: Leaving directory '/root/httpd-2.4.37/modules/mappers'
make[2]: Leaving directory '/root/httpd-2.4.37/modules'
make[2]: Entering directory '/root/httpd-2.4.37/support'
make[2]: Leaving directory '/root/httpd-2.4.37/support'

make[1]: Leaving directory '/root/httpd-2.4.37'
[root@itop httpd-2.4.37]#

Perform package installation

Looking for semanage package name 




[root@itop ~]# make install

mkdir /usr/local/apache2/logs
Installing CGIs
mkdir /usr/local/apache2/cgi-bin
Installing header files
Installing build system files
Installing man pages and online manual
mkdir /usr/local/apache2/man
mkdir /usr/local/apache2/man/man1
mkdir /usr/local/apache2/man/man8
mkdir /usr/local/apache2/manual
make[1]: Leaving directory '/root/httpd-2.4.37'
[root@itop httpd-2.4.37]#

Perform package installation

Looking for semanage package name 





[root@itop httpd-2.4.37]# cd /usr/local/apache2/bin/
[root@itop bin]#
[root@itop bin]# ls
ab         apr-1-config  apxs      dbmmanage  envvars-std  htcacheclean  htdigest  httpd      logresolve
apachectl  apu-1-config  checkgid  envvars    fcgistarter  htdbm         htpasswd  httxt2dbm  rotatelogs
[root@itop bin]#
[root@itop bin]# ln -n httpd /sbin/httpd
[root@itop bin]#
[root@itop bin]# ls -l /sbin/httpd
-rwxr-xr-x. 2 root root 2420376 Mar 26 15:17 /sbin/httpd
[root@itop bin]#
[root@itop bin]# httpd -v
Server version: Apache/2.4.37 (Unix)
Server built:   Mar 26 2019 15:10:22
[root@itop bin]#
[root@itop bin]# cd ~
[root@itop ~]#
[root@itop ~]# httpd -v
Server version: Apache/2.4.37 (Unix)
Server built:   Mar 26 2019 15:10:22
[root@itop ~]#
[root@itop ~]# httpd -V
Server version: Apache/2.4.37 (Unix)
Server built:   Mar 26 2019 15:10:22
Server's Module Magic Number: 20120211:83
Server loaded:  APR 1.6.5, APR-UTIL 1.6.1
Compiled using: APR 1.6.5, APR-UTIL 1.6.1
Architecture:   64-bit
Server MPM:     event
  threaded:     yes (fixed thread count)
    forked:     yes (variable process count)
Server compiled with....
 -D APR_HAS_SENDFILE
 -D APR_HAS_MMAP
 -D APR_HAVE_IPV6 (IPv4-mapped addresses enabled)
 -D APR_USE_SYSVSEM_SERIALIZE
 -D APR_USE_PTHREAD_SERIALIZE
 -D SINGLE_LISTEN_UNSERIALIZED_ACCEPT
 -D APR_HAS_OTHER_CHILD
 -D AP_HAVE_RELIABLE_PIPED_LOGS
 -D DYNAMIC_MODULE_LIMIT=256
 -D HTTPD_ROOT="/usr/local/apache2"
 -D SUEXEC_BIN="/usr/local/apache2/bin/suexec"
 -D DEFAULT_PIDLOG="logs/httpd.pid"
 -D DEFAULT_SCOREBOARD="logs/apache_runtime_status"
 -D DEFAULT_ERRORLOG="logs/error_log"
 -D AP_TYPES_CONFIG_FILE="conf/mime.types"
 -D SERVER_CONFIG_FILE="conf/httpd.conf"
[root@itop ~]#


Perform package installation

Looking for semanage package name 





[root@itop ~]# cd /usr/local/apache2/bin/
[root@itop bin]#
[root@itop bin]# ls
ab         apr-1-config  apxs      dbmmanage  envvars-std  htcacheclean  htdigest  httpd      logresolve
apachectl  apu-1-config  checkgid  envvars    fcgistarter  htdbm         htpasswd  httxt2dbm  rotatelogs
[root@itop bin]#
[root@itop bin]# ln -n apachectl /sbin/apachectl
[root@itop bin]# ls -l /sbin/apachectl
-rwxr-xr-x. 2 root root 3437 Mar 26 15:02 /sbin/apachectl
[root@itop bin]#
[root@itop bin]# apachectl -v
Server version: Apache/2.4.37 (Unix)
Server built:   Mar 26 2019 15:10:22
[root@itop bin]#
[root@itop bin]# cd ~
[root@itop ~]#
[root@itop ~]# apachectl -v
Server version: Apache/2.4.37 (Unix)
Server built:   Mar 26 2019 15:10:22
[root@itop ~]#
[root@itop ~]# apachectl -V
Server version: Apache/2.4.37 (Unix)
Server built:   Mar 26 2019 15:10:22
Server's Module Magic Number: 20120211:83
Server loaded:  APR 1.6.5, APR-UTIL 1.6.1
Compiled using: APR 1.6.5, APR-UTIL 1.6.1
Architecture:   64-bit
Server MPM:     event
  threaded:     yes (fixed thread count)
    forked:     yes (variable process count)
Server compiled with....
 -D APR_HAS_SENDFILE
 -D APR_HAS_MMAP
 -D APR_HAVE_IPV6 (IPv4-mapped addresses enabled)
 -D APR_USE_SYSVSEM_SERIALIZE
 -D APR_USE_PTHREAD_SERIALIZE
 -D SINGLE_LISTEN_UNSERIALIZED_ACCEPT
 -D APR_HAS_OTHER_CHILD
 -D AP_HAVE_RELIABLE_PIPED_LOGS
 -D DYNAMIC_MODULE_LIMIT=256
 -D HTTPD_ROOT="/usr/local/apache2"
 -D SUEXEC_BIN="/usr/local/apache2/bin/suexec"
 -D DEFAULT_PIDLOG="logs/httpd.pid"
 -D DEFAULT_SCOREBOARD="logs/apache_runtime_status"
 -D DEFAULT_ERRORLOG="logs/error_log"
 -D AP_TYPES_CONFIG_FILE="conf/mime.types"
 -D SERVER_CONFIG_FILE="conf/httpd.conf"
[root@itop ~]#
Perform package installation

Looking for semanage package name 






[root@itop ~]#
[root@itop ~]# apachectl start
AH00558: httpd: Could not reliably determine the server's fully qualified domain name, using 36.86.63.182. Set the 'ServerName' directive globally to suppress this message
[root@itop ~]#
[root@itop ~]# curl localhost
<html><body><h1>It works!</h1></body></html>
[root@itop ~]#

Perform package installation

Tidak ada komentar :

Posting Komentar