<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>devkuma – Apache</title>
    <link>https://www.devkuma.com/en/tags/apache/</link>
    <image>
      <url>https://www.devkuma.com/en/tags/apache/logo/180x180.jpg</url>
      <title>Apache</title>
      <link>https://www.devkuma.com/en/tags/apache/</link>
    </image>
    <description>Recent content in Apache on devkuma</description>
    <generator>Hugo -- gohugo.io</generator>
    <language>en</language>
    <managingEditor>kc@example.com (kc kim)</managingEditor>
    <webMaster>kc@example.com (kc kim)</webMaster>
    <copyright>The devkuma</copyright>
    
	  <atom:link href="https://www.devkuma.com/en/tags/apache/index.xml" rel="self" type="application/rss+xml" />
    
    
      
        
      
    
    
    <item>
      <title>Apache | Apache Installation</title>
      <link>https://www.devkuma.com/en/docs/apache/install/</link>
      <pubDate>Wed, 13 Nov 2019 23:46:40 +0900</pubDate>
      <author>kc@example.com (kc kim)</author>
      <guid>https://www.devkuma.com/en/docs/apache/install/</guid>
      <description>
        
        
        &lt;p&gt;This section explains how to download and install Apache. It also explains how to start Apache after installation and how to refer to the Apache technical documentation.&lt;/p&gt;

      </description>
      
      <category>Apache</category>
      
      <category>WEB</category>
      
    </item>
    
    <item>
      <title>Apache | Apache Installation | Downloading and Installing Apache</title>
      <link>https://www.devkuma.com/en/docs/apache/download-install/</link>
      <pubDate>Wed, 13 Nov 2019 23:46:40 +0900</pubDate>
      <author>kc@example.com (kc kim)</author>
      <guid>https://www.devkuma.com/en/docs/apache/download-install/</guid>
      <description>
        
        
        &lt;p&gt;This page explains how to download and install Apache. As of November 2019, the latest version is Apache 2.4.41. The installation environment used here is Windows 10 (64-bit).&lt;/p&gt;
