ലിനക്സിൽ ഏതൊക്കെ അപ്പാച്ചെ മൊഡ്യൂളുകളാണ് പ്രവർത്തനക്ഷമമാക്കിയത്/ലോഡ് ചെയ്തിരിക്കുന്നത് എന്ന് എങ്ങനെ പരിശോധിക്കാം


ഈ ഗൈഡിൽ, അപ്പാച്ചെ വെബ് സെർവർ ഫ്രണ്ട്-എൻഡിനെക്കുറിച്ചും നിങ്ങളുടെ സെർവറിൽ ഏതൊക്കെ അപ്പാച്ചെ മൊഡ്യൂളുകൾ പ്രവർത്തനക്ഷമമാക്കിയിട്ടുണ്ടെന്ന് എങ്ങനെ ലിസ്റ്റ് ചെയ്യാം അല്ലെങ്കിൽ പരിശോധിക്കാം എന്നതിനെക്കുറിച്ചും ഞങ്ങൾ സംക്ഷിപ്തമായി സംസാരിക്കും.

അപ്പാച്ചെ നിർമ്മിച്ചിരിക്കുന്നത്, മോഡുലാരിറ്റിയുടെ തത്വത്തെ അടിസ്ഥാനമാക്കിയാണ്, ഈ രീതിയിൽ, വെബ് സെർവർ അഡ്മിനിസ്ട്രേറ്റർമാരെ അതിന്റെ പ്രാഥമിക പ്രവർത്തനങ്ങൾ വിപുലീകരിക്കുന്നതിനും അപ്പാച്ചെ പ്രകടനം വർദ്ധിപ്പിക്കുന്നതിനും വ്യത്യസ്ത മൊഡ്യൂളുകൾ ചേർക്കാൻ ഇത് പ്രാപ്തമാക്കുന്നു.

സാധാരണ അപ്പാച്ചെ മൊഡ്യൂളുകളിൽ ചിലത് ഉൾപ്പെടുന്നു:

  1. mod_ssl – അപ്പാച്ചെയ്ക്ക് HTTPS വാഗ്ദാനം ചെയ്യുന്നു.
  2. mod_rewrite – url പാറ്റേണുകൾ സാധാരണ എക്സ്പ്രഷനുകൾ ഉപയോഗിച്ച് പൊരുത്തപ്പെടുത്തുന്നതിനും .htaccess തന്ത്രങ്ങൾ ഉപയോഗിച്ച് സുതാര്യമായ റീഡയറക്uട് നടത്തുന്നതിനും അല്ലെങ്കിൽ ഒരു HTTP സ്റ്റാറ്റസ് കോഡ് പ്രതികരണം പ്രയോഗിക്കുന്നതിനും ഇത് അനുവദിക്കുന്നു.
  3. mod_security - ബ്രൂട്ട് ഫോഴ്uസ് അല്ലെങ്കിൽ DDoS ആക്രമണങ്ങളിൽ നിന്ന് അപ്പാച്ചെയെ പരിരക്ഷിക്കാൻ ഇത് നിങ്ങളെ വാഗ്ദാനം ചെയ്യുന്നു.
  4. mod_status – അപ്പാച്ചെ വെബ് സെർവർ ലോഡും പേജ് സ്റ്റാറ്റിക്സും നിരീക്ഷിക്കാൻ ഇത് നിങ്ങളെ അനുവദിക്കുന്നു.

Linux-ൽ, Apache HTTP സെർവർ ഇന്റർഫേസ് നിയന്ത്രിക്കാൻ apachectl അല്ലെങ്കിൽ apache2ctl കമാൻഡ് ഉപയോഗിക്കുന്നു, ഇത് അപ്പാച്ചെയുടെ ഫ്രണ്ട് എൻഡ് ആണ്.

apache2ctl-നുള്ള ഉപയോഗ വിവരങ്ങൾ നിങ്ങൾക്ക് താഴെ കാണിക്കാം:

$ apache2ctl help
OR
$ apachectl help
Usage: /usr/sbin/httpd [-D name] [-d directory] [-f file]
                       [-C "directive"] [-c "directive"]
                       [-k start|restart|graceful|graceful-stop|stop]
                       [-v] [-V] [-h] [-l] [-L] [-t] [-S]
Options:
  -D name            : define a name for use in  directives
  -d directory       : specify an alternate initial ServerRoot
  -f file            : specify an alternate ServerConfigFile
  -C "directive"     : process directive before reading config files
  -c "directive"     : process directive after reading config files
  -e level           : show startup errors of level (see LogLevel)
  -E file            : log startup errors to file
  -v                 : show version number
  -V                 : show compile settings
  -h                 : list available command line options (this page)
  -l                 : list compiled in modules
  -L                 : list available configuration directives
  -t -D DUMP_VHOSTS  : show parsed settings (currently only vhost settings)
  -S                 : a synonym for -t -D DUMP_VHOSTS
  -t -D DUMP_MODULES : show all loaded modules 
  -M                 : a synonym for -t -D DUMP_MODULES
  -t                 : run syntax check for config files

apache2ctl-ന് സാധ്യമായ രണ്ട് മോഡുകളിൽ പ്രവർത്തിക്കാൻ കഴിയും, ഒരു Sys V init മോഡ്, പാസ്-ത്രൂ മോഡ്. SysV init മോഡിൽ, apache2ctl താഴെയുള്ള ഫോമിൽ ലളിതവും ഒറ്റവാക്കിലുള്ളതുമായ കമാൻഡുകൾ എടുക്കുന്നു:

