{"id":1023,"date":"2024-05-15T06:15:23","date_gmt":"2024-05-15T06:15:23","guid":{"rendered":"https:\/\/www.devopsconsulting.in\/blog\/?p=1023"},"modified":"2024-10-30T06:09:50","modified_gmt":"2024-10-30T06:09:50","slug":"xampp-another-web-server-daemon-is-already-running","status":"publish","type":"post","link":"https:\/\/www.devopsconsulting.in\/blog\/xampp-another-web-server-daemon-is-already-running\/","title":{"rendered":"XAMPP: Another web server daemon is already running"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\"><strong>Error:<\/strong><\/h2>\n\n\n\n<p>root@ip-112-21-1-80:\/opt\/lampp# sudo \/opt\/lampp\/lampp stop<br>Stopping XAMPP for Linux 8.2.4-0\u2026<br>XAMPP: Stopping Apache\u2026not running.<br>XAMPP: Stopping MySQL\u2026ok.<br>XAMPP: Stopping&nbsp;ProFTPD\u2026ok.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"542\" height=\"158\" src=\"https:\/\/www.devopsconsulting.in\/blog\/wp-content\/uploads\/2024\/05\/image-5.png\" alt=\"\" class=\"wp-image-1025\" srcset=\"https:\/\/www.devopsconsulting.in\/blog\/wp-content\/uploads\/2024\/05\/image-5.png 542w, https:\/\/www.devopsconsulting.in\/blog\/wp-content\/uploads\/2024\/05\/image-5-300x87.png 300w\" sizes=\"auto, (max-width: 542px) 100vw, 542px\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Solution:<\/h2>\n\n\n\n<p>The error message you&#8217;re seeing indicates that there&#8217;s already a web server running on the ports that XAMPP&#8217;s Apache server is trying to use (typically port 80 for HTTP and port 443 for HTTPS). This conflict prevents Apache from starting. Here\u2019s how you can resolve this issue:<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">1. Identify the Process Using the Ports<\/h3>\n\n\n\n<p>First, you need to find out which process is using the ports that Apache needs. You can do this by using the <code>netstat<\/code> command in the terminal.<\/p>\n\n\n\n<p>Open your terminal and run:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code><code>sudo netstat -tulpn | grep ':80\\|:443'<\/code><\/code><\/pre>\n\n\n\n<p>This command will show you any processes that are using ports 80 and 443. Look for the PID (Process ID) in the output.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">2. Stop the Conflicting Process<\/h3>\n\n\n\n<p>Once you&#8217;ve identified the process, you can stop it. This might be another instance of Apache, nginx, or some other service.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>If the process is another web server like nginx, you can stop it using:bashCopy code<code>sudo systemctl stop nginx<\/code><\/li>\n\n\n\n<li>If it\u2019s another instance of Apache, you can stop it using:bashCopy code<code>sudo systemctl stop apache2<\/code><\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo kill -9 &lt;PID&gt;<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">3. Restart XAMPP&#8217;s Apache Server<\/h3>\n\n\n\n<p>After stopping the conflicting process, try starting XAMPP\u2019s Apache again:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code><code>sudo \/opt\/lampp\/lampp restart<\/code><\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">4. Check Apache Status<\/h3>\n\n\n\n<p>You can check if Apache has started successfully by using:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code><code>sudo \/opt\/lampp\/lampp status<\/code><\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">5. Configure XAMPP to Use Different Ports (Optional<\/h3>\n\n\n\n<p>If you need to run another web server alongside XAMPP&#8217;s Apache, you can configure Apache to use different ports.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Edit the <code>httpd.conf<\/code> file, which is usually located in <code>\/opt\/lampp\/etc\/httpd.conf<\/code>.<\/li>\n\n\n\n<li>Look for lines that say <code>Listen 80<\/code> and change 80 to another port number, e.g., <code>Listen 8080<\/code>.<\/li>\n\n\n\n<li>Also, change the port in the SSL configuration file (<code>httpd-ssl.conf<\/code>), usually located in the same directory, from <code>Listen 443<\/code> to something like <code>Listen 8443<\/code>.<\/li>\n\n\n\n<li>Save the changes and restart XAMPP.<\/li>\n<\/ul>\n\n\n\n<p>After making these changes, Apache in XAMPP should start without conflicting with the other web server.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Error: root@ip-112-21-1-80:\/opt\/lampp# sudo \/opt\/lampp\/lampp stopStopping XAMPP for Linux 8.2.4-0\u2026XAMPP: Stopping Apache\u2026not running.XAMPP: Stopping MySQL\u2026ok.XAMPP: Stopping&nbsp;ProFTPD\u2026ok. Solution: The error message you&#8217;re seeing indicates that there&#8217;s already a web&#8230; <\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[98,133],"tags":[195,197,196],"class_list":["post-1023","post","type-post","status-publish","format-standard","hentry","category-linux","category-xampp","tag-another-web-server-daemon-is-already-running","tag-starting-apachefail-xampp-another-web-server-is-already-running","tag-web-server-daemon-is-already-running"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>XAMPP: Another web server daemon is already running - DevOps Consulting<\/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.devopsconsulting.in\/blog\/xampp-another-web-server-daemon-is-already-running\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"XAMPP: Another web server daemon is already running - DevOps Consulting\" \/>\n<meta property=\"og:description\" content=\"Error: root@ip-112-21-1-80:\/opt\/lampp# sudo \/opt\/lampp\/lampp stopStopping XAMPP for Linux 8.2.4-0\u2026XAMPP: Stopping Apache\u2026not running.XAMPP: Stopping MySQL\u2026ok.XAMPP: Stopping&nbsp;ProFTPD\u2026ok. Solution: The error message you&#8217;re seeing indicates that there&#8217;s already a web...\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.devopsconsulting.in\/blog\/xampp-another-web-server-daemon-is-already-running\/\" \/>\n<meta property=\"og:site_name\" content=\"DevOps Consulting\" \/>\n<meta property=\"article:published_time\" content=\"2024-05-15T06:15:23+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-10-30T06:09:50+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.devopsconsulting.in\/blog\/wp-content\/uploads\/2024\/05\/image-5.png\" \/>\n<meta name=\"author\" content=\"Abhishek Singh\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Abhishek Singh\" \/>\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.devopsconsulting.in\\\/blog\\\/xampp-another-web-server-daemon-is-already-running\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.devopsconsulting.in\\\/blog\\\/xampp-another-web-server-daemon-is-already-running\\\/\"},\"author\":{\"name\":\"Abhishek Singh\",\"@id\":\"https:\\\/\\\/www.devopsconsulting.in\\\/blog\\\/#\\\/schema\\\/person\\\/fc397ba8be42f9fdd53450edfc73006f\"},\"headline\":\"XAMPP: Another web server daemon is already running\",\"datePublished\":\"2024-05-15T06:15:23+00:00\",\"dateModified\":\"2024-10-30T06:09:50+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.devopsconsulting.in\\\/blog\\\/xampp-another-web-server-daemon-is-already-running\\\/\"},\"wordCount\":321,\"commentCount\":0,\"image\":{\"@id\":\"https:\\\/\\\/www.devopsconsulting.in\\\/blog\\\/xampp-another-web-server-daemon-is-already-running\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.devopsconsulting.in\\\/blog\\\/wp-content\\\/uploads\\\/2024\\\/05\\\/image-5.png\",\"keywords\":[\"Another web server daemon is already running\",\"Starting Apache\u2026fail. XAMPP: Another web server is already running\",\"web server daemon is already running\"],\"articleSection\":[\"linux\",\"XAMPP\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.devopsconsulting.in\\\/blog\\\/xampp-another-web-server-daemon-is-already-running\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.devopsconsulting.in\\\/blog\\\/xampp-another-web-server-daemon-is-already-running\\\/\",\"url\":\"https:\\\/\\\/www.devopsconsulting.in\\\/blog\\\/xampp-another-web-server-daemon-is-already-running\\\/\",\"name\":\"XAMPP: Another web server daemon is already running - DevOps Consulting\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.devopsconsulting.in\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.devopsconsulting.in\\\/blog\\\/xampp-another-web-server-daemon-is-already-running\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.devopsconsulting.in\\\/blog\\\/xampp-another-web-server-daemon-is-already-running\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.devopsconsulting.in\\\/blog\\\/wp-content\\\/uploads\\\/2024\\\/05\\\/image-5.png\",\"datePublished\":\"2024-05-15T06:15:23+00:00\",\"dateModified\":\"2024-10-30T06:09:50+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/www.devopsconsulting.in\\\/blog\\\/#\\\/schema\\\/person\\\/fc397ba8be42f9fdd53450edfc73006f\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.devopsconsulting.in\\\/blog\\\/xampp-another-web-server-daemon-is-already-running\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.devopsconsulting.in\\\/blog\\\/xampp-another-web-server-daemon-is-already-running\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.devopsconsulting.in\\\/blog\\\/wp-content\\\/uploads\\\/2024\\\/05\\\/image-5.png\",\"contentUrl\":\"https:\\\/\\\/www.devopsconsulting.in\\\/blog\\\/wp-content\\\/uploads\\\/2024\\\/05\\\/image-5.png\",\"width\":542,\"height\":158},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.devopsconsulting.in\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.devopsconsulting.in\\\/blog\\\/\",\"name\":\"DevOps Consulting\",\"description\":\"DevOps Consulting | SRE Consulting | DevSecOps Consulting | MLOps Consulting\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.devopsconsulting.in\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.devopsconsulting.in\\\/blog\\\/#\\\/schema\\\/person\\\/fc397ba8be42f9fdd53450edfc73006f\",\"name\":\"Abhishek Singh\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/790feefe779852cdf344ca7318bf6c13832223c9b3c6bf4d217658412041026d?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/790feefe779852cdf344ca7318bf6c13832223c9b3c6bf4d217658412041026d?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/790feefe779852cdf344ca7318bf6c13832223c9b3c6bf4d217658412041026d?s=96&d=mm&r=g\",\"caption\":\"Abhishek Singh\"},\"description\":\"I\u2019m Abhishek, a DevOps, SRE, DevSecOps, and Cloud expert with a passion for sharing knowledge and real-world experiences. I\u2019ve had the opportunity to work with Cotocus and continue to contribute to multiple platforms where I share insights across different domains: \u2022 DevOps School \u2013 Tech blogs and tutorials \u2022 Holiday Landmark \u2013 Travel stories and guides \u2022 Stocks Mantra \u2013 Stock market strategies and tips \u2022 My Medic Plus \u2013 Health and fitness guidance \u2022 TrueReviewNow \u2013 Honest product reviews \u2022 Wizbrand \u2013 SEO and digital tools for businesses I\u2019m also exploring the fascinating world of Quantum Computing.\",\"url\":\"https:\\\/\\\/www.devopsconsulting.in\\\/blog\\\/author\\\/abhishek\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"XAMPP: Another web server daemon is already running - DevOps Consulting","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.devopsconsulting.in\/blog\/xampp-another-web-server-daemon-is-already-running\/","og_locale":"en_US","og_type":"article","og_title":"XAMPP: Another web server daemon is already running - DevOps Consulting","og_description":"Error: root@ip-112-21-1-80:\/opt\/lampp# sudo \/opt\/lampp\/lampp stopStopping XAMPP for Linux 8.2.4-0\u2026XAMPP: Stopping Apache\u2026not running.XAMPP: Stopping MySQL\u2026ok.XAMPP: Stopping&nbsp;ProFTPD\u2026ok. Solution: The error message you&#8217;re seeing indicates that there&#8217;s already a web...","og_url":"https:\/\/www.devopsconsulting.in\/blog\/xampp-another-web-server-daemon-is-already-running\/","og_site_name":"DevOps Consulting","article_published_time":"2024-05-15T06:15:23+00:00","article_modified_time":"2024-10-30T06:09:50+00:00","og_image":[{"url":"https:\/\/www.devopsconsulting.in\/blog\/wp-content\/uploads\/2024\/05\/image-5.png","type":"","width":"","height":""}],"author":"Abhishek Singh","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Abhishek Singh","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.devopsconsulting.in\/blog\/xampp-another-web-server-daemon-is-already-running\/#article","isPartOf":{"@id":"https:\/\/www.devopsconsulting.in\/blog\/xampp-another-web-server-daemon-is-already-running\/"},"author":{"name":"Abhishek Singh","@id":"https:\/\/www.devopsconsulting.in\/blog\/#\/schema\/person\/fc397ba8be42f9fdd53450edfc73006f"},"headline":"XAMPP: Another web server daemon is already running","datePublished":"2024-05-15T06:15:23+00:00","dateModified":"2024-10-30T06:09:50+00:00","mainEntityOfPage":{"@id":"https:\/\/www.devopsconsulting.in\/blog\/xampp-another-web-server-daemon-is-already-running\/"},"wordCount":321,"commentCount":0,"image":{"@id":"https:\/\/www.devopsconsulting.in\/blog\/xampp-another-web-server-daemon-is-already-running\/#primaryimage"},"thumbnailUrl":"https:\/\/www.devopsconsulting.in\/blog\/wp-content\/uploads\/2024\/05\/image-5.png","keywords":["Another web server daemon is already running","Starting Apache\u2026fail. XAMPP: Another web server is already running","web server daemon is already running"],"articleSection":["linux","XAMPP"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.devopsconsulting.in\/blog\/xampp-another-web-server-daemon-is-already-running\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.devopsconsulting.in\/blog\/xampp-another-web-server-daemon-is-already-running\/","url":"https:\/\/www.devopsconsulting.in\/blog\/xampp-another-web-server-daemon-is-already-running\/","name":"XAMPP: Another web server daemon is already running - DevOps Consulting","isPartOf":{"@id":"https:\/\/www.devopsconsulting.in\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.devopsconsulting.in\/blog\/xampp-another-web-server-daemon-is-already-running\/#primaryimage"},"image":{"@id":"https:\/\/www.devopsconsulting.in\/blog\/xampp-another-web-server-daemon-is-already-running\/#primaryimage"},"thumbnailUrl":"https:\/\/www.devopsconsulting.in\/blog\/wp-content\/uploads\/2024\/05\/image-5.png","datePublished":"2024-05-15T06:15:23+00:00","dateModified":"2024-10-30T06:09:50+00:00","author":{"@id":"https:\/\/www.devopsconsulting.in\/blog\/#\/schema\/person\/fc397ba8be42f9fdd53450edfc73006f"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.devopsconsulting.in\/blog\/xampp-another-web-server-daemon-is-already-running\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.devopsconsulting.in\/blog\/xampp-another-web-server-daemon-is-already-running\/#primaryimage","url":"https:\/\/www.devopsconsulting.in\/blog\/wp-content\/uploads\/2024\/05\/image-5.png","contentUrl":"https:\/\/www.devopsconsulting.in\/blog\/wp-content\/uploads\/2024\/05\/image-5.png","width":542,"height":158},{"@type":"WebSite","@id":"https:\/\/www.devopsconsulting.in\/blog\/#website","url":"https:\/\/www.devopsconsulting.in\/blog\/","name":"DevOps Consulting","description":"DevOps Consulting | SRE Consulting | DevSecOps Consulting | MLOps Consulting","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.devopsconsulting.in\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.devopsconsulting.in\/blog\/#\/schema\/person\/fc397ba8be42f9fdd53450edfc73006f","name":"Abhishek Singh","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/790feefe779852cdf344ca7318bf6c13832223c9b3c6bf4d217658412041026d?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/790feefe779852cdf344ca7318bf6c13832223c9b3c6bf4d217658412041026d?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/790feefe779852cdf344ca7318bf6c13832223c9b3c6bf4d217658412041026d?s=96&d=mm&r=g","caption":"Abhishek Singh"},"description":"I\u2019m Abhishek, a DevOps, SRE, DevSecOps, and Cloud expert with a passion for sharing knowledge and real-world experiences. I\u2019ve had the opportunity to work with Cotocus and continue to contribute to multiple platforms where I share insights across different domains: \u2022 DevOps School \u2013 Tech blogs and tutorials \u2022 Holiday Landmark \u2013 Travel stories and guides \u2022 Stocks Mantra \u2013 Stock market strategies and tips \u2022 My Medic Plus \u2013 Health and fitness guidance \u2022 TrueReviewNow \u2013 Honest product reviews \u2022 Wizbrand \u2013 SEO and digital tools for businesses I\u2019m also exploring the fascinating world of Quantum Computing.","url":"https:\/\/www.devopsconsulting.in\/blog\/author\/abhishek\/"}]}},"_links":{"self":[{"href":"https:\/\/www.devopsconsulting.in\/blog\/wp-json\/wp\/v2\/posts\/1023","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.devopsconsulting.in\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.devopsconsulting.in\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.devopsconsulting.in\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.devopsconsulting.in\/blog\/wp-json\/wp\/v2\/comments?post=1023"}],"version-history":[{"count":4,"href":"https:\/\/www.devopsconsulting.in\/blog\/wp-json\/wp\/v2\/posts\/1023\/revisions"}],"predecessor-version":[{"id":1344,"href":"https:\/\/www.devopsconsulting.in\/blog\/wp-json\/wp\/v2\/posts\/1023\/revisions\/1344"}],"wp:attachment":[{"href":"https:\/\/www.devopsconsulting.in\/blog\/wp-json\/wp\/v2\/media?parent=1023"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.devopsconsulting.in\/blog\/wp-json\/wp\/v2\/categories?post=1023"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.devopsconsulting.in\/blog\/wp-json\/wp\/v2\/tags?post=1023"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}