Apache Module Install (Auto)


  • Download module on www.kuipernet.com

1. After uploading kpnsetup.tar, decompressed it

Upload kpnsetup.tar file on the target server of Kuipernet and decompress the uploaded kpnsetup.tar file.

[root@centos kpnsetup]# tar -xvf kpnsetup.tar

2. Execute script

After decompressing, move to the directory where you decompressed.

[root@centos kpnsetup]# cd /usr/local/src/kpnsetup

Execute script file on the directory

[root@centos kpnsetup]# ./setup.sh

3. Proceed installation of script

If there are more than two versions of Apache registered on the server, and if it differs from the usual path of Apache installation due to package or compile installation, you will need to enter it manually in the script.

  • Example of installation (in case of differing from the information the scirpt has)

    root@Ast:/home/kpnsetup# ./setup.sh

    1. OS INFOMATION (output:represent information of OS after checking it.) OS CHECK : Linux CHECK LINUX : Unknown Linux CHECK OS BIT : x86_64 (64 bit) SELINUX : Unused

      ==================================================================

      2.Apache Package installation PATH list (output: Find the path of Apache installed in package.)

      Package Apache PATH :/etc/apache2 (output: found package Apache path)

      Apache installation Count:1 (output: the quantity of found package Apache path)

==================================================================
3.Apache Package installation Apachectl PATH list (output: find the installed Apachectl )
==================================================================
/usr/sbin/apachectl
/usr/sbin/apache2ctl
------------------------------------------------------------------
Apachectl Count 2 (output: the quantity of Apachectl that has found) 
(If more than one, enter the path to Apachectl)
==================================================================
4.Apache Package installation Version Check List (output: check the version of the installed Apache.)
==================================================================
/usr/sbin/apachectl: Server version: Apache/2.2.22 (Ubuntu) CHECK Apache Version    : 2.2
/usr/sbin/apache2ctl: Server version: Apache/2.2.22 (Ubuntu) CHECK Apache Version    : 2.2
------------------------------------------------------------------
Version Count: 2 (output: the version of the installed Apache that has been found)


==================================================================
5.Apache Package installation APR VERSION Check list (output : check the version of apr by using Apachecectl)
==================================================================
/usr/sbin/apachectl Server loaded:    APR 1.4.6, APR-Util 1.3.12
/usr/sbin/apachectl=1.4.6
/usr/sbin/apache2ctl Server loaded:    APR 1.4.6, APR-Util 1.3.12
/usr/sbin/apache2ctl=1.4.6
------------------------------------------------------------------
APR Version Count: 2 (output: the quantity of the version of apr that has been found)


