Tuesday, January 29, 2019

Apache Web Server basic support Questions




  • Start & Stop of Apache web Server
             $  ./apachectl stop
             $  ./apachectl start 

              you may use scripts located at /etc/init.d/ mostly it will be "apache" or "httpd"
             $  /etc/init.d/apache   -start
             $  /etc/init.d/apache   -stop
                                   
                                                     "OR"
             $  /etc/init.d/httpd   -start

             $  /etc/init.d/httpd   -stop


  • Start/stop Apache web server as a OS service
             $ httpd stop
             $ service httpd start

  • Default Ports for Apache
              HTTP/HTTPS   -    80/443

  • How to check version of Apache web server
            $  ./httpd  -v          (in bin folder of installation)
            OR -    rpm -qa | grep httpd

  • How to check listen address of Apache 
          Open httpd.conf file and search for "Listen" string it will tell you the listen IP address and port
          Example :        Listen   10.10.10.10:80
  • Apache Web Server main configuration file
            httpd.conf        

  • How to check Apache web server is running ?
           by checking running process on Unix,    $ ps -aef | grep "httpd"



________________________________________________________________________________










1 comment:

  1. The content was really very interesting. I am really thankful to you for providing this unique information. Please keep sharing more and more information. Dedicated Web Server

    ReplyDelete