{"id":259,"date":"2010-06-17T10:09:48","date_gmt":"2010-06-17T10:09:48","guid":{"rendered":"http:\/\/www.scmgalaxy.com\/tutorials\/2010\/06\/17\/apche-interview-questions\/"},"modified":"2021-02-27T09:53:55","modified_gmt":"2021-02-27T09:53:55","slug":"apche-interview-questions","status":"publish","type":"post","link":"https:\/\/www.scmgalaxy.com\/tutorials\/apche-interview-questions\/","title":{"rendered":"Apache Interview Questions &#8211; Apache Job Interview Kit"},"content":{"rendered":"<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-4287 aligncenter\" src=\"https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2010\/06\/apche-interview-questions.png\" alt=\"apche-interview-questions-answers\" width=\"600\" height=\"400\" srcset=\"https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2010\/06\/apche-interview-questions.png 600w, https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2010\/06\/apche-interview-questions-300x200.png 300w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/p>\n<p>Apache Interview Questions &#8211; Apache Job Interview Kit<\/p>\n<p><strong>On a fresh install, why does Apache have three config files &#8211; srm.conf, access.conf and httpd.conf?<\/strong> &#8211; The first two are remnants from the NCSA times, and generally you should be ok if you delete the first two, and stick with httpd.conf.<\/p>\n<p><strong>What\u2019s the command to stop Apache? <\/strong>&#8211; kill the specific process that httpd is running under, or killall httpd. If you have apachectl installed, use apachectl stop.<\/p>\n<p><strong>What does apachectl graceful do?<\/strong> &#8211; It sends a SIGUSR1 for a restart, and starts the apache server if it\u2019s not running.<br \/>\n<strong>How do you check for the httpd.conf consistency and any errors in it?<\/strong> &#8211; apachectl configtest<\/p>\n<p><strong>When I do ps -aux, why do I have one copy of httpd running as root and the rest as nouser?<\/strong> &#8211; You need to be a root to attach yourself to any Unix port below 1024, and we need 80.<\/p>\n<p>But I thought that running apache as a root is a security risk? &#8211; That one root process opens port 80, but never listens to it, so no user will actually enter the site with root rights. If you kill the root process, you will see the other kids disappear as well.<\/p>\n<p><strong>Why do I get the message &#8220;\u2026 no listening sockets available, shutting down&#8221;?<\/strong> &#8211; In Apache 2 you need to have a listen directive. Just put Listen 80 in httpd.conf.<\/p>\n<p><strong>How do you set up a virtual host in Apache? <\/strong><br \/>\n&lt;VirtualHost www.techinterviews.com&gt;<br \/>\nServerAdmin admin@techinterviews.com<br \/>\nDocumentRoot \/home\/apache\/share\/htdocs\/hostedsites<br \/>\nServerName www.techinterviews.com<br \/>\nErrorLog \/home\/apache\/logs\/error\/hostedsites\/error_log<br \/>\nTransferLog \/home\/apache\/logs\/access\/hostedsites\/access_log<br \/>\n&lt;\/VirtualHost&gt;<\/p>\n<p><strong>What is ServerType directive?<\/strong> &#8211; It defines whether Apache should spawn itself as a child process (standalone) or keep everything in a single process (inetd). Keeping it inetd conserves resources. This is deprecated, however.<\/p>\n<p><strong>What is mod_vhost_alias?<\/strong> &#8211; It allows hosting multiple sites on the same server via simpler configurations.<\/p>\n<p><strong>What does htpasswd do?<\/strong> &#8211; It creates a new user in a specified group, and asks to specify a password for that user.<br \/>\nIf you specify both deny from all and allow from all, what will be the default action of Apache? &#8211; In case of ambiguity deny always takes precedence over allow.<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Apache Interview Questions &#8211; Apache Job Interview Kit On a fresh install, why does Apache have three config files &#8211; [&hellip;]<\/p>\n","protected":false},"author":4,"featured_media":4287,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_joinchat":[],"footnotes":""},"categories":[52],"tags":[767,420,3916,3920,3919,3918,3917,3921,3923,766,3922,507,1553,482,1830,3910,637],"class_list":["post-259","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-interview-questions-answers","tag-answer","tag-apache","tag-apache-interview","tag-apache-interview-guide","tag-apache-interview-qa","tag-apache-interview-questions-answers","tag-apache-job-interview","tag-apache-job-interview-kit","tag-apache-server","tag-interview","tag-interview-questions-answer-for-apache","tag-list","tag-most-asked","tag-questions","tag-selected","tag-sets","tag-top"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Apache Interview Questions - Apache Job Interview Kit - scmGalaxy<\/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.scmgalaxy.com\/tutorials\/apche-interview-questions\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Apache Interview Questions - Apache Job Interview Kit - scmGalaxy\" \/>\n<meta property=\"og:description\" content=\"Apache Interview Questions &#8211; Apache Job Interview Kit On a fresh install, why does Apache have three config files &#8211; [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.scmgalaxy.com\/tutorials\/apche-interview-questions\/\" \/>\n<meta property=\"og:site_name\" content=\"scmGalaxy\" \/>\n<meta property=\"article:published_time\" content=\"2010-06-17T10:09:48+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-02-27T09:53:55+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2010\/06\/apche-interview-questions.png\" \/>\n\t<meta property=\"og:image:width\" content=\"600\" \/>\n\t<meta property=\"og:image:height\" content=\"400\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"scmgalaxy K\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"scmgalaxy K\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/apche-interview-questions\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/apche-interview-questions\\\/\"},\"author\":{\"name\":\"scmgalaxy K\",\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/#\\\/schema\\\/person\\\/fc12ad190f540e79460243c81148d102\"},\"headline\":\"Apache Interview Questions &#8211; Apache Job Interview Kit\",\"datePublished\":\"2010-06-17T10:09:48+00:00\",\"dateModified\":\"2021-02-27T09:53:55+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/apche-interview-questions\\\/\"},\"wordCount\":403,\"commentCount\":0,\"image\":{\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/apche-interview-questions\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/wp-content\\\/uploads\\\/2010\\\/06\\\/apche-interview-questions.png\",\"keywords\":[\"Answer\",\"Apache\",\"Apache Interview\",\"Apache Interview Guide\",\"Apache Interview Q&amp;A\",\"Apache Interview Questions &amp; Answers\",\"Apache Job Interview\",\"Apache Job Interview Kit\",\"Apache Server\",\"Interview\",\"Interview Questions &amp; Answer for Apache\",\"list\",\"Most Asked\",\"Questions\",\"Selected\",\"Sets\",\"Top\"],\"articleSection\":[\"Interview Questions &amp; Answers\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/apche-interview-questions\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/apche-interview-questions\\\/\",\"url\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/apche-interview-questions\\\/\",\"name\":\"Apache Interview Questions - Apache Job Interview Kit - scmGalaxy\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/apche-interview-questions\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/apche-interview-questions\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/wp-content\\\/uploads\\\/2010\\\/06\\\/apche-interview-questions.png\",\"datePublished\":\"2010-06-17T10:09:48+00:00\",\"dateModified\":\"2021-02-27T09:53:55+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/#\\\/schema\\\/person\\\/fc12ad190f540e79460243c81148d102\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/apche-interview-questions\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/apche-interview-questions\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/apche-interview-questions\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/wp-content\\\/uploads\\\/2010\\\/06\\\/apche-interview-questions.png\",\"contentUrl\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/wp-content\\\/uploads\\\/2010\\\/06\\\/apche-interview-questions.png\",\"width\":600,\"height\":400,\"caption\":\"apche-interview-questions-answers\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/apche-interview-questions\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Apache Interview Questions &#8211; Apache Job Interview Kit\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/#website\",\"url\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/\",\"name\":\"scmGalaxy\",\"description\":\"A Platform for Software Engineers\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/#\\\/schema\\\/person\\\/fc12ad190f540e79460243c81148d102\",\"name\":\"scmgalaxy K\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/4b902ea8c77ee0a326c112f29d0edf51b7c3e1cd05c4fb92a810177e9c3f12a9?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/4b902ea8c77ee0a326c112f29d0edf51b7c3e1cd05c4fb92a810177e9c3f12a9?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/4b902ea8c77ee0a326c112f29d0edf51b7c3e1cd05c4fb92a810177e9c3f12a9?s=96&d=mm&r=g\",\"caption\":\"scmgalaxy K\"},\"sameAs\":[\"http:\\\/\\\/www.DevOpsSchool.com\"],\"url\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/author\\\/scmgalaxy\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Apache Interview Questions - Apache Job Interview Kit - scmGalaxy","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.scmgalaxy.com\/tutorials\/apche-interview-questions\/","og_locale":"en_US","og_type":"article","og_title":"Apache Interview Questions - Apache Job Interview Kit - scmGalaxy","og_description":"Apache Interview Questions &#8211; Apache Job Interview Kit On a fresh install, why does Apache have three config files &#8211; [&hellip;]","og_url":"https:\/\/www.scmgalaxy.com\/tutorials\/apche-interview-questions\/","og_site_name":"scmGalaxy","article_published_time":"2010-06-17T10:09:48+00:00","article_modified_time":"2021-02-27T09:53:55+00:00","og_image":[{"width":600,"height":400,"url":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2010\/06\/apche-interview-questions.png","type":"image\/png"}],"author":"scmgalaxy K","twitter_card":"summary_large_image","twitter_misc":{"Written by":"scmgalaxy K","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.scmgalaxy.com\/tutorials\/apche-interview-questions\/#article","isPartOf":{"@id":"https:\/\/www.scmgalaxy.com\/tutorials\/apche-interview-questions\/"},"author":{"name":"scmgalaxy K","@id":"https:\/\/www.scmgalaxy.com\/tutorials\/#\/schema\/person\/fc12ad190f540e79460243c81148d102"},"headline":"Apache Interview Questions &#8211; Apache Job Interview Kit","datePublished":"2010-06-17T10:09:48+00:00","dateModified":"2021-02-27T09:53:55+00:00","mainEntityOfPage":{"@id":"https:\/\/www.scmgalaxy.com\/tutorials\/apche-interview-questions\/"},"wordCount":403,"commentCount":0,"image":{"@id":"https:\/\/www.scmgalaxy.com\/tutorials\/apche-interview-questions\/#primaryimage"},"thumbnailUrl":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2010\/06\/apche-interview-questions.png","keywords":["Answer","Apache","Apache Interview","Apache Interview Guide","Apache Interview Q&amp;A","Apache Interview Questions &amp; Answers","Apache Job Interview","Apache Job Interview Kit","Apache Server","Interview","Interview Questions &amp; Answer for Apache","list","Most Asked","Questions","Selected","Sets","Top"],"articleSection":["Interview Questions &amp; Answers"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.scmgalaxy.com\/tutorials\/apche-interview-questions\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.scmgalaxy.com\/tutorials\/apche-interview-questions\/","url":"https:\/\/www.scmgalaxy.com\/tutorials\/apche-interview-questions\/","name":"Apache Interview Questions - Apache Job Interview Kit - scmGalaxy","isPartOf":{"@id":"https:\/\/www.scmgalaxy.com\/tutorials\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.scmgalaxy.com\/tutorials\/apche-interview-questions\/#primaryimage"},"image":{"@id":"https:\/\/www.scmgalaxy.com\/tutorials\/apche-interview-questions\/#primaryimage"},"thumbnailUrl":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2010\/06\/apche-interview-questions.png","datePublished":"2010-06-17T10:09:48+00:00","dateModified":"2021-02-27T09:53:55+00:00","author":{"@id":"https:\/\/www.scmgalaxy.com\/tutorials\/#\/schema\/person\/fc12ad190f540e79460243c81148d102"},"breadcrumb":{"@id":"https:\/\/www.scmgalaxy.com\/tutorials\/apche-interview-questions\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.scmgalaxy.com\/tutorials\/apche-interview-questions\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.scmgalaxy.com\/tutorials\/apche-interview-questions\/#primaryimage","url":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2010\/06\/apche-interview-questions.png","contentUrl":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2010\/06\/apche-interview-questions.png","width":600,"height":400,"caption":"apche-interview-questions-answers"},{"@type":"BreadcrumbList","@id":"https:\/\/www.scmgalaxy.com\/tutorials\/apche-interview-questions\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.scmgalaxy.com\/tutorials\/"},{"@type":"ListItem","position":2,"name":"Apache Interview Questions &#8211; Apache Job Interview Kit"}]},{"@type":"WebSite","@id":"https:\/\/www.scmgalaxy.com\/tutorials\/#website","url":"https:\/\/www.scmgalaxy.com\/tutorials\/","name":"scmGalaxy","description":"A Platform for Software Engineers","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.scmgalaxy.com\/tutorials\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.scmgalaxy.com\/tutorials\/#\/schema\/person\/fc12ad190f540e79460243c81148d102","name":"scmgalaxy K","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/4b902ea8c77ee0a326c112f29d0edf51b7c3e1cd05c4fb92a810177e9c3f12a9?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/4b902ea8c77ee0a326c112f29d0edf51b7c3e1cd05c4fb92a810177e9c3f12a9?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/4b902ea8c77ee0a326c112f29d0edf51b7c3e1cd05c4fb92a810177e9c3f12a9?s=96&d=mm&r=g","caption":"scmgalaxy K"},"sameAs":["http:\/\/www.DevOpsSchool.com"],"url":"https:\/\/www.scmgalaxy.com\/tutorials\/author\/scmgalaxy\/"}]}},"_links":{"self":[{"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/posts\/259","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/comments?post=259"}],"version-history":[{"count":2,"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/posts\/259\/revisions"}],"predecessor-version":[{"id":4289,"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/posts\/259\/revisions\/4289"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/media\/4287"}],"wp:attachment":[{"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/media?parent=259"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/categories?post=259"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/tags?post=259"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}