How to install apache httpd on Linux Centos 8
Install httpd with yum install httpd command
[root@analytic ~]# yum install httpd
Last metadata expiration check: 1:12:22 ago on Fri 27 Sep 2019 02:16:23 PM WIB.
Dependencies resolved.
======================================================================================================================================
Package Arch Version Repository Size
======================================================================================================================================
Installing:
httpd x86_64 2.4.37-11.module_el8.0.0+172+85fc1f40 AppStream 1.7 M
Installing dependencies:
apr x86_64 1.6.3-9.el8 AppStream 125 k
apr-util x86_64 1.6.1-6.el8 AppStream 105 k
centos-logos-httpd noarch 80.5-2.el8 AppStream 24 k
httpd-filesystem noarch 2.4.37-11.module_el8.0.0+172+85fc1f40 AppStream 34 k
httpd-tools x86_64 2.4.37-11.module_el8.0.0+172+85fc1f40 AppStream 102 k
mod_http2 x86_64 1.11.3-2.module_el8.0.0+10+abf51267 AppStream 156 k
mailcap noarch 2.1.48-3.el8 BaseOS 39 k
Installing weak dependencies:
apr-util-bdb x86_64 1.6.1-6.el8 AppStream 25 k
apr-util-openssl x86_64 1.6.1-6.el8 AppStream 27 k
Enabling module streams:
httpd 2.4
Transaction Summary
======================================================================================================================================
Install 10 Packages
Total download size: 2.3 M
Installed size: 6.1 M
Is this ok [y/N]: y
Downloading Packages:
(1/10): apr-util-bdb-1.6.1-6.el8.x86_64.rpm 23 kB/s | 25 kB 00:01
(2/10): apr-util-openssl-1.6.1-6.el8.x86_64.rpm 546 kB/s | 27 kB 00:00
(3/10): apr-util-1.6.1-6.el8.x86_64.rpm 95 kB/s | 105 kB 00:01
(4/10): apr-1.6.3-9.el8.x86_64.rpm 111 kB/s | 125 kB 00:01
(5/10): centos-logos-httpd-80.5-2.el8.noarch.rpm 842 kB/s | 24 kB 00:00
(6/10): httpd-filesystem-2.4.37-11.module_el8.0.0+172+85fc1f40.noarch.rpm 1.1 MB/s | 34 kB 00:00
(7/10): httpd-tools-2.4.37-11.module_el8.0.0+172+85fc1f40.x86_64.rpm 1.3 MB/s | 102 kB 00:00
(8/10): mod_http2-1.11.3-2.module_el8.0.0+10+abf51267.x86_64.rpm 1.4 MB/s | 156 kB 00:00
(9/10): mailcap-2.1.48-3.el8.noarch.rpm 77 kB/s | 39 kB 00:00
(10/10): httpd-2.4.37-11.module_el8.0.0+172+85fc1f40.x86_64.rpm 2.4 MB/s | 1.7 MB 00:00
--------------------------------------------------------------------------------------------------------------------------------------
Total 497 kB/s | 2.3 MB 00:04
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
Preparing : 1/1
Installing : apr-1.6.3-9.el8.x86_64 1/10
Running scriptlet: apr-1.6.3-9.el8.x86_64 1/10
Installing : apr-util-bdb-1.6.1-6.el8.x86_64 2/10
Installing : apr-util-openssl-1.6.1-6.el8.x86_64 3/10
Installing : apr-util-1.6.1-6.el8.x86_64 4/10
Running scriptlet: apr-util-1.6.1-6.el8.x86_64 4/10
Installing : httpd-tools-2.4.37-11.module_el8.0.0+172+85fc1f40.x86_64 5/10
Installing : mailcap-2.1.48-3.el8.noarch 6/10
Running scriptlet: httpd-filesystem-2.4.37-11.module_el8.0.0+172+85fc1f40.noarch 7/10
Installing : httpd-filesystem-2.4.37-11.module_el8.0.0+172+85fc1f40.noarch 7/10
Installing : centos-logos-httpd-80.5-2.el8.noarch 8/10
Installing : mod_http2-1.11.3-2.module_el8.0.0+10+abf51267.x86_64 9/10
Installing : httpd-2.4.37-11.module_el8.0.0+172+85fc1f40.x86_64 10/10
Running scriptlet: httpd-2.4.37-11.module_el8.0.0+172+85fc1f40.x86_64 10/10
Verifying : apr-1.6.3-9.el8.x86_64 1/10
Verifying : apr-util-1.6.1-6.el8.x86_64 2/10
Verifying : apr-util-bdb-1.6.1-6.el8.x86_64 3/10
Verifying : apr-util-openssl-1.6.1-6.el8.x86_64 4/10
Verifying : centos-logos-httpd-80.5-2.el8.noarch 5/10
Verifying : httpd-2.4.37-11.module_el8.0.0+172+85fc1f40.x86_64 6/10
Verifying : httpd-filesystem-2.4.37-11.module_el8.0.0+172+85fc1f40.noarch 7/10
Verifying : httpd-tools-2.4.37-11.module_el8.0.0+172+85fc1f40.x86_64 8/10
Verifying : mod_http2-1.11.3-2.module_el8.0.0+10+abf51267.x86_64 9/10
Verifying : mailcap-2.1.48-3.el8.noarch 10/10
Installed:
httpd-2.4.37-11.module_el8.0.0+172+85fc1f40.x86_64 apr-util-bdb-1.6.1-6.el8.x86_64
apr-util-openssl-1.6.1-6.el8.x86_64 apr-1.6.3-9.el8.x86_64
apr-util-1.6.1-6.el8.x86_64 centos-logos-httpd-80.5-2.el8.noarch
httpd-filesystem-2.4.37-11.module_el8.0.0+172+85fc1f40.noarch httpd-tools-2.4.37-11.module_el8.0.0+172+85fc1f40.x86_64
mod_http2-1.11.3-2.module_el8.0.0+10+abf51267.x86_64 mailcap-2.1.48-3.el8.noarch
Complete!
[root@analytic ~]#
Check httpd version and start the service
[root@analytic ~]# httpd -v
Server version: Apache/2.4.37 (centos)
Server built: Jul 30 2019 19:56:12
[root@analytic ~]#
[root@analytic ~]# service httpd restart
Redirecting to /bin/systemctl restart httpd.service
[root@analytic ~]#
[root@analytic ~]# service httpd status
Redirecting to /bin/systemctl status httpd.service
● httpd.service - The Apache HTTP Server
Loaded: loaded (/usr/lib/systemd/system/httpd.service; disabled; vendor preset: disabled)
Drop-In: /usr/lib/systemd/system/httpd.service.d
└─php-fpm.conf
Active: active (running) since Fri 2019-09-27 15:40:27 WIB; 3s ago
Docs: man:httpd.service(8)
Main PID: 18866 (httpd)
Status: "Started, listening on: port 80"
Tasks: 213 (limit: 26213)
Memory: 38.0M
CGroup: /system.slice/httpd.service
├─18866 /usr/sbin/httpd -DFOREGROUND
├─18873 /usr/sbin/httpd -DFOREGROUND
├─18874 /usr/sbin/httpd -DFOREGROUND
├─18875 /usr/sbin/httpd -DFOREGROUND
└─18876 /usr/sbin/httpd -DFOREGROUND
Sep 27 15:40:27 analytic systemd[1]: Starting The Apache HTTP Server...
Sep 27 15:40:27 analytic httpd[18866]: AH00558: httpd: Could not reliably determine the server's fully qualified domain name, using f>
Sep 27 15:40:27 analytic httpd[18866]: Server configured, listening on: port 80
Sep 27 15:40:27 analytic systemd[1]: Started The Apache HTTP Server.
[root@analytic ~]#
Tidak ada komentar :
Posting Komentar