&lt;h2 id=&#34;download-apache&#34;&gt;Download Apache&lt;/h2&gt;
&lt;p&gt;Download Apache from the official Apache website.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&#34;http://httpd.apache.org/&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;http://httpd.apache.org/&lt;i class=&#34;fas fa-external-link-alt&#34;&gt;&lt;/i&gt;&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;img src=&#34;https://www.devkuma.com/docs/apache/httpd_apache_org.png&#34; alt=&#34;httpd.apache.org&#34;&gt;&lt;/p&gt;
&lt;p&gt;Click &amp;ldquo;Download&amp;rdquo; in the &amp;ldquo;Apache httpd 2.4.41 Released 2019-08-14&amp;rdquo; block, which is the latest version used in this article.&lt;/p&gt;
&lt;p&gt;&lt;img src=&#34;https://www.devkuma.com/docs/apache/apache_download1.png&#34; alt=&#34;apache_download&#34;&gt;&lt;/p&gt;
&lt;p&gt;Because this article installs Apache on Windows 10 (64-bit), click the link labeled &amp;ldquo;Files for Microsoft Windows&amp;rdquo;.&lt;/p&gt;
&lt;p&gt;&lt;a href=&#34;http://httpd.apache.org/download.cgi#apache24&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;http://httpd.apache.org/download.cgi#apache24&lt;i class=&#34;fas fa-external-link-alt&#34;&gt;&lt;/i&gt;&lt;/a&gt;&lt;br&gt;
&lt;img src=&#34;https://www.devkuma.com/docs/apache/apache_download2.png&#34; alt=&#34;apache_download&#34;&gt;&lt;/p&gt;
&lt;p&gt;If Korean text appears after clicking Files for Microsoft Windows, scroll to the top. You will see a warning that says this document is not the latest translation and that recent changes should be checked in the English document. In that case, click &amp;ldquo;en&amp;rdquo; to display the English version.&lt;/p&gt;
&lt;p&gt;&lt;a href=&#34;http://httpd.apache.org/docs/current/ko/platform/windows.html&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;http://httpd.apache.org/docs/current/ko/platform/windows.html&lt;i class=&#34;fas fa-external-link-alt&#34;&gt;&lt;/i&gt;&lt;/a&gt;&lt;br&gt;
&lt;img src=&#34;https://www.devkuma.com/docs/apache/apache_download3.png&#34; alt=&#34;apache_download&#34;&gt;&lt;/p&gt;
&lt;p&gt;The official Apache site explains that it provides only source code and does not provide Windows binaries. Instead, it introduces several sites that distribute binaries. In this article, click &amp;ldquo;Apache Lounge&amp;rdquo;.&lt;/p&gt;
&lt;p&gt;&lt;a href=&#34;http://httpd.apache.org/docs/current/en/platform/windows.html&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;http://httpd.apache.org/docs/current/en/platform/windows.html&lt;i class=&#34;fas fa-external-link-alt&#34;&gt;&lt;/i&gt;&lt;/a&gt;&lt;br&gt;
&lt;img src=&#34;https://www.devkuma.com/docs/apache/apache_download4.png&#34; alt=&#34;apache_download&#34;&gt;&lt;/p&gt;
&lt;p&gt;The Apache Lounge site is displayed.
&lt;a href=&#34;https://www.apachelounge.com/download/&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;https://www.apachelounge.com/download/&lt;i class=&#34;fas fa-external-link-alt&#34;&gt;&lt;/i&gt;&lt;/a&gt;&lt;br&gt;
&lt;img src=&#34;https://www.devkuma.com/docs/apache/apache_download5.png&#34; alt=&#34;apache_download&#34;&gt;&lt;/p&gt;
&lt;p&gt;Both 32-bit and 64-bit versions are available. Since this article installs Apache in a 64-bit environment, click &amp;ldquo;httpd-2.4.41-win64-VC16.zip&amp;rdquo; under &amp;ldquo;Apache 2.4.41 Win64&amp;rdquo;.&lt;/p&gt;
&lt;p&gt;&lt;img src=&#34;https://www.devkuma.com/docs/apache/apache_download6.png&#34; alt=&#34;apache_download&#34;&gt;&lt;/p&gt;
&lt;p&gt;When the download finishes, save the file in any location. The Apache download is now complete.&lt;/p&gt;
&lt;h2 id=&#34;install-the-visual-c-redistributable-package&#34;&gt;Install the Visual C++ Redistributable Package&lt;/h2&gt;
&lt;p&gt;When running Visual C++ applications built with Visual Studio, the required runtime components must be installed. The Windows Apache binary is also built with Visual Studio, so it requires the runtime.&lt;/p&gt;
&lt;p&gt;The runtime is often already installed for other applications. If it is not installed, an error such as &amp;ldquo;The code execution cannot proceed because VCRUNTIME140.dll was not found. Reinstalling the program may fix this problem.&amp;rdquo; appears.&lt;/p&gt;
&lt;p&gt;&lt;img src=&#34;https://www.devkuma.com/docs/apache/vs_error.png&#34; alt=&#34;&#34;&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&#34;https://visualstudio.microsoft.com/ko/downloads/&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;https://visualstudio.microsoft.com/ko/downloads/&lt;i class=&#34;fas fa-external-link-alt&#34;&gt;&lt;/i&gt;&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Go to the page above and install the Visual C++ runtime. In this article, the runtime for Visual Studio 2019 is required.&lt;/p&gt;
&lt;p&gt;&lt;img src=&#34;https://www.devkuma.com/docs/apache/vs_download.png&#34; alt=&#34;vs_download&#34;&gt;&lt;/p&gt;
&lt;p&gt;The preparation is complete. Next, Apache installation is explained.&lt;/p&gt;
&lt;h2 id=&#34;install-apache&#34;&gt;Install Apache&lt;/h2&gt;
&lt;p&gt;To install Apache, extract the downloaded archive file, &amp;ldquo;httpd-2.4.41-win64-VC16.zip&amp;rdquo;, into an appropriate folder.&lt;/p&gt;
&lt;p&gt;&lt;img src=&#34;https://www.devkuma.com/docs/apache/apache_folder.png&#34; alt=&#34;apache_folder&#34;&gt;&lt;/p&gt;
&lt;p&gt;In this article, it is saved in &amp;ldquo;C:\dev\Apache24&amp;rdquo;.&lt;/p&gt;

      </description>
      
      <category>Apache</category>
      
      <category>WEB</category>
      
    </item>
    
    <item>
      <title>Apache</title>
      <link>https://www.devkuma.com/en/docs/apache/</link>
      <pubDate>Wed, 13 Nov 2019 23:46:40 +0900</pubDate>
      <author>kc@example.com (kc kim)</author>
      <guid>https://www.devkuma.com/en/docs/apache/</guid>
      <description>
        
        
        &lt;p&gt;&lt;img src=&#34;https://www.devkuma.com/docs/apache/apache.png&#34; alt=&#34;Apache&#34;&gt;&lt;/p&gt;
