{"id":16115,"date":"2024-09-11T11:49:11","date_gmt":"2024-09-11T08:19:11","guid":{"rendered":"https:\/\/www.itpiran.net\/blog\/?p=16115"},"modified":"2024-09-11T11:49:11","modified_gmt":"2024-09-11T08:19:11","slug":"how-to-install-an-apache-web-server","status":"publish","type":"post","link":"https:\/\/www.itpiran.net\/blog\/en\/tutorials\/how-to-install-an-apache-web-server\/","title":{"rendered":"How to install and run Apache web server"},"content":{"rendered":"<h2 id=\"%d9%85%d9%82%d8%af%d9%85%d9%87\">Introduction<\/h2>\n<p>Apache is a free and open source web server software developed by the Apache Software Foundation and freely available to the Internet community. It generally listens for HTTP requests on port 80 and serves HTML documents. Thanks to its modular structure, a wide range of functions can also be embedded. A combination of databases such as MySQL and server-side scripting languages such as PHP, Perl, and Python are commonly used to create dynamic pages. As the most popular web server in the world, the Apache HTTP Server is part of a diverse software package that also includes LAMP, MAMP, WAMP, and XAMPP. However, in this tutorial, we will focus on how to install and configure the web server as a single component.<\/p>\n<h2 id=\"%d9%86%d8%b5%d8%a8-%d9%88-%d8%b1%d8%a7%d9%87-%d8%a7%d9%86%d8%af%d8%a7%d8%b2%db%8c\">Installation and setup<\/h2>\n<p>All you need to get Apache on your Windows PC is the appropriate Apache software package for your operating system. The Apache Software Foundation only provides the source code on its website. You can also find executable binaries for Windows on community pages such as Apache Lounge and Apache Haus. This tutorial is based on Apache version 2.4.20 for 64-bit systems, which is available from Apache Lounge. To use Apache with Windows, no installation is required. Instead, you can do the following:<\/p>\n<ol>\n<li>Save the software package as a ZIP file in any folder on your local Windows PC.<\/li>\n<li>Unzip the ZIP file by double-clicking the folder icon.<\/li>\n<li>Name the file Apache24 and copy it to C:\\.<\/li>\n<\/ol>\n<p>You can now find all the files needed to set up your local Apache web server in the C:\\Apache24 folder.<\/p>\n<p><img  loading=\"lazy\"  decoding=\"async\"  src=\"data:image\/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABAQMAAAAl21bKAAAAA1BMVEUAAP+KeNJXAAAAAXRSTlMAQObYZgAAAAlwSFlzAAAOxAAADsQBlSsOGwAAAApJREFUCNdjYAAAAAIAAeIhvDMAAAAASUVORK5CYII=\"  alt=\"\"  width=\"554\"  height=\"356\"  class=\"aligncenter wp-image-16118 size-full pk-lazyload\"  data-pk-sizes=\"auto\"  data-ls-sizes=\"auto, (max-width: 554px) 100vw, 554px\"  data-pk-src=\"https:\/\/cdn.itpiran.net\/2024\/09\/11113927\/1-1.webp\"  data-pk-srcset=\"https:\/\/cdn.itpiran.net\/2024\/09\/11113927\/1-1.webp 554w, https:\/\/cdn.itpiran.net\/2024\/09\/11113927\/1-1-300x193.webp 300w, https:\/\/cdn.itpiran.net\/2024\/09\/11113927\/1-1-110x71.webp 110w, https:\/\/cdn.itpiran.net\/2024\/09\/11113927\/1-1-200x129.webp 200w, https:\/\/cdn.itpiran.net\/2024\/09\/11113927\/1-1-380x244.webp 380w, https:\/\/cdn.itpiran.net\/2024\/09\/11113927\/1-1-255x164.webp 255w, https:\/\/cdn.itpiran.net\/2024\/09\/11113927\/1-1-550x353.webp 550w\" ><\/p>\n<h2 id=\"%d8%a7%d8%ac%d8%b1%d8%a7%db%8c-%d8%a2%d8%b2%d9%85%d8%a7%db%8c%d8%b4%db%8c\">Trial run<\/h2>\n<p>After installation, it is recommended to do a test run. To do this, first open C:\/Apache24 and open the bin file. This is where you will find the httpd program. Double-click to start your Apache web server.<\/p>\n<p><img  loading=\"lazy\"  decoding=\"async\"  src=\"data:image\/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABAQMAAAAl21bKAAAAA1BMVEUAAP+KeNJXAAAAAXRSTlMAQObYZgAAAAlwSFlzAAAOxAAADsQBlSsOGwAAAApJREFUCNdjYAAAAAIAAeIhvDMAAAAASUVORK5CYII=\"  alt=\"\"  width=\"554\"  height=\"340\"  class=\"aligncenter wp-image-16119 size-full pk-lazyload\"  data-pk-sizes=\"auto\"  data-ls-sizes=\"auto, (max-width: 554px) 100vw, 554px\"  data-pk-src=\"https:\/\/cdn.itpiran.net\/2024\/09\/11114030\/2-1.webp\"  data-pk-srcset=\"https:\/\/cdn.itpiran.net\/2024\/09\/11114030\/2-1.webp 554w, https:\/\/cdn.itpiran.net\/2024\/09\/11114030\/2-1-300x184.webp 300w, https:\/\/cdn.itpiran.net\/2024\/09\/11114030\/2-1-110x68.webp 110w, https:\/\/cdn.itpiran.net\/2024\/09\/11114030\/2-1-200x123.webp 200w, https:\/\/cdn.itpiran.net\/2024\/09\/11114030\/2-1-380x233.webp 380w, https:\/\/cdn.itpiran.net\/2024\/09\/11114030\/2-1-255x156.webp 255w, https:\/\/cdn.itpiran.net\/2024\/09\/11114030\/2-1-550x338.webp 550w\" ><\/p>\n<p>Then your system will usually display two error messages indicating that software components must be installed and that the Apache web server is blocked by the operating system firewall.<\/p>\n<h2 id=\"%d8%ae%d8%b7%d8%a7%db%8c-%d8%b3%db%8c%d8%b3%d8%aa%d9%85-httpd-exe\">httpd.exe system error<\/h2>\n<p>If this is the first time you are installing Apache on your Windows PC, your system will probably report that the VCRUNTIME140.dll file is not found and therefore the web server will not start.<\/p>\n<p><img  loading=\"lazy\"  decoding=\"async\"  src=\"data:image\/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABAQMAAAAl21bKAAAAA1BMVEUAAP+KeNJXAAAAAXRSTlMAQObYZgAAAAlwSFlzAAAOxAAADsQBlSsOGwAAAApJREFUCNdjYAAAAAIAAeIhvDMAAAAASUVORK5CYII=\"  alt=\"\"  width=\"482\"  height=\"172\"  class=\"aligncenter wp-image-16120 size-full pk-lazyload\"  data-pk-sizes=\"auto\"  data-ls-sizes=\"auto, (max-width: 482px) 100vw, 482px\"  data-pk-src=\"https:\/\/cdn.itpiran.net\/2024\/09\/11114124\/3-1.webp\"  data-pk-srcset=\"https:\/\/cdn.itpiran.net\/2024\/09\/11114124\/3-1.webp 482w, https:\/\/cdn.itpiran.net\/2024\/09\/11114124\/3-1-300x107.webp 300w, https:\/\/cdn.itpiran.net\/2024\/09\/11114124\/3-1-110x39.webp 110w, https:\/\/cdn.itpiran.net\/2024\/09\/11114124\/3-1-200x71.webp 200w, https:\/\/cdn.itpiran.net\/2024\/09\/11114124\/3-1-380x136.webp 380w, https:\/\/cdn.itpiran.net\/2024\/09\/11114124\/3-1-255x91.webp 255w\" ><\/p>\n<p>These errors can be corrected by installing the required software components. Apache is written in C++, which means that a program when used on a Windows operating system requires a suitable runtime environment. This is available through the Visual C++ compiler software. Missing runtime components can be installed with the Visual C++ redistributable packages. These are available for free download from the Microsoft website and can be installed by simply double-clicking on the .exe file.<\/p>\n<h2 id=\"%d9%87%d8%b4%d8%af%d8%a7%d8%b1-%d8%a7%d9%85%d9%86%db%8c%d8%aa%db%8c-%d9%88%db%8c%d9%86%d8%af%d9%88%d8%b2\">Windows Security Alert<\/h2>\n<p>Generally, personal computers are protected by a firewall, which prevents unauthorized external programs from accessing the system via the network. However, if you want to make your local Apache HTTP server available on a home or work network, you must explicitly allow Apache to communicate. This can be done in the following security message, which reports that some web server functions are blocked by the firewall.<\/p>\n<p><img  loading=\"lazy\"  decoding=\"async\"  src=\"data:image\/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABAQMAAAAl21bKAAAAA1BMVEUAAP+KeNJXAAAAAXRSTlMAQObYZgAAAAlwSFlzAAAOxAAADsQBlSsOGwAAAApJREFUCNdjYAAAAAIAAeIhvDMAAAAASUVORK5CYII=\"  alt=\"\"  width=\"547\"  height=\"390\"  class=\"aligncenter wp-image-16121 size-full pk-lazyload\"  data-pk-sizes=\"auto\"  data-ls-sizes=\"auto, (max-width: 547px) 100vw, 547px\"  data-pk-src=\"https:\/\/cdn.itpiran.net\/2024\/09\/11114230\/4-1.webp\"  data-pk-srcset=\"https:\/\/cdn.itpiran.net\/2024\/09\/11114230\/4-1.webp 547w, https:\/\/cdn.itpiran.net\/2024\/09\/11114230\/4-1-300x214.webp 300w, https:\/\/cdn.itpiran.net\/2024\/09\/11114230\/4-1-110x78.webp 110w, https:\/\/cdn.itpiran.net\/2024\/09\/11114230\/4-1-200x143.webp 200w, https:\/\/cdn.itpiran.net\/2024\/09\/11114230\/4-1-380x271.webp 380w, https:\/\/cdn.itpiran.net\/2024\/09\/11114230\/4-1-255x182.webp 255w\" ><\/p>\n<p>If you want to allow access to your server on one of the specified networks, check the corresponding box and click the &quot;Allow Access&quot; button. This usually requires administrative rights.<\/p>\n<p>Once you have installed the required runtime components and configured the firewall settings to your specific model, using the Apache HTTP server in its standard configuration is no longer an obstacle. Restart the web server by double-clicking on the httpf file. A black command prompt window will automatically open. If you want to terminate the Apache web server, close the window by clicking the x in the upper right corner.<\/p>\n<p><img  loading=\"lazy\"  decoding=\"async\"  src=\"data:image\/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABAQMAAAAl21bKAAAAA1BMVEUAAP+KeNJXAAAAAXRSTlMAQObYZgAAAAlwSFlzAAAOxAAADsQBlSsOGwAAAApJREFUCNdjYAAAAAIAAeIhvDMAAAAASUVORK5CYII=\"  alt=\"\"  width=\"554\"  height=\"281\"  class=\"aligncenter wp-image-16122 size-full pk-lazyload\"  data-pk-sizes=\"auto\"  data-ls-sizes=\"auto, (max-width: 554px) 100vw, 554px\"  data-pk-src=\"https:\/\/cdn.itpiran.net\/2024\/09\/11114311\/5-1.webp\"  data-pk-srcset=\"https:\/\/cdn.itpiran.net\/2024\/09\/11114311\/5-1.webp 554w, https:\/\/cdn.itpiran.net\/2024\/09\/11114311\/5-1-300x152.webp 300w, https:\/\/cdn.itpiran.net\/2024\/09\/11114311\/5-1-110x56.webp 110w, https:\/\/cdn.itpiran.net\/2024\/09\/11114311\/5-1-200x101.webp 200w, https:\/\/cdn.itpiran.net\/2024\/09\/11114311\/5-1-380x193.webp 380w, https:\/\/cdn.itpiran.net\/2024\/09\/11114311\/5-1-255x129.webp 255w, https:\/\/cdn.itpiran.net\/2024\/09\/11114311\/5-1-550x279.webp 550w\" ><\/p>\n<p>To access your web server, simply enter &quot;localhost&quot; or the standard IP address, &quot;127.0.0.1&quot; into the search bar of any web browser.<\/p>\n<p>If all settings are entered correctly, the web browser will display a default index.html with the phrase &quot;This works!&quot;, then you can configure your web server.<\/p>\n<p><img  loading=\"lazy\"  decoding=\"async\"  src=\"data:image\/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABAQMAAAAl21bKAAAAA1BMVEUAAP+KeNJXAAAAAXRSTlMAQObYZgAAAAlwSFlzAAAOxAAADsQBlSsOGwAAAApJREFUCNdjYAAAAAIAAeIhvDMAAAAASUVORK5CYII=\"  alt=\"\"  width=\"554\"  height=\"324\"  class=\"aligncenter wp-image-16123 size-full pk-lazyload\"  data-pk-sizes=\"auto\"  data-ls-sizes=\"auto, (max-width: 554px) 100vw, 554px\"  data-pk-src=\"https:\/\/cdn.itpiran.net\/2024\/09\/11114359\/6-1.webp\"  data-pk-srcset=\"https:\/\/cdn.itpiran.net\/2024\/09\/11114359\/6-1.webp 554w, https:\/\/cdn.itpiran.net\/2024\/09\/11114359\/6-1-300x175.webp 300w, https:\/\/cdn.itpiran.net\/2024\/09\/11114359\/6-1-110x64.webp 110w, https:\/\/cdn.itpiran.net\/2024\/09\/11114359\/6-1-200x117.webp 200w, https:\/\/cdn.itpiran.net\/2024\/09\/11114359\/6-1-380x222.webp 380w, https:\/\/cdn.itpiran.net\/2024\/09\/11114359\/6-1-255x149.webp 255w, https:\/\/cdn.itpiran.net\/2024\/09\/11114359\/6-1-550x322.webp 550w\" ><\/p>\n<h2 id=\"%d9%be%db%8c%da%a9%d8%b1%d8%a8%d9%86%d8%af%db%8c\">Configuration<\/h2>\n<p>The Apache http server is generally pre-configured as a software package in a way that makes it work without any further configuration. All content that is supposed to be accessible through the web server is stored in a folder called DocumentRoot in the httpd.conf configuration file. By default, this is the htdocs folder in C:\\Apache24.<\/p>\n<p><img  loading=\"lazy\"  decoding=\"async\"  src=\"data:image\/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABAQMAAAAl21bKAAAAA1BMVEUAAP+KeNJXAAAAAXRSTlMAQObYZgAAAAlwSFlzAAAOxAAADsQBlSsOGwAAAApJREFUCNdjYAAAAAIAAeIhvDMAAAAASUVORK5CYII=\"  alt=\"\"  width=\"554\"  height=\"307\"  class=\"aligncenter wp-image-16124 size-full pk-lazyload\"  data-pk-sizes=\"auto\"  data-ls-sizes=\"auto, (max-width: 554px) 100vw, 554px\"  data-pk-src=\"https:\/\/cdn.itpiran.net\/2024\/09\/11114534\/7.webp\"  data-pk-srcset=\"https:\/\/cdn.itpiran.net\/2024\/09\/11114534\/7.webp 554w, https:\/\/cdn.itpiran.net\/2024\/09\/11114534\/7-300x166.webp 300w, https:\/\/cdn.itpiran.net\/2024\/09\/11114534\/7-110x61.webp 110w, https:\/\/cdn.itpiran.net\/2024\/09\/11114534\/7-200x111.webp 200w, https:\/\/cdn.itpiran.net\/2024\/09\/11114534\/7-380x211.webp 380w, https:\/\/cdn.itpiran.net\/2024\/09\/11114534\/7-255x141.webp 255w, https:\/\/cdn.itpiran.net\/2024\/09\/11114534\/7-550x305.webp 550w\" ><\/p>\n<p>If you want to store your website documents and files in a different folder, you need to enter it in httpd.conf as \u00abDocumentRoot\u00bb and \u00abDirectory\u00bb.<\/p>\n<p>For this demonstration, we have created a new folder called MyHomepage in the C:\\ directory. This will act as a web page folder for a fictional website. Two HTML documents: test-1 and test-2 are stored in this file.<\/p>\n<p><img  loading=\"lazy\"  decoding=\"async\"  src=\"data:image\/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABAQMAAAAl21bKAAAAA1BMVEUAAP+KeNJXAAAAAXRSTlMAQObYZgAAAAlwSFlzAAAOxAAADsQBlSsOGwAAAApJREFUCNdjYAAAAAIAAeIhvDMAAAAASUVORK5CYII=\"  alt=\"\"  width=\"554\"  height=\"337\"  class=\"aligncenter wp-image-16125 size-full pk-lazyload\"  data-pk-sizes=\"auto\"  data-ls-sizes=\"auto, (max-width: 554px) 100vw, 554px\"  data-pk-src=\"https:\/\/cdn.itpiran.net\/2024\/09\/11114614\/8.webp\"  data-pk-srcset=\"https:\/\/cdn.itpiran.net\/2024\/09\/11114614\/8.webp 554w, https:\/\/cdn.itpiran.net\/2024\/09\/11114614\/8-300x182.webp 300w, https:\/\/cdn.itpiran.net\/2024\/09\/11114614\/8-110x67.webp 110w, https:\/\/cdn.itpiran.net\/2024\/09\/11114614\/8-200x122.webp 200w, https:\/\/cdn.itpiran.net\/2024\/09\/11114614\/8-380x231.webp 380w, https:\/\/cdn.itpiran.net\/2024\/09\/11114614\/8-255x155.webp 255w, https:\/\/cdn.itpiran.net\/2024\/09\/11114614\/8-550x335.webp 550w\" ><\/p>\n<p>Now we will adapt the \u00abDocumentRoot\u00bb and \u00abDirectory\u00bb information for our new website folder by replacing both instances of \u00abC:\/Apache24\/htdocs\u00bb with \u00abC:\/MyHomepage\u00bb.<\/p>\n<p><img  loading=\"lazy\"  decoding=\"async\"  src=\"data:image\/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABAQMAAAAl21bKAAAAA1BMVEUAAP+KeNJXAAAAAXRSTlMAQObYZgAAAAlwSFlzAAAOxAAADsQBlSsOGwAAAApJREFUCNdjYAAAAAIAAeIhvDMAAAAASUVORK5CYII=\"  alt=\"\"  width=\"554\"  height=\"320\"  class=\"aligncenter wp-image-16126 size-full pk-lazyload\"  data-pk-sizes=\"auto\"  data-ls-sizes=\"auto, (max-width: 554px) 100vw, 554px\"  data-pk-src=\"https:\/\/cdn.itpiran.net\/2024\/09\/11114656\/9.webp\"  data-pk-srcset=\"https:\/\/cdn.itpiran.net\/2024\/09\/11114656\/9.webp 554w, https:\/\/cdn.itpiran.net\/2024\/09\/11114656\/9-300x173.webp 300w, https:\/\/cdn.itpiran.net\/2024\/09\/11114656\/9-110x64.webp 110w, https:\/\/cdn.itpiran.net\/2024\/09\/11114656\/9-200x116.webp 200w, https:\/\/cdn.itpiran.net\/2024\/09\/11114656\/9-380x219.webp 380w, https:\/\/cdn.itpiran.net\/2024\/09\/11114656\/9-255x147.webp 255w, https:\/\/cdn.itpiran.net\/2024\/09\/11114656\/9-550x318.webp 550w\" ><\/p>\n<p>To access the web server, Apache must first be restarted via localhost. Then the web browser will display the website folder listing with the HTML pages, test-1.html and test-2.html.<\/p>\n<p><img  loading=\"lazy\"  decoding=\"async\"  src=\"data:image\/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABAQMAAAAl21bKAAAAA1BMVEUAAP+KeNJXAAAAAXRSTlMAQObYZgAAAAlwSFlzAAAOxAAADsQBlSsOGwAAAApJREFUCNdjYAAAAAIAAeIhvDMAAAAASUVORK5CYII=\"  alt=\"\"  width=\"554\"  height=\"332\"  class=\"aligncenter wp-image-16127 size-full pk-lazyload\"  data-pk-sizes=\"auto\"  data-ls-sizes=\"auto, (max-width: 554px) 100vw, 554px\"  data-pk-src=\"https:\/\/cdn.itpiran.net\/2024\/09\/11114749\/10.webp\"  data-pk-srcset=\"https:\/\/cdn.itpiran.net\/2024\/09\/11114749\/10.webp 554w, https:\/\/cdn.itpiran.net\/2024\/09\/11114749\/10-300x180.webp 300w, https:\/\/cdn.itpiran.net\/2024\/09\/11114749\/10-110x66.webp 110w, https:\/\/cdn.itpiran.net\/2024\/09\/11114749\/10-200x120.webp 200w, https:\/\/cdn.itpiran.net\/2024\/09\/11114749\/10-380x228.webp 380w, https:\/\/cdn.itpiran.net\/2024\/09\/11114749\/10-255x153.webp 255w, https:\/\/cdn.itpiran.net\/2024\/09\/11114749\/10-550x330.webp 550w\" ><\/p>","protected":false},"excerpt":{"rendered":"Introduction Apache is a free and open source web server software developed by the Apache Software Foundation\u2026","protected":false},"author":1,"featured_media":16116,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_yoast_wpseo_focuskw":"\u0646\u062d\u0648\u0647 \u0646\u0635\u0628 \u0648 \u0627\u062c\u0631\u0627\u06cc \u0648\u0628 \u0633\u0631\u0648\u0631 \u0622\u067e\u0627\u0686\u06cc","_yoast_wpseo_title":"","_yoast_wpseo_metadesc":"","_yoast_wpseo_canonical":"","_yoast_wpseo_opengraph-description":"","_yoast_wpseo_opengraph-image":"","_yoast_wpseo_twitter-description":"","_yoast_wpseo_twitter-image":"","_yoast_wpseo_focuskeywords":"","_yoast_wpseo_primary_category":"193","footnotes":""},"categories":[193,363,204,375],"tags":[390,435],"class_list":{"0":"post-16115","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","7":"category-tutorials","8":"category-programming","9":"category-servers","10":"category-375","11":"tag-apache","12":"tag-programming"},"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.3 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>\u0646\u062d\u0648\u0647 \u0646\u0635\u0628 \u0648 \u0627\u062c\u0631\u0627\u06cc \u0648\u0628 \u0633\u0631\u0648\u0631 \u0622\u067e\u0627\u0686\u06cc - \u0628\u0644\u0627\u06af ITPiran<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.itpiran.net\/blog\/en\/tutorials\/how-to-install-an-apache-web-server\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u0646\u062d\u0648\u0647 \u0646\u0635\u0628 \u0648 \u0627\u062c\u0631\u0627\u06cc \u0648\u0628 \u0633\u0631\u0648\u0631 \u0622\u067e\u0627\u0686\u06cc - \u0628\u0644\u0627\u06af ITPiran\" \/>\n<meta property=\"og:description\" content=\"\u0645\u0642\u062f\u0645\u0647 \u0622\u067e\u0627\u0686\u06cc \u06cc\u06a9 \u0646\u0631\u0645\u200c\u0627\u0641\u0632\u0627\u0631 \u0648\u0628 \u0633\u0631\u0648\u0631 \u0631\u0627\u06cc\u06af\u0627\u0646 \u0648 \u0645\u0646\u0628\u0639 \u0628\u0627\u0632 \u0627\u0633\u062a \u06a9\u0647 \u062a\u0648\u0633\u0637 \u0628\u0646\u06cc\u0627\u062f \u0646\u0631\u0645\u200c\u0627\u0641\u0632\u0627\u0631 \u0622\u067e\u0627\u0686\u06cc \u062a\u0648\u0633\u0639\u0647 \u06cc\u0627\u0641\u062a\u0647&hellip;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.itpiran.net\/blog\/en\/tutorials\/how-to-install-an-apache-web-server\/\" \/>\n<meta property=\"og:site_name\" content=\"\u0628\u0644\u0627\u06af ITPiran\" \/>\n<meta property=\"article:published_time\" content=\"2024-09-11T08:19:11+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/cdn.itpiran.net\/2024\/09\/11113347\/apachewebserver.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1793\" \/>\n\t<meta property=\"og:image:height\" content=\"1110\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.itpiran.net\\\/blog\\\/tutorials\\\/how-to-install-an-apache-web-server\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.itpiran.net\\\/blog\\\/tutorials\\\/how-to-install-an-apache-web-server\\\/\"},\"author\":{\"name\":\"admin\",\"@id\":\"https:\\\/\\\/www.itpiran.net\\\/blog\\\/#\\\/schema\\\/person\\\/04ed27b919baca468a2273f8e4318f81\"},\"headline\":\"\u0646\u062d\u0648\u0647 \u0646\u0635\u0628 \u0648 \u0627\u062c\u0631\u0627\u06cc \u0648\u0628 \u0633\u0631\u0648\u0631 \u0622\u067e\u0627\u0686\u06cc\",\"datePublished\":\"2024-09-11T08:19:11+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.itpiran.net\\\/blog\\\/tutorials\\\/how-to-install-an-apache-web-server\\\/\"},\"wordCount\":79,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/www.itpiran.net\\\/blog\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.itpiran.net\\\/blog\\\/tutorials\\\/how-to-install-an-apache-web-server\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/cdn.itpiran.net\\\/2024\\\/09\\\/11113347\\\/apachewebserver.jpg\",\"keywords\":[\"apache\",\"programming\"],\"articleSection\":[\"\u0622\u0645\u0648\u0632\u0634\u06cc\",\"\u0628\u0631\u0646\u0627\u0645\u0647 \u0646\u0648\u06cc\u0633\u06cc\",\"\u0633\u0631\u0648\u0631\",\"\u0648\u0628 \u0633\u0627\u06cc\u062a\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.itpiran.net\\\/blog\\\/tutorials\\\/how-to-install-an-apache-web-server\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.itpiran.net\\\/blog\\\/tutorials\\\/how-to-install-an-apache-web-server\\\/\",\"url\":\"https:\\\/\\\/www.itpiran.net\\\/blog\\\/tutorials\\\/how-to-install-an-apache-web-server\\\/\",\"name\":\"\u0646\u062d\u0648\u0647 \u0646\u0635\u0628 \u0648 \u0627\u062c\u0631\u0627\u06cc \u0648\u0628 \u0633\u0631\u0648\u0631 \u0622\u067e\u0627\u0686\u06cc - \u0628\u0644\u0627\u06af ITPiran\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.itpiran.net\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.itpiran.net\\\/blog\\\/tutorials\\\/how-to-install-an-apache-web-server\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.itpiran.net\\\/blog\\\/tutorials\\\/how-to-install-an-apache-web-server\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/cdn.itpiran.net\\\/2024\\\/09\\\/11113347\\\/apachewebserver.jpg\",\"datePublished\":\"2024-09-11T08:19:11+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.itpiran.net\\\/blog\\\/tutorials\\\/how-to-install-an-apache-web-server\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.itpiran.net\\\/blog\\\/tutorials\\\/how-to-install-an-apache-web-server\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.itpiran.net\\\/blog\\\/tutorials\\\/how-to-install-an-apache-web-server\\\/#primaryimage\",\"url\":\"https:\\\/\\\/cdn.itpiran.net\\\/2024\\\/09\\\/11113347\\\/apachewebserver.jpg\",\"contentUrl\":\"https:\\\/\\\/cdn.itpiran.net\\\/2024\\\/09\\\/11113347\\\/apachewebserver.jpg\",\"width\":1793,\"height\":1110},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.itpiran.net\\\/blog\\\/tutorials\\\/how-to-install-an-apache-web-server\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.itpiran.net\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u0622\u0645\u0648\u0632\u0634\u06cc\",\"item\":\"https:\\\/\\\/www.itpiran.net\\\/blog\\\/category\\\/tutorials\\\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"\u0646\u062d\u0648\u0647 \u0646\u0635\u0628 \u0648 \u0627\u062c\u0631\u0627\u06cc \u0648\u0628 \u0633\u0631\u0648\u0631 \u0622\u067e\u0627\u0686\u06cc\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.itpiran.net\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.itpiran.net\\\/blog\\\/\",\"name\":\"\u0628\u0644\u0627\u06af ITPiran\",\"description\":\"\u0627\u062e\u0628\u0627\u0631 \u0648 \u0645\u0642\u0627\u0644\u0627\u062a \u062a\u062c\u0627\u0631\u062a \u067e\u0627\u06cc\u062f\u0627\u0631 \u0627\u06cc\u0631\u0627\u0646\u06cc\u0627\u0646\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.itpiran.net\\\/blog\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.itpiran.net\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.itpiran.net\\\/blog\\\/#organization\",\"name\":\"\u0628\u0644\u0627\u06af \u062a\u062c\u0627\u0631\u062a \u067e\u0627\u06cc\u062f\u0627\u0631 \u0627\u06cc\u0631\u0627\u0646\u06cc\u0627\u0646\",\"alternateName\":\"ITPIran Blog\",\"url\":\"https:\\\/\\\/www.itpiran.net\\\/blog\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.itpiran.net\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/cdn.itpiran.net\\\/2023\\\/12\\\/27150508\\\/cropped-ITPIRAN-BLOG-LOGO-2.png\",\"contentUrl\":\"https:\\\/\\\/cdn.itpiran.net\\\/2023\\\/12\\\/27150508\\\/cropped-ITPIRAN-BLOG-LOGO-2.png\",\"width\":512,\"height\":512,\"caption\":\"\u0628\u0644\u0627\u06af \u062a\u062c\u0627\u0631\u062a \u067e\u0627\u06cc\u062f\u0627\u0631 \u0627\u06cc\u0631\u0627\u0646\u06cc\u0627\u0646\"},\"image\":{\"@id\":\"https:\\\/\\\/www.itpiran.net\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.itpiran.net\\\/blog\\\/#\\\/schema\\\/person\\\/04ed27b919baca468a2273f8e4318f81\",\"name\":\"admin\",\"url\":\"https:\\\/\\\/www.itpiran.net\\\/blog\\\/en\\\/author\\\/admin\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to install and run Apache web server - ITPiran Blog","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.itpiran.net\/blog\/en\/tutorials\/how-to-install-an-apache-web-server\/","og_locale":"en_US","og_type":"article","og_title":"\u0646\u062d\u0648\u0647 \u0646\u0635\u0628 \u0648 \u0627\u062c\u0631\u0627\u06cc \u0648\u0628 \u0633\u0631\u0648\u0631 \u0622\u067e\u0627\u0686\u06cc - \u0628\u0644\u0627\u06af ITPiran","og_description":"\u0645\u0642\u062f\u0645\u0647 \u0622\u067e\u0627\u0686\u06cc \u06cc\u06a9 \u0646\u0631\u0645\u200c\u0627\u0641\u0632\u0627\u0631 \u0648\u0628 \u0633\u0631\u0648\u0631 \u0631\u0627\u06cc\u06af\u0627\u0646 \u0648 \u0645\u0646\u0628\u0639 \u0628\u0627\u0632 \u0627\u0633\u062a \u06a9\u0647 \u062a\u0648\u0633\u0637 \u0628\u0646\u06cc\u0627\u062f \u0646\u0631\u0645\u200c\u0627\u0641\u0632\u0627\u0631 \u0622\u067e\u0627\u0686\u06cc \u062a\u0648\u0633\u0639\u0647 \u06cc\u0627\u0641\u062a\u0647&hellip;","og_url":"https:\/\/www.itpiran.net\/blog\/en\/tutorials\/how-to-install-an-apache-web-server\/","og_site_name":"\u0628\u0644\u0627\u06af ITPiran","article_published_time":"2024-09-11T08:19:11+00:00","og_image":[{"width":1793,"height":1110,"url":"https:\/\/cdn.itpiran.net\/2024\/09\/11113347\/apachewebserver.jpg","type":"image\/jpeg"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"Written by":"admin"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.itpiran.net\/blog\/tutorials\/how-to-install-an-apache-web-server\/#article","isPartOf":{"@id":"https:\/\/www.itpiran.net\/blog\/tutorials\/how-to-install-an-apache-web-server\/"},"author":{"name":"admin","@id":"https:\/\/www.itpiran.net\/blog\/#\/schema\/person\/04ed27b919baca468a2273f8e4318f81"},"headline":"\u0646\u062d\u0648\u0647 \u0646\u0635\u0628 \u0648 \u0627\u062c\u0631\u0627\u06cc \u0648\u0628 \u0633\u0631\u0648\u0631 \u0622\u067e\u0627\u0686\u06cc","datePublished":"2024-09-11T08:19:11+00:00","mainEntityOfPage":{"@id":"https:\/\/www.itpiran.net\/blog\/tutorials\/how-to-install-an-apache-web-server\/"},"wordCount":79,"commentCount":0,"publisher":{"@id":"https:\/\/www.itpiran.net\/blog\/#organization"},"image":{"@id":"https:\/\/www.itpiran.net\/blog\/tutorials\/how-to-install-an-apache-web-server\/#primaryimage"},"thumbnailUrl":"https:\/\/cdn.itpiran.net\/2024\/09\/11113347\/apachewebserver.jpg","keywords":["apache","programming"],"articleSection":["\u0622\u0645\u0648\u0632\u0634\u06cc","\u0628\u0631\u0646\u0627\u0645\u0647 \u0646\u0648\u06cc\u0633\u06cc","\u0633\u0631\u0648\u0631","\u0648\u0628 \u0633\u0627\u06cc\u062a"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.itpiran.net\/blog\/tutorials\/how-to-install-an-apache-web-server\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.itpiran.net\/blog\/tutorials\/how-to-install-an-apache-web-server\/","url":"https:\/\/www.itpiran.net\/blog\/tutorials\/how-to-install-an-apache-web-server\/","name":"How to install and run Apache web server - ITPiran Blog","isPartOf":{"@id":"https:\/\/www.itpiran.net\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.itpiran.net\/blog\/tutorials\/how-to-install-an-apache-web-server\/#primaryimage"},"image":{"@id":"https:\/\/www.itpiran.net\/blog\/tutorials\/how-to-install-an-apache-web-server\/#primaryimage"},"thumbnailUrl":"https:\/\/cdn.itpiran.net\/2024\/09\/11113347\/apachewebserver.jpg","datePublished":"2024-09-11T08:19:11+00:00","breadcrumb":{"@id":"https:\/\/www.itpiran.net\/blog\/tutorials\/how-to-install-an-apache-web-server\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.itpiran.net\/blog\/tutorials\/how-to-install-an-apache-web-server\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.itpiran.net\/blog\/tutorials\/how-to-install-an-apache-web-server\/#primaryimage","url":"https:\/\/cdn.itpiran.net\/2024\/09\/11113347\/apachewebserver.jpg","contentUrl":"https:\/\/cdn.itpiran.net\/2024\/09\/11113347\/apachewebserver.jpg","width":1793,"height":1110},{"@type":"BreadcrumbList","@id":"https:\/\/www.itpiran.net\/blog\/tutorials\/how-to-install-an-apache-web-server\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.itpiran.net\/blog\/"},{"@type":"ListItem","position":2,"name":"\u0622\u0645\u0648\u0632\u0634\u06cc","item":"https:\/\/www.itpiran.net\/blog\/category\/tutorials\/"},{"@type":"ListItem","position":3,"name":"\u0646\u062d\u0648\u0647 \u0646\u0635\u0628 \u0648 \u0627\u062c\u0631\u0627\u06cc \u0648\u0628 \u0633\u0631\u0648\u0631 \u0622\u067e\u0627\u0686\u06cc"}]},{"@type":"WebSite","@id":"https:\/\/www.itpiran.net\/blog\/#website","url":"https:\/\/www.itpiran.net\/blog\/","name":"ITPiran Blog","description":"Iranian Sustainable Trade News and Articles","publisher":{"@id":"https:\/\/www.itpiran.net\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.itpiran.net\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.itpiran.net\/blog\/#organization","name":"Sustainable Iranian Business Blog","alternateName":"ITPIran Blog","url":"https:\/\/www.itpiran.net\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.itpiran.net\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/cdn.itpiran.net\/2023\/12\/27150508\/cropped-ITPIRAN-BLOG-LOGO-2.png","contentUrl":"https:\/\/cdn.itpiran.net\/2023\/12\/27150508\/cropped-ITPIRAN-BLOG-LOGO-2.png","width":512,"height":512,"caption":"\u0628\u0644\u0627\u06af \u062a\u062c\u0627\u0631\u062a \u067e\u0627\u06cc\u062f\u0627\u0631 \u0627\u06cc\u0631\u0627\u0646\u06cc\u0627\u0646"},"image":{"@id":"https:\/\/www.itpiran.net\/blog\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/www.itpiran.net\/blog\/#\/schema\/person\/04ed27b919baca468a2273f8e4318f81","name":"admin","url":"https:\/\/www.itpiran.net\/blog\/en\/author\/admin\/"}]}},"_links":{"self":[{"href":"https:\/\/www.itpiran.net\/blog\/en\/wp-json\/wp\/v2\/posts\/16115","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.itpiran.net\/blog\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.itpiran.net\/blog\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.itpiran.net\/blog\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.itpiran.net\/blog\/en\/wp-json\/wp\/v2\/comments?post=16115"}],"version-history":[{"count":2,"href":"https:\/\/www.itpiran.net\/blog\/en\/wp-json\/wp\/v2\/posts\/16115\/revisions"}],"predecessor-version":[{"id":16128,"href":"https:\/\/www.itpiran.net\/blog\/en\/wp-json\/wp\/v2\/posts\/16115\/revisions\/16128"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.itpiran.net\/blog\/en\/wp-json\/wp\/v2\/media\/16116"}],"wp:attachment":[{"href":"https:\/\/www.itpiran.net\/blog\/en\/wp-json\/wp\/v2\/media?parent=16115"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.itpiran.net\/blog\/en\/wp-json\/wp\/v2\/categories?post=16115"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.itpiran.net\/blog\/en\/wp-json\/wp\/v2\/tags?post=16115"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}