{"id":185,"date":"2025-06-22T02:15:34","date_gmt":"2025-06-22T02:15:34","guid":{"rendered":"http:\/\/123.249.119.122\/Wordpress\/?p=185"},"modified":"2025-06-28T01:27:41","modified_gmt":"2025-06-28T01:27:41","slug":"how-to-deploy-httpd-service","status":"publish","type":"post","link":"http:\/\/123.249.119.122\/Wordpress\/index.php\/2025\/06\/22\/how-to-deploy-httpd-service\/","title":{"rendered":"How To Deploy Httpd Service"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Httpd service is an open-source Http webserver based on the modern operating system like Linux,Windows,and so on.<a href=\"https:\/\/httpd.apache.org\">This is the fundamental of Httpd service.<\/a>This post introduce how to deploy your httpd in your Linux operating system like EulerOS,openEuler,Redhat,and so on.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">1.First,you should prepare your Linux operating system on your personal computer\/cloud server\/server and ensure the network is connecting.Then you have your software repository in your operating system.You can read the directory <strong>&#8216;\/etc\/yum.repos.d&#8217;<\/strong> to search the repository of software.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"462\" height=\"95\" src=\"http:\/\/123.249.119.122\/Wordpress\/wp-content\/uploads\/2025\/06\/image-12.png\" alt=\"\" class=\"wp-image-189\" srcset=\"http:\/\/123.249.119.122\/Wordpress\/wp-content\/uploads\/2025\/06\/image-12.png 462w, http:\/\/123.249.119.122\/Wordpress\/wp-content\/uploads\/2025\/06\/image-12-300x62.png 300w\" sizes=\"auto, (max-width: 462px) 100vw, 462px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">You can configure your software repository in the directory <strong>&#8216;\/etc\/yum.repos.d&#8217;<\/strong>.For example,you want to configure your software repository name abc.repo,you can configure like this:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">&#8216;<strong>[ABC]<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>name=ABC<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>baseurl=<\/strong>(choose your baseurl of software repository)<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>enabled=1<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>gpgcheck=1<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>gpgkey=<\/strong>(choose the RPM-GPG-KEY in the baseurl)&#8217;.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">2.Second,after the configuration of software repository,you can install httpd package.Input <strong>&#8216;dnf list |grep httpd&#8217;<\/strong> to check packages.Input <strong>&#8216;dnf install -y httpd&#8217;<\/strong> to install httpd package.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"443\" height=\"47\" src=\"http:\/\/123.249.119.122\/Wordpress\/wp-content\/uploads\/2025\/06\/image-13.png\" alt=\"\" class=\"wp-image-190\" srcset=\"http:\/\/123.249.119.122\/Wordpress\/wp-content\/uploads\/2025\/06\/image-13.png 443w, http:\/\/123.249.119.122\/Wordpress\/wp-content\/uploads\/2025\/06\/image-13-300x32.png 300w\" sizes=\"auto, (max-width: 443px) 100vw, 443px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">3.Third,after the installation of httpd,you can check httpd package and start httpd service.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Check the httpd version.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"334\" height=\"69\" src=\"http:\/\/123.249.119.122\/Wordpress\/wp-content\/uploads\/2025\/06\/image-14.png\" alt=\"\" class=\"wp-image-191\" srcset=\"http:\/\/123.249.119.122\/Wordpress\/wp-content\/uploads\/2025\/06\/image-14.png 334w, http:\/\/123.249.119.122\/Wordpress\/wp-content\/uploads\/2025\/06\/image-14-300x62.png 300w\" sizes=\"auto, (max-width: 334px) 100vw, 334px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Check the configuration file of httpd.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"301\" height=\"48\" src=\"http:\/\/123.249.119.122\/Wordpress\/wp-content\/uploads\/2025\/06\/image-15.png\" alt=\"\" class=\"wp-image-192\"\/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Check modules of httpd.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"337\" height=\"119\" src=\"http:\/\/123.249.119.122\/Wordpress\/wp-content\/uploads\/2025\/06\/image-28.png\" alt=\"\" class=\"wp-image-217\" srcset=\"http:\/\/123.249.119.122\/Wordpress\/wp-content\/uploads\/2025\/06\/image-28.png 337w, http:\/\/123.249.119.122\/Wordpress\/wp-content\/uploads\/2025\/06\/image-28-300x106.png 300w\" sizes=\"auto, (max-width: 337px) 100vw, 337px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Input <strong>&#8216;systemctl start httpd&#8217;<\/strong> to start the service.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Input <strong>&#8216;systemctl enable &#8211;now httpd&#8217;<\/strong> to start the service automatically after booting.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Input <strong>&#8216;systemctl status httpd&#8217;<\/strong> to check the status of httpd.If the httpd service is failed,you can find problems by this command.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1005\" height=\"433\" src=\"http:\/\/123.249.119.122\/Wordpress\/wp-content\/uploads\/2025\/06\/image-16.png\" alt=\"\" class=\"wp-image-193\" srcset=\"http:\/\/123.249.119.122\/Wordpress\/wp-content\/uploads\/2025\/06\/image-16.png 1005w, http:\/\/123.249.119.122\/Wordpress\/wp-content\/uploads\/2025\/06\/image-16-300x129.png 300w, http:\/\/123.249.119.122\/Wordpress\/wp-content\/uploads\/2025\/06\/image-16-768x331.png 768w\" sizes=\"auto, (max-width: 1005px) 100vw, 1005px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Input <strong>&#8216;systemctl reload httpd&#8217;<\/strong> to reload the service.Input <strong>&#8216;systemctl restart httpd&#8217;<\/strong> to restart the service.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">When the httpd service is running.The initial test page will like this.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"190\" src=\"http:\/\/123.249.119.122\/Wordpress\/wp-content\/uploads\/2025\/06\/image-19-1024x190.png\" alt=\"\" class=\"wp-image-198\" srcset=\"http:\/\/123.249.119.122\/Wordpress\/wp-content\/uploads\/2025\/06\/image-19-1024x190.png 1024w, http:\/\/123.249.119.122\/Wordpress\/wp-content\/uploads\/2025\/06\/image-19-300x56.png 300w, http:\/\/123.249.119.122\/Wordpress\/wp-content\/uploads\/2025\/06\/image-19-768x142.png 768w, http:\/\/123.249.119.122\/Wordpress\/wp-content\/uploads\/2025\/06\/image-19-1536x285.png 1536w, http:\/\/123.249.119.122\/Wordpress\/wp-content\/uploads\/2025\/06\/image-19.png 1898w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">4.Fourth,you can edit the configuration file of httpd.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The configuration file of httpd located in the directory <strong>&#8216;\/etc\/httpd&#8217;<\/strong>.The main configuration directory is <strong>&#8216;\/etc\/httpd\/conf&#8217;<\/strong>,auxiliary configuration directory is <strong>&#8216;\/etc\/httpd\/conf.d&#8217;<\/strong>,module configuration directory is <strong>&#8216;\/etc\/httpd\/conf.module.d&#8217;<\/strong>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">4.1.The main configuration file of httpd.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The main configuration file is <strong>&#8216;httpd.conf&#8217;<\/strong> located in the directory <strong>&#8216;\/etc\/httpd\/conf&#8217;<\/strong>.This is the content of <strong>&#8216;httpd.conf&#8217;<\/strong>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">All of configuration file located in the directory <strong>&#8216;\/etc\/httpd&#8217;<\/strong>.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"212\" height=\"23\" src=\"http:\/\/123.249.119.122\/Wordpress\/wp-content\/uploads\/2025\/06\/image-23.png\" alt=\"\" class=\"wp-image-210\"\/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">The initial port of httpd service is 80.You can modify port and change the rule of your security group to change the port.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"102\" height=\"26\" src=\"http:\/\/123.249.119.122\/Wordpress\/wp-content\/uploads\/2025\/06\/image-24.png\" alt=\"\" class=\"wp-image-211\"\/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">The server name.It can be domain name,can be IP address,and you can add port after the server name.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"272\" height=\"25\" src=\"http:\/\/123.249.119.122\/Wordpress\/wp-content\/uploads\/2025\/06\/image-25.png\" alt=\"\" class=\"wp-image-212\"\/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">The document root directory is <strong>&#8216;\/var\/www\/html&#8217;<\/strong>,you can add contents in this directory.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"260\" height=\"26\" src=\"http:\/\/123.249.119.122\/Wordpress\/wp-content\/uploads\/2025\/06\/image-26.png\" alt=\"\" class=\"wp-image-214\"\/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Set the access control authorization.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"213\" height=\"99\" src=\"http:\/\/123.249.119.122\/Wordpress\/wp-content\/uploads\/2025\/06\/image-27.png\" alt=\"\" class=\"wp-image-216\"\/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">The default website file is <strong>index.html<\/strong>.You can edit <strong>index.html<\/strong> to edit the index page of your server.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"273\" height=\"72\" src=\"http:\/\/123.249.119.122\/Wordpress\/wp-content\/uploads\/2025\/06\/image-29.png\" alt=\"\" class=\"wp-image-218\"\/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">4.2.Auxiliary configuration files.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Auxiliary configuration files located in the directory <strong>&#8216;\/etc\/httpd\/conf.d&#8217;<\/strong>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">For example,you can edit <strong>&#8216;module.conf&#8217;<\/strong> in the directory <strong>&#8216;\/etc\/httpd\/conf.d&#8217;<\/strong> to check the status of cloud server.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"248\" height=\"143\" src=\"http:\/\/123.249.119.122\/Wordpress\/wp-content\/uploads\/2025\/06\/image-20.png\" alt=\"\" class=\"wp-image-201\"\/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Then reload the httpd service and input IP\/server-status to check the status.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"951\" height=\"561\" src=\"http:\/\/123.249.119.122\/Wordpress\/wp-content\/uploads\/2025\/06\/image-18.png\" alt=\"\" class=\"wp-image-196\" srcset=\"http:\/\/123.249.119.122\/Wordpress\/wp-content\/uploads\/2025\/06\/image-18.png 951w, http:\/\/123.249.119.122\/Wordpress\/wp-content\/uploads\/2025\/06\/image-18-300x177.png 300w, http:\/\/123.249.119.122\/Wordpress\/wp-content\/uploads\/2025\/06\/image-18-768x453.png 768w\" sizes=\"auto, (max-width: 951px) 100vw, 951px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">If you want to deploy php,or build LAMP\/LNMP enviorment.(Linux operating system,Apache\/Nginx web server,Mysql\/Mariadb database,Php\/Python developing language)You can edit the configuration file <strong>&#8216;php.conf&#8217;<\/strong>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Httpd service is an open-source Http webserver based on the modern operating system like Linux,Windows,and so on.This is the fundamental of Httpd service.This post introduce how to deploy your httpd in your Linux operating system like EulerOS,openEuler,Redhat,and so on. 1.First,you should prepare your Linux operating system on your personal computer\/cloud server\/server and ensure the network [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-185","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"http:\/\/123.249.119.122\/Wordpress\/index.php\/wp-json\/wp\/v2\/posts\/185","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/123.249.119.122\/Wordpress\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/123.249.119.122\/Wordpress\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/123.249.119.122\/Wordpress\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/123.249.119.122\/Wordpress\/index.php\/wp-json\/wp\/v2\/comments?post=185"}],"version-history":[{"count":9,"href":"http:\/\/123.249.119.122\/Wordpress\/index.php\/wp-json\/wp\/v2\/posts\/185\/revisions"}],"predecessor-version":[{"id":219,"href":"http:\/\/123.249.119.122\/Wordpress\/index.php\/wp-json\/wp\/v2\/posts\/185\/revisions\/219"}],"wp:attachment":[{"href":"http:\/\/123.249.119.122\/Wordpress\/index.php\/wp-json\/wp\/v2\/media?parent=185"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/123.249.119.122\/Wordpress\/index.php\/wp-json\/wp\/v2\/categories?post=185"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/123.249.119.122\/Wordpress\/index.php\/wp-json\/wp\/v2\/tags?post=185"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}