&lt;p&gt;This section explains how to use Apache, one of the most widely used web servers. It walks through the basic usage and configuration methods, including installing Apache in a local environment, publishing a website on the internet with Apache, controlling access, and viewing log files.&lt;/p&gt;

      </description>
      
      <category>Apache</category>
      
      <category>WEB</category>
      
    </item>
    
    <item>
      <title>Apache | Apache Installation | Initial Settings for the Configuration File (http.conf)</title>
      <link>https://www.devkuma.com/en/docs/apache/initial-settings-for-the-configuration-file-http-conf/</link>
      <pubDate>Wed, 13 Nov 2019 23:46:40 +0900</pubDate>
      <author>kc@example.com (kc kim)</author>
      <guid>https://www.devkuma.com/en/docs/apache/initial-settings-for-the-configuration-file-http-conf/</guid>
      <description>
        
        
        &lt;p&gt;Apache is configured in the http.conf file. After installing Apache, you need to update the configuration file to match the installation directory and the port number you use. This page explains the initial settings to perform immediately after installing Apache.&lt;/p&gt;
&lt;h2 id=&#34;change-the-installation-directory&#34;&gt;Change the installation directory&lt;/h2&gt;
&lt;p&gt;The Apache configuration file, http.conf, is located in &amp;ldquo;/Apache24/conf/&amp;rdquo; under the installation directory.&lt;/p&gt;
&lt;p&gt;On macOS, it is located at /etc/apache2/httpd.conf.&lt;/p&gt;
&lt;p&gt;Before editing, make a copy of the http.conf file and keep it as a backup, just in case. If you think this is unnecessary, you can skip it.&lt;/p&gt;
&lt;p&gt;Now edit the http.conf file. Since http.conf is a text file, you can open it in a text editor. For example, Windows Notepad can also edit it.&lt;/p&gt;
&lt;p&gt;First, search for &amp;ldquo;&lt;strong&gt;ServerRoot&lt;/strong&gt;&amp;rdquo; in the file. You will find a section like the following.&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;#
# ServerRoot: The top of the directory tree under which the server&amp;#39;s
# configuration, error, and log files are kept.
#
# Do not add a slash at the end of the directory path.  If you point
# ServerRoot at a non-local disk, be sure to specify a local disk on the
# Mutex directive, if file-based mutexes are used.  If you wish to share the
# same ServerRoot for multiple httpd daemons, you will need to change at
# least PidFile.
#
Define SRVROOT &amp;#34;c:/Apache24&amp;#34;

ServerRoot &amp;#34;${SRVROOT}&amp;#34;
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;Set ServerRoot to the directory of the Apache server. Change the default &amp;ldquo;c:/Apache24&amp;rdquo; value to the directory where Apache is actually installed. More specifically, the installed directory is set in the SRVROOT variable, and ServerRoot uses that SRVROOT variable. In this article, it was changed as follows.&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;Define SRVROOT &amp;#34;C:/apache/Apache24&amp;#34;

ServerRoot &amp;#34;${SRVROOT}&amp;#34;
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;The SRVROOT variable set above is also used in other configuration sections, so the same directory is applied there as well.&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;#
# DocumentRoot: The directory out of which you will serve your
# documents. By default, all requests are taken from this directory, but
# symbolic links and aliases may be used to point to other locations.
#
DocumentRoot &amp;#34;${SRVROOT}/htdocs&amp;#34;

&amp;lt;Directory &amp;#34;${SRVROOT}/htdocs&amp;#34;&amp;gt;

 ...omitted...

&amp;lt;/Directory&amp;gt;
&lt;/code&gt;&lt;/pre&gt;&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;&amp;lt;IfModule alias_module&amp;gt;

 ...omitted...

    #
    # ScriptAlias: This controls which directories contain server scripts. 
    # ScriptAliases are essentially the same as Aliases, except that
    # documents in the target directory are treated as applications and
    # run by the server when requested rather than as documents sent to the
    # client.  The same rules about trailing &amp;#34;/&amp;#34; apply to ScriptAlias
    # directives as to Alias.
    #
    ScriptAlias /cgi-bin/ &amp;#34;${SRVROOT}/cgi-bin/&amp;#34;

