Apache Module Install (Manual)
1. Investigation of Apache/APR version
[root@centos64 modules]# apachectl -V
Server version: Apache/2.2.3
Server built: Jul 18 2016 10:45:28
Server's Module Magic Number: 20051115:3
Server loaded: APR 1.2.7, APR-Util 1.2.7
Compiled using: APR 1.2.7, APR-Util 1.2.7
- Server version: check the
version of Apache/2.2.3
- Server loaded: check the version of
APR 1.2.7, APR-Util 1.2.7
APR version needs to be over 1.2.7
2. Investigation of OS Bit
[root@centos bin]# getconf LONG_BIT
64
3. Upload binary file compatible with Apache/ARP on Apache Application Modules Directory.
- Binary files for each bit environment
[32bit]
mod_kpn-httpd2.2.so
mod_kpn-httpd2.4.so
[64bit]
mod_kpn-httpd2.2.so
mod_kpn-httpd2.4.so
root@centos modules\]# ls -ltr
-rw-r--r--. 1 root root 288073 2017-01-24 17:33 mod_kpn-httpd2.2.so
4. Authorization
[root@centos modules]# chmod 755 mod_kpn-httpd2.2.so
[root@centos modules]# ls -ltr
-rwxr-xr-x. 1 root root 288073 2017-01-24 17:33 mod_kpn-httpd2.2.so
5. Add block pages and kuipernet module setting on Apache setting. (httpd.conf)
[root@centos conf]# vi httpd.conf
Add the lists below on setting file.
Registration of modules
LoadModule kpn_module modules/mod_kpn-httpd2.2.so
Registration of block pages
ErrorDocument 410 http://www.kuipernet.com/images/bg.png
You can make and use blocking messages by yourself with html format.
410 Error Page Registration
The html block images made by yourself can be used by entering the value of ErrorDocument 410 http://Blocking Page.html` of the Apache configuration file(httpd.conf).
6. Syntax Inspection
- You are able to check problems before restarting Apache by Syntax inspection. (Syntax OK : normal)
[root@centos bin]# ./apachectl -t Syntax OK
7. Check SeLinux
- Only for SeLinux
[root@centos conf]# getsebool -a | grep httpd_can_network_connect httpd_can_network_connect --> off httpd_can_network_connect_db --> off
httpd_can_network_connect
--> Change ‘off’ to ‘on’ like below.[root@centos conf]# setsebool httpd_can_network_connect on [root@centos conf]# getsebool -a | grep httpd_can_network_connect httpd_can_network_connect --> on httpd_can_network_connect_db --> off
- httpd\can\network\connect --> changed ‘on’ can be checked.
8. Restart Apache
[root@centos bin]# ./apachectl stop
[root@centos bin]# ./apachectl start
- Because Syntax inspection has been completed in advance , no additional error will happen.