$ apachectl command
OR
$ apache2ctl command

ഉദാഹരണത്തിന്, Apache ആരംഭിക്കുന്നതിനും അതിന്റെ നില പരിശോധിക്കുന്നതിനും, നിങ്ങൾ ഒരു സാധാരണ ഉപയോക്താവാണെങ്കിൽ, sudo കമാൻഡ് ഉപയോഗിച്ച് റൂട്ട് യൂസർ പ്രത്യേകാവകാശങ്ങളോടെ ഈ രണ്ട് കമാൻഡുകൾ പ്രവർത്തിപ്പിക്കുക:

$ sudo apache2ctl start
$ sudo apache2ctl status
[email  ~ $ sudo apache2ctl start
AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1. Set the 'ServerName' directive globally to suppress this message
httpd (pid 1456) already running
[email  ~ $ sudo apache2ctl status
Apache Server Status for localhost (via 127.0.0.1)

Server Version: Apache/2.4.18 (Ubuntu)
Server MPM: prefork
Server Built: 2016-07-14T12:32:26

-------------------------------------------------------------------------------

Current Time: Tuesday, 15-Nov-2016 11:47:28 IST
Restart Time: Tuesday, 15-Nov-2016 10:21:46 IST
Parent Server Config. Generation: 2
Parent Server MPM Generation: 1
Server uptime: 1 hour 25 minutes 41 seconds
Server load: 0.97 0.94 0.77
Total accesses: 2 - Total Traffic: 3 kB
CPU Usage: u0 s0 cu0 cs0
.000389 requests/sec - 0 B/second - 1536 B/request
1 requests currently being processed, 4 idle workers

__W__...........................................................
................................................................
......................

Scoreboard Key:
"_" Waiting for Connection, "S" Starting up, "R" Reading Request,
"W" Sending Reply, "K" Keepalive (read), "D" DNS Lookup,
"C" Closing connection, "L" Logging, "G" Gracefully finishing,
"I" Idle cleanup of worker, "." Open slot with no current process

പാസ്-ത്രൂ മോഡിൽ പ്രവർത്തിക്കുമ്പോൾ, apache2ctl-ന് എല്ലാ അപ്പാച്ചെ ആർഗ്യുമെന്റുകളും ഇനിപ്പറയുന്ന വാക്യഘടനയിൽ എടുക്കാം:

$ apachectl [apache-argument]
$ apache2ctl [apache-argument]

എല്ലാ അപ്പാച്ചെ ആർഗ്യുമെന്റുകളും ഇനിപ്പറയുന്ന രീതിയിൽ പട്ടികപ്പെടുത്താം:

$ apache2 help    [On Debian based systems]
$ httpd help      [On RHEL based systems]

അതിനാൽ, നിങ്ങളുടെ അപ്പാച്ചെ വെബ് സെർവറിൽ ഏതൊക്കെ മൊഡ്യൂളുകളാണ് പ്രവർത്തനക്ഷമമാക്കിയതെന്ന് പരിശോധിക്കുന്നതിന്, നിങ്ങളുടെ വിതരണത്തിനായി താഴെയുള്ള ബാധകമായ കമാൻഡ് പ്രവർത്തിപ്പിക്കുക, ഇവിടെ -t -D DUMP_MODULES എല്ലാ പ്രവർത്തനക്ഷമമാക്കിയ/ലോഡുചെയ്ത മൊഡ്യൂളുകളും കാണിക്കുന്നതിനുള്ള ഒരു Apache-argument ആണ്. :

---------------  On Debian based systems --------------- 
$ apache2ctl -t -D DUMP_MODULES   
OR 
$ apache2ctl -M
---------------  On RHEL based systems --------------- 
$ apachectl -t -D DUMP_MODULES   
OR 
$ httpd -M
$ apache2ctl -M
 apachectl -M
Loaded Modules:
 core_module (static)
 mpm_prefork_module (static)
 http_module (static)
 so_module (static)
 auth_basic_module (shared)
 auth_digest_module (shared)
 authn_file_module (shared)
 authn_alias_module (shared)
 authn_anon_module (shared)
 authn_dbm_module (shared)
 authn_default_module (shared)
 authz_host_module (shared)
 authz_user_module (shared)
 authz_owner_module (shared)
 authz_groupfile_module (shared)
 authz_dbm_module (shared)
 authz_default_module (shared)
 ldap_module (shared)
 authnz_ldap_module (shared)
 include_module (shared)
....

അത്രയേയുള്ളൂ! ഈ ലളിതമായ ട്യൂട്ടോറിയലിൽ, പ്രവർത്തനക്ഷമമാക്കിയ/ലോഡ് ചെയ്ത അപ്പാച്ചെ മൊഡ്യൂളുകൾ ലിസ്റ്റുചെയ്യുന്നതിന് അപ്പാച്ചെ ഫ്രണ്ട്-എൻഡ് ടൂളുകൾ എങ്ങനെ ഉപയോഗിക്കാമെന്ന് ഞങ്ങൾ വിശദീകരിച്ചു. ഈ ഗൈഡിനെക്കുറിച്ചുള്ള നിങ്ങളുടെ ചോദ്യങ്ങളോ അഭിപ്രായങ്ങളോ ഞങ്ങൾക്ക് അയയ്uക്കുന്നതിന് ചുവടെയുള്ള ഫീഡ്uബാക്ക് ഫോം ഉപയോഗിച്ച് നിങ്ങൾക്ക് ബന്ധപ്പെടാനാകുമെന്ന് ഓർമ്മിക്കുക.