&amp;lt;/IfModule&amp;gt;

#
# &amp;#34;${SRVROOT}/cgi-bin&amp;#34; should be changed to whatever your ScriptAliased
# CGI directory exists, if you have that configured.
#
&amp;lt;Directory &amp;#34;${SRVROOT}/cgi-bin&amp;#34;&amp;gt;
    AllowOverride None
    Options None
    Require all granted
&amp;lt;/Directory&amp;gt;
&lt;/code&gt;&lt;/pre&gt;&lt;h2 id=&#34;configure-the-port-number&#34;&gt;Configure the port number&lt;/h2&gt;
&lt;p&gt;Next, check the port number setting. Search for &amp;ldquo;&lt;strong&gt;Listen&lt;/strong&gt;&amp;rdquo; in the file.&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;#
# Listen: Allows you to bind Apache to specific IP addresses and/or
# ports, instead of the default. See also the &amp;lt;VirtualHost&amp;gt;
# directive.
#
# Change this to Listen on specific IP addresses as shown below to 
# prevent Apache from glomming onto all bound IP addresses.
#
#Listen 12.34.56.78:80
Listen 80
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;Listen specifies which port number and IP address Apache listens on. Communication between a web server and a browser generally uses port 80, so port 80 is also set in the default configuration. Usually you do not need to change it, but if multiple web servers run on the same server computer, change this setting so the port numbers do not conflict.&lt;/p&gt;
&lt;h2 id=&#34;configure-servername&#34;&gt;Configure ServerName&lt;/h2&gt;
&lt;p&gt;The last setting is ServerName. Search for &amp;ldquo;&lt;strong&gt;ServerName&lt;/strong&gt;&amp;rdquo; in the configuration file.&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;#
# ServerName gives the name and port that the server uses to identify itself.
# This can often be determined automatically, but we recommend you specify
# it explicitly to prevent problems during startup.
#
# If your host doesn&amp;#39;t have a registered DNS name, enter its IP address here.
#
#ServerName www.example.com:80
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;ServerName sets the host name and port number that identify the server itself. In the initial configuration it is commented out. To set it, specify a host name and port number such as &amp;ldquo;&lt;a href=&#34;https://www.example.com&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;www.example.com&lt;i class=&#34;fas fa-external-link-alt&#34;&gt;&lt;/i&gt;&lt;/a&gt;:80&amp;rdquo;. If you omit the port number, the default port number for server requests, 80, is used.&lt;/p&gt;
&lt;p&gt;In this article, Apache is installed in a local environment, so the &amp;ldquo;#&amp;rdquo; before ServerName was removed and the setting was changed as follows.&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;#
# ServerName gives the name and port that the server uses to identify itself.
# This can often be determined automatically, but we recommend you specify
# it explicitly to prevent problems during startup.
#
# If your host doesn&amp;#39;t have a registered DNS name, enter its IP address here.
#
ServerName localhost:80
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;When you finish editing the configuration file, save it.&lt;/p&gt;

      </description>
      
      <category>Apache</category>
      
      <category>WEB</category>
      
    </item>
    
    <item>
      <title>Apache | Apache Installation | Starting Apache (Console Startup and Service Registration)</title>
      <link>https://www.devkuma.com/en/docs/apache/start-apache-console-startup-and-service-registration/</link>
      <pubDate>Wed, 13 Nov 2019 23:46:40 +0900</pubDate>
      <author>kc@example.com (kc kim)</author>
      <guid>https://www.devkuma.com/en/docs/apache/start-apache-console-startup-and-service-registration/</guid>
      <description>
        
        
        &lt;p&gt;This page explains how to start Apache. In a Windows environment, there are two main ways to start it: manually by using the console application, or automatically by registering and configuring Apache as a Windows service.&lt;/p&gt;