==================================================================
6.Apache Package installation Config File Check list (output: find  Apahce config )
==================================================================
------------------------------------------------------------------
Apache Config File Count: 0 (output: it represent that it is not able to find the case in which count is ‘0’.


==================================================================
7.Apache Package installation Modules PATH Check List
==================================================================
Apache WEB Config : /usr/lib/apache2/modules (output: find path of Apach module.)
------------------------------------------------------------------
Apache Modules PATH Count: 1 (output: the quantity of path of module that has been found)
==================================================================
8.Apache Package installation eXtension(apxs) Check list (output: find apxs.)
==================================================================
------------------------------------------------------------------
Apache eXtension Count: 0 (output: it represent that it is not able to find the case in which count is ‘0’.)
There are serveral Package Apachectl installed on the server Manual installation Start
==================================================================
9-1. Enter the Path to Apache (output: enter the information in person if it is different from path that script has.)
Sample : /usr/local/apache    
==================================================================
/etc/apache2 (output: path of installation of Apache ) Found the Path
User Input Apache Path: /etc/apache2
------------------------------------------------------------------


==================================================================
9-2. Found Apachectl File Path
==================================================================
***apachectl File not found***
***Enter The Path to apachectl File***
***Sample: /usr/local/apache/bin/apachectl***
/usr/sbin/apachectl (output: path of  Apachectl that is being used.) Found the File
------------------------------------------------------------------
Found the File:/usr/sbin/apachectl


==================================================================
9-3. Apache Version Check
==================================================================
Version Checked
------------------------------------------------------------------
Apache Version: 2.2 (ouput: it is Apach version that is checked by utilizing Apachect1 you enter in person.)


==================================================================
9-4. Apache APR Version Check
==================================================================
Version Checked
------------------------------------------------------------------
Apache APR Version:    Server loaded:    APR 1.4.6, APR-Util 1.3.12 (ouput: it is apr version that is checked by utilizing Apachect1 you enter in person.)


==================================================================
9-5. Apache Config Check
==================================================================
***Not found WEB config Diretory!***
***Sample: /usr/local/apache/conf***
***Input WEB config PATH:***
/etc/apache2 (input: in case that path of information that script has is different from the information server has, enter the location of Apache setting file in person.)
Found the WEB config Dirtory
------------------------------------------------------------------
Apache Conifg Path : /etc/apache2


==================================================================
9-6. Apache modules Path Check
==================================================================
***Not found WEB modules Dirtory!***
***Sample: /usr/local/apache/modules***
***Input WEB modules PATH:****
/etc/apache2 (in case that path of information that script has is different from the information server has, enter the location of Apache module path in person.)
Found the Apache modules path
------------------------------------------------------------------
Apache Modules Path : /etc/apache2


==================================================================
9-7. Apache eXtenSion Path
==================================================================
***Not found apxs***
***Sample: /usr/local/apache/bin/apxs***
***Input Apache extension Tool PATH:***
/usr/bin/apxs2 (input: in case that the path and name of apxs that script owns are different, enter them in person.)
Found the Apache extension path!
------------------------------------------------------------------
Apache eXtenSion path: /usr/bin/apxs2


==================================================================
9-8. Apache Config Backup (output: Back up the Apach setting file that has been found before modifying it.)
=================================================================
Found the File
------------------------------------------------------------------
Complete backup of Apache config file: /etc/apache2/apache2.conf


==================================================================
9-9. Kuipernet modules install (output: install Kuipernet module on path of Apache module that has been found.)  
==================================================================
/usr/share/apache2/build/instdso.sh SH_LIBTOOL='/usr/share/apr-1
.0/build/libtool' mod_kpn-httpd2.2_64.so /usr/lib/apache2/module s
chmod 644 /usr/lib/apache2/modules/mod_kpn-httpd2.2_64.so [preparing module `kpn' in /etc/apache2/mods-available/kpn.load] libtool: install: `restart' is not a directory
libtool: install: Try `libtool --help --mode=install' for more i nformation.
------------------------------------------------------------------
Completed addition of Kuiernet module


9-10. Start Aapache Syntax Check
==================================================================
Syntax OK (output: check if the module installed in script through Syntax inspection is registered properly.)


------------------------------------------------------------------
Completed Apache Syntax


******************************************************************
Thank you, kuipernet is installed graceful restart the Apache Web Server
==================================================================
kuipernet Environment Check
==================================================================

1) Kuipernet Master Server Network Check (output: check if port for communication with master server is open.)
==================================================================
Kuipernet Master Server Successful Network Check: Connection to host.kuipernet.co.kr 17099 port [tcp/*] succeeded!
------------------------------------------------------------------

2)Kuipernet WEB Server Network Check (output: check if port for communication with homepage server is open.)
==================================================================
Kuipernet WEB Server Successful Network Check: Connection to www
.kuipernet.co.kr 80 port [tcp/http] succeeded!
------------------------------------------------------------------

3)System File open Quantity (output: check the quantity of files that have been open.)
==================================================================
open files    (-n) 1024
------------------------------------------------------------------
  • Recommendation

    The maximum number of open files more than 1024 is recommend.

If no error message is displayed, the normal installation is completed.

4. Checking the registeration of blocked pages

Enter the block page so that you can see the block message in the Apache setting file.

[root@centos conf]# vi httpd.conf
  • Check the item below in the setting file.
* Check the registeration of blocked pages
ErrorDocument 410 http://www.kuipernet.com/images/bg.png

5. Restart Apache

  • Use the command "graceful" to restart the running server so that it does not interfere with session management.
    [root@centos bin]# ./apachectl graceful
    

6. check if the module loaded properly.

Check if the module has been installed properly by utilizing Apache command.

root@Ast:/home/kpnsetup# /usr/sbin/apachectl -M 
Loaded Modules:
core_module (static)
...
`kpn_module (shared)    (proper registeration of module) 
Syntax OK

7. Check SeLinux

  • Only for the server which SELinux is enabled

    [root@centos conf]# getsebool -a | grep httpd_can_network_co nnect
    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_co nnect
    httpd_can_network_connect --> on 
    httpd_can_network_connect_db --> off
    
  • httpd\can\network\connect --> changed ‘on’ can be checked.

  • Because Syntax inspection has been completed in advance , no additional error will happen.

results matching ""

    No results matching ""