&lt;h2 id=&#34;start-apache-simply&#34;&gt;Start Apache simply&lt;/h2&gt;
&lt;p&gt;First, start Apache from Explorer. The executable file, httpd.exe, is located at &amp;ldquo;(Apache installation directory)\Apache24\bin\httpd.exe&amp;rdquo;.&lt;/p&gt;
&lt;p&gt;To start it, run &amp;ldquo;httpd.exe&amp;rdquo; in the &amp;ldquo;(Apache installation directory)\Apache24\bin&amp;quot; folder as administrator. Apache will start.&lt;/p&gt;
&lt;p&gt;&lt;img src=&#34;https://www.devkuma.com/docs/apache/httpd_exe.png&#34; alt=&#34;httpd.exe&#34;&gt;&lt;/p&gt;
&lt;p&gt;When Apache starts, a console application appears and remains in the following state while it is running.&lt;/p&gt;
&lt;p&gt;&lt;img src=&#34;https://www.devkuma.com/docs/apache/httpd_exe_start.png&#34; alt=&#34;&#34;&gt;&lt;/p&gt;
&lt;p&gt;Now check whether Apache is running. Start a browser and enter &amp;ldquo;http://localhost/&amp;rdquo;. If the following page is displayed, Apache has started successfully.&lt;/p&gt;
&lt;p&gt;&lt;img src=&#34;https://www.devkuma.com/docs/apache/it_works_ok.png&#34; alt=&#34;It works!&#34;&gt;&lt;/p&gt;
&lt;p&gt;If an error page appears saying that the browser cannot connect, Apache failed to start.&lt;/p&gt;
&lt;p&gt;&lt;img src=&#34;https://www.devkuma.com/docs/apache/it_works_fail.png&#34; alt=&#34;It works! Failed&#34;&gt;&lt;/p&gt;
&lt;p&gt;If an error occurs, run httpd.exe from the command prompt. It will display the cause of the error clearly.&lt;/p&gt;
&lt;p&gt;The following occurs when ServerRoot is not set correctly.&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;C:\apache\Apache24\bin&amp;gt;httpd.exe
httpd.exe: Syntax error on line 39 of C:/Apache24/conf/httpd.conf: ServerRoot must be a valid directory
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;The following occurs when ServerName is not set correctly.&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;C:\apache\Apache24\bin&amp;gt;httpd.exe
AH00558: httpd.exe: Could not reliably determine the server&amp;#39;s fully qualified domain name, using fe80::3179:bb2:de42:8a63. Set the &amp;#39;ServerName&amp;#39; directive globally to suppress this message
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;To stop the running Apache process, close the console application. If you started it from the command prompt, press &amp;ldquo;Ctrl + c&amp;rdquo;. When the following is displayed, Apache has stopped.&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;C:\apache\Apache24\bin&amp;gt;httpd.exe

C:\apache\Apache24\bin&amp;gt;
&lt;/code&gt;&lt;/pre&gt;&lt;h2 id=&#34;register-apache-as-a-service&#34;&gt;Register Apache as a service&lt;/h2&gt;
&lt;p&gt;Next, start Apache as a service. First, register it as a service. If Apache is running, stop it. Start Command Prompt as administrator, move to the &amp;ldquo;(Apache installation directory)\Apache24\bin&amp;quot; directory, and run the command &amp;ldquo;httpd -k install&amp;rdquo;.&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;C:\&amp;gt;cd apache\Apache24\bin

C:\apache\Apache24\bin&amp;gt;httpd -k install
Installing the &amp;#39;Apache2.4&amp;#39; service
The &amp;#39;Apache2.4&amp;#39; service is successfully installed.
Testing httpd.conf....
Errors reported here must be corrected before the service can be started.

C:\apache\Apache24\bin&amp;gt;
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;If the output appears as above, registration as a service is complete.&lt;/p&gt;
&lt;p&gt;To confirm that it was registered, open the Services screen in Windows 10. Right-click the Start menu at the bottom-left of the desktop and click &amp;ldquo;Computer Management&amp;rdquo; in the menu that appears.&lt;/p&gt;
&lt;p&gt;&lt;img src=&#34;https://www.devkuma.com/docs/apache/com_mgt.png&#34; alt=&#34;Computer Management&#34;&gt;&lt;/p&gt;
&lt;p&gt;When the &amp;ldquo;Computer Management&amp;rdquo; screen appears, click &amp;ldquo;Services&amp;rdquo; under &amp;ldquo;Services and Applications&amp;rdquo; in the left menu. The list of registered services appears on the right side of the screen, and you can confirm that Apache2.4 is included.&lt;/p&gt;
&lt;p&gt;&lt;img src=&#34;https://www.devkuma.com/docs/apache/com_mgt_svc.png&#34; alt=&#34;Computer Management - Services&#34;&gt;&lt;/p&gt;
&lt;h2 id=&#34;start-apache&#34;&gt;Start Apache&lt;/h2&gt;
&lt;p&gt;Next, start Apache. Run &amp;ldquo;httpd -k start&amp;rdquo; from the command prompt.&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;C:\apache\Apache24\bin&amp;gt;httpd -k start

C:\apache\Apache24\bin&amp;gt;
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;If you check the Services screen, the status of the Apache2.4 service is &amp;ldquo;Running&amp;rdquo;.&lt;/p&gt;
&lt;p&gt;&lt;img src=&#34;https://www.devkuma.com/docs/apache/com_mgt_svc2.png&#34; alt=&#34;Computer Management - Services - Started&#34;&gt;&lt;/p&gt;
&lt;p&gt;To confirm, enter &amp;ldquo;http://localhost/&amp;rdquo; in a browser. If the following page is displayed, Apache has started successfully.&lt;/p&gt;
&lt;p&gt;&lt;img src=&#34;https://www.devkuma.com/docs/apache/it_works_ok.png&#34; alt=&#34;Apache started&#34;&gt;&lt;/p&gt;
&lt;h2 id=&#34;stop-apache&#34;&gt;Stop Apache&lt;/h2&gt;
&lt;p&gt;To stop Apache running as a service from the command prompt, run &amp;ldquo;httpd -k stop&amp;rdquo; or &amp;ldquo;httpd -k shutdown&amp;rdquo;.&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;C:\apache\Apache24\bin&amp;gt;httpd -k stop
The &amp;#39;Apache2.4&amp;#39; service is stopping.
The &amp;#39;Apache2.4&amp;#39; service has stopped.

C:\apache\Apache24\bin&amp;gt;
&lt;/code&gt;&lt;/pre&gt;&lt;h2 id=&#34;restart-apache&#34;&gt;Restart Apache&lt;/h2&gt;
&lt;p&gt;To restart Apache while it is running, run &amp;ldquo;httpd -k restart&amp;rdquo;.&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;C:\apache\Apache24\bin&amp;gt;httpd -k restart

C:\apache\Apache24\bin&amp;gt;
&lt;/code&gt;&lt;/pre&gt;&lt;h2 id=&#34;remove-apache-from-services&#34;&gt;Remove Apache from services&lt;/h2&gt;
&lt;p&gt;To remove Apache registered as a service, run &amp;ldquo;&lt;strong&gt;httpd -k uninstall&lt;/strong&gt;&amp;rdquo;.&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;C:\apache\Apache24\bin&amp;gt;httpd -k uninstall
Removing the &amp;#39;Apache2.4&amp;#39; service
The &amp;#39;Apache2.4&amp;#39; service has been removed successfully.

C:\apache\Apache24\bin&amp;gt;
&lt;/code&gt;&lt;/pre&gt;&lt;h2 id=&#34;configure-how-apache-starts-as-a-service&#34;&gt;Configure how Apache starts as a service&lt;/h2&gt;
&lt;p&gt;If Apache is registered as a service, you can use Windows service management to start Apache or configure it to start automatically when the PC boots. Double-click Apache2.4 on the Services screen.&lt;/p&gt;
&lt;p&gt;&lt;img src=&#34;https://www.devkuma.com/docs/apache/com_mgt_svc3.png&#34; alt=&#34;Computer Management - Services&#34;&gt;&lt;/p&gt;
&lt;p&gt;The properties for the Apache2.4 service are displayed.&lt;/p&gt;
&lt;p&gt;&lt;img src=&#34;https://www.devkuma.com/docs/apache/com_mgt_svc4.png&#34; alt=&#34;Computer Management - Services&#34;&gt;&lt;/p&gt;
&lt;p&gt;&amp;ldquo;Startup type&amp;rdquo; is currently set to &amp;ldquo;Automatic&amp;rdquo;, so Apache also starts automatically when Windows starts. To start Apache manually instead, change &amp;ldquo;Startup type&amp;rdquo; to &amp;ldquo;Manual&amp;rdquo;.&lt;/p&gt;
&lt;p&gt;&lt;img src=&#34;https://www.devkuma.com/docs/apache/com_mgt_svc5.png&#34; alt=&#34;Computer Management - Services&#34;&gt;&lt;/p&gt;
&lt;p&gt;Earlier, Apache was started and stopped from the command prompt, but you can also start or stop Apache by clicking the &amp;ldquo;Start&amp;rdquo;, &amp;ldquo;Stop&amp;rdquo;, &amp;ldquo;Pause&amp;rdquo;, and &amp;ldquo;Restart&amp;rdquo; buttons on this screen.&lt;/p&gt;
&lt;p&gt;&lt;img src=&#34;https://www.devkuma.com/docs/apache/com_mgt_svc6.png&#34; alt=&#34;Computer Management - Services&#34;&gt;&lt;/p&gt;
&lt;p&gt;In this way, Apache startup and shutdown can also be controlled from the service management screen.&lt;/p&gt;

      </description>
      
      <category>Apache</category>
      
      <category>WEB</category>
      
    </item>
    
    <item>
      <title>Apache | Apache Installation | Referring to Apache Documentation</title>
      <link>https://www.devkuma.com/en/docs/apache/referring-to-apache-documentation/</link>
      <pubDate>Wed, 13 Nov 2019 23:46:40 +0900</pubDate>
      <author>kc@example.com (kc kim)</author>
      <guid>https://www.devkuma.com/en/docs/apache/referring-to-apache-documentation/</guid>
      <description>
        
        
        &lt;p&gt;When configuring Apache, the most useful reference is the Apache documentation published on the official site. This page explains how to refer to Apache documentation in Korean and English.&lt;/p&gt;
&lt;h2 id=&#34;refer-to-apache-documentation-written-in-korean&#34;&gt;Refer to Apache documentation written in Korean&lt;/h2&gt;
&lt;p&gt;To view the documentation, access the following URL.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&#34;http://httpd.apache.org/&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;http://httpd.apache.org/&lt;i class=&#34;fas fa-external-link-alt&#34;&gt;&lt;/i&gt;&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;img src=&#34;https://www.devkuma.com/docs/apache/httpd_apache_org.png&#34; alt=&#34;httpd.apache.org&#34;&gt;&lt;/p&gt;
&lt;p&gt;Click the &amp;ldquo;Version 2.4&amp;rdquo; link under &amp;ldquo;Documentation&amp;rdquo; in the left menu.&lt;/p&gt;
&lt;p&gt;&lt;img src=&#34;https://www.devkuma.com/docs/apache/apache_doc1.png&#34; alt=&#34;Apache Documentation&#34;&gt;&lt;/p&gt;
&lt;p&gt;When the page opens, you can view documentation for the Apache 2.4 system in Korean.&lt;/p&gt;
&lt;p&gt;&lt;img src=&#34;https://www.devkuma.com/docs/apache/apache_doc2.png&#34; alt=&#34;Apache Documentation&#34;&gt;&lt;/p&gt;
&lt;p&gt;Some parts are still in English, but detailed Korean documentation is available. Since the official documentation is written clearly, visit it whenever you have a question.&lt;/p&gt;
&lt;h2 id=&#34;refer-to-the-english-version-of-the-documentation&#34;&gt;Refer to the English version of the documentation&lt;/h2&gt;
&lt;p&gt;As shown in the Korean documentation message, &amp;ldquo;This document is not the latest translation. For recent changes, refer to the English document.&amp;rdquo;, some content may be slightly outdated. If you want to refer to the English version, click &amp;ldquo;en&amp;rdquo; at the upper-right of the documentation page.&lt;/p&gt;
&lt;p&gt;&lt;img src=&#34;https://www.devkuma.com/docs/apache/apache_doc3.png&#34; alt=&#34;Apache Documentation&#34;&gt;&lt;/p&gt;
&lt;p&gt;The English version of the documentation is displayed.&lt;/p&gt;
&lt;p&gt;&lt;img src=&#34;https://www.devkuma.com/docs/apache/apache_doc4.png&#34; alt=&#34;Apache Documentation&#34;&gt;&lt;/p&gt;
&lt;p&gt;If you can read some English and want to check the latest content, this is a good place to refer to.&lt;/p&gt;

      </description>
      
      <category>Apache</category>
      
      <category>WEB</category>
      
    </item>
    
    <item>
      <title>Apache | Apache Installation | Accessing the Web with a Port Number Other Than 80</title>
      <link>https://www.devkuma.com/en/docs/apache/accessing-the-web-with-a-port-number-other-than-80/</link>
      <pubDate>Wed, 13 Nov 2019 23:46:40 +0900</pubDate>
      <author>kc@example.com (kc kim)</author>
      <guid>https://www.devkuma.com/en/docs/apache/accessing-the-web-with-a-port-number-other-than-80/</guid>
      <description>
        
        
        &lt;p&gt;Apache and many other web servers usually use port number 80. If an application already using port 80 is running on the same server, you must configure the web server to use another port number. This page explains how to access a web server from a browser by using a port number other than 80.&lt;/p&gt;
&lt;h2 id=&#34;change-the-port-number-used-by-apache&#34;&gt;Change the port number used by Apache&lt;/h2&gt;
&lt;p&gt;As explained in &amp;ldquo;&lt;a href=&#34;https://www.devkuma.com/books/pages/1365&#34;&gt;Initial Settings for the Configuration File (http.conf) &amp;gt; Configure the port number&lt;/a&gt;&amp;rdquo;, the port number used by Apache is specified in the http.conf file. By default, the Listen directive specifies port 80 as follows.&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;#
# Listen: Allows you to bind Apache to specific IP addresses and/or
# ports, instead of the default. See also the &amp;lt;VirtualHost&amp;gt;
# directive.
#
# Change this to Listen on specific IP addresses as shown below to 
# prevent Apache from glomming onto all bound IP addresses.
#
#Listen 12.34.56.78:80
Listen 80
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;If another web server is running on the same server and port 80 is already in use, specify another port number, such as 8080. You cannot choose just any number; you must specify a number that is not used by another application running on the same server, such as a mail server or DNS server. In this article, 8080 is used as an example.&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;#
# Listen: Allows you to bind Apache to specific IP addresses and/or
# ports, instead of the default. See also the &amp;lt;VirtualHost&amp;gt;
# directive.
#
# Change this to Listen on specific IP addresses as shown below to 
# prevent Apache from glomming onto all bound IP addresses.
#
#Listen 12.34.56.78:80
Listen 8080
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;To apply the setting, save the http.conf file and restart Apache.&lt;/p&gt;
&lt;h2 id=&#34;access-apache-from-a-browser-by-specifying-the-port-number&#34;&gt;Access Apache from a browser by specifying the port number&lt;/h2&gt;
&lt;p&gt;When accessing a web server such as Apache from a browser, use the following format.&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;http://(web server host name):(port number used by the web server)/...
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;For example, to access a website configured to use port 8080, use a URL such as &amp;ldquo;&lt;a href=&#34;http://www.devkuam.com:8080/%22&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;http://www.devkuam.com:8080/&#34;&lt;i class=&#34;fas fa-external-link-alt&#34;&gt;&lt;/i&gt;&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;When port 80 is used, there is an exception: &lt;strong&gt;if you omit the port number, it is treated as port 80.&lt;/strong&gt; Therefore, instead of accessing &amp;ldquo;&lt;a href=&#34;http://www.devkuam.com:80&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;http://www.devkuam.com:80&lt;i class=&#34;fas fa-external-link-alt&#34;&gt;&lt;/i&gt;&lt;/a&gt;&amp;rdquo;, you can omit the port number and access &amp;ldquo;&lt;a href=&#34;http://www.devkuam.com&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;http://www.devkuam.com&lt;i class=&#34;fas fa-external-link-alt&#34;&gt;&lt;/i&gt;&lt;/a&gt;&amp;rdquo;.&lt;/p&gt;
&lt;p&gt;When the port number is 80, it can be omitted, so the following two URLs are equivalent.&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;http://www.example.com/
http://www.example.com:80/
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;This Apache server uses port 8080, so to access it, you must specify the port number as in http://localhost:8080 rather than http://localhost/. Open a browser and try connecting.&lt;/p&gt;
&lt;p&gt;&lt;img src=&#34;https://www.devkuma.com/docs/apache/it_works_8080.png&#34; alt=&#34;It works&#34;&gt;&lt;/p&gt;
&lt;p&gt;The connection succeeded. When using a port number other than 80, remember that you must specify the port number when accessing the web server.&lt;/p&gt;

      </description>
      
      <category>Apache</category>
      
      <category>WEB</category>
      
    </item>
    
  </channel>
</rss>
