{"id":6025,"date":"2020-12-26T17:02:02","date_gmt":"2020-12-26T11:32:02","guid":{"rendered":"https:\/\/blog.pheonixsolutions.com\/?p=6025"},"modified":"2020-12-26T17:02:07","modified_gmt":"2020-12-26T11:32:07","slug":"how-to-troubleshoot-when-your-site-is-down-on-a-linux-server","status":"publish","type":"post","link":"https:\/\/pheonixsolutions.com\/blog\/how-to-troubleshoot-when-your-site-is-down-on-a-linux-server\/","title":{"rendered":"How To Troubleshoot When your site is down on a Linux Server"},"content":{"rendered":"\n<p>Sometimes we may run in to troubles when one of our web-server or site is down,We should be able to identify this problem which are likely causing the issues and fix the problem.<\/p>\n\n\n\n<p>Please follow the below steps which are the some of the common steps taken by administrators when a site is not accessible correctly. We can refer this steps and fix the issue so that wwe can get the site up and running.<\/p>\n\n\n\n<ol class=\"wp-block-list\"><li>Access to the Linux server with root or sudo user. If you are not able to login to your server,Chances are that your server is down or in hanged state<\/li><li>Before proceeding futher, first check the server status with the below command in the example. Replace the Ip with your Ip. You will get the output which is in the example.<br><strong>Note:- <\/strong>You may sometimes not be able to ping the server even when your server is UP and this may be due to ping being disabled on your server<br><strong><span class=\"has-inline-color has-very-dark-gray-color\">ping your server ip<\/span><\/strong><br>Ex:- <strong>ping 1.2.3.4<\/strong><br>PING 1.2.3.4 (1.2.3.4) 56(84) bytes of data.<br>64 bytes from 1.2.3.4: icmp_seq=1 ttl=49 time=367 ms<br>64 bytes from 1.2.3.4: icmp_seq=2 ttl=49 time=390 ms<br>64 bytes from 1.2.3.4: icmp_seq=3 ttl=49 time=300 ms<\/li><li>If your server is down,in that case you will get not get any ping.<\/li><li>After that we need to check the logs. If you have an Apache server running on an Ubuntu server, by default the logs will be kept in <strong>\/var\/log\/apache2<\/strong>. If you\u2019re using a distribution that refers to Apache as httpd by default the logs will be kept at <strong>\/var\/log\/httpd.log<\/strong>. If you are using Nginx as your web server,The logs are usually located at below location.<br><strong>\/<strong>var\/log\/nginx\/access.log<\/strong><\/strong><br><strong><strong>\/var\/log\/nginx\/error.log<\/strong><\/strong><br><strong><strong>\/var\/log\/nginx\/nginx_error.log<\/strong><\/strong><br><strong><strong>\/var\/log\/nginx\/access_error.log<\/strong><\/strong><\/li><li>Check the files in this directory to see what kind of error messages are being generated. Based on the error we need to troubleshoot.<\/li><li>To check the latest logs generated from the server,You can run below <strong>tail<\/strong> command as shown in below example.<br><strong>tail -f  \/var\/log\/nginx\/access.log<\/strong><br><strong>tail -f \/var\/log\/httpd.log<\/strong><\/li><li>Make sure your web server is running.<br><strong>service apache2 status<\/strong><\/li><li>If the web server is in stopped state then start it with the below command.<br><strong>service apache2 start<\/strong> <br>If you are using httpd then use the below command.<br><strong>service httpd start<br><\/strong>If you are using nginx then use the below command.<br><strong>service nginx start<\/strong><\/li><li>Verifying the Syntax of Web server. Please use the below commands.<br>nginx:- <strong>nginx -t<\/strong><br>apache2:- <strong>apache2ctl -t<\/strong><br>httpd:- <strong>httpd -t<\/strong><\/li><li>Once you run the above command you will get the message like <strong>Syntax OK <\/strong>or <strong>Test is successful<\/strong>. This means that no issues at your web server configuration.If you get message like \u201ctest failed\u201d then there is an invalid argument which are provided in the configuration file and that needs to be edited.<\/li><li>Check the database back-end running fine. Run the below command to verify if your database MySQL\/Mongod whichever you are running.<br><strong>service mysql status<\/strong><br><strong>service mongod status<\/strong><\/li><li>If mysql or whatever the database is not running then start it with the below command. If you are unable to start, you need to check the logs.<br><strong>ex:- tail -f  \/var\/log\/mysql\/error.log<br>less \/var\/log\/mysql\/error.log<\/strong><br>According to the error you need to troubleshoot.<\/li><li>Make sure the Ports are open. You can check whether if the configured ports are open with telnet command.<br><strong>telnet 1.2.3.4 80<br>telnet 1.2.3.4 443<\/strong><br><strong>telnet 1.2.3.4 3306<\/strong>  <\/li><li>By performing the above steps you will know where the issues is and based on that you need to troubleshoot and solve the issue.<\/li><\/ol>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Sometimes we may run in to troubles when one of our web-server or site is down,We should be able to identify this problem which are likely causing the issues and fix the problem. Please follow the below steps which are the some of the common steps taken by administrators when&hellip; <a href=\"https:\/\/pheonixsolutions.com\/blog\/how-to-troubleshoot-when-your-site-is-down-on-a-linux-server\/\" class=\"more-link read-more\" rel=\"bookmark\">Continue Reading <span class=\"screen-reader-text\">How To Troubleshoot When your site is down on a Linux Server<\/span><i class=\"fa fa-arrow-right\"><\/i><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[637,298,220],"tags":[278,271,797],"class_list":{"0":"post-6025","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"hentry","6":"category-apache-2","7":"category-nginx","8":"category-web-server","9":"tag-apache","10":"tag-nginx","11":"tag-website-down","12":"h-entry","14":"h-as-article"},"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Pheonix Solutions - We Empower Your Business Growth<\/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:\/\/pheonixsolutions.com\/blog\/how-to-troubleshoot-when-your-site-is-down-on-a-linux-server\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Pheonix Solutions - We Empower Your Business Growth\" \/>\n<meta property=\"og:description\" content=\"Sometimes we may run in to troubles when one of our web-server or site is down,We should be able to identify this problem which are likely causing the issues and fix the problem. Please follow the below steps which are the some of the common steps taken by administrators when&hellip; Continue Reading How To Troubleshoot When your site is down on a Linux Server\" \/>\n<meta property=\"og:url\" content=\"https:\/\/pheonixsolutions.com\/blog\/how-to-troubleshoot-when-your-site-is-down-on-a-linux-server\/\" \/>\n<meta property=\"og:site_name\" content=\"PHEONIXSOLUTIONS\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/PheonixSolutions-209942982759387\/\" \/>\n<meta property=\"article:published_time\" content=\"2020-12-26T11:32:02+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2020-12-26T11:32:07+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2016\/09\/PX2.png\" \/>\n\t<meta property=\"og:image:width\" content=\"3837\" \/>\n\t<meta property=\"og:image:height\" content=\"2540\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@pheonixsolution\" \/>\n<meta name=\"twitter:site\" content=\"@pheonixsolution\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/how-to-troubleshoot-when-your-site-is-down-on-a-linux-server\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/how-to-troubleshoot-when-your-site-is-down-on-a-linux-server\\\/\"},\"author\":{\"name\":\"admin\",\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/#\\\/schema\\\/person\\\/0ffa33d73c869faec2d50e79c24e3503\"},\"headline\":\"How To Troubleshoot When your site is down on a Linux Server\",\"datePublished\":\"2020-12-26T11:32:02+00:00\",\"dateModified\":\"2020-12-26T11:32:07+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/how-to-troubleshoot-when-your-site-is-down-on-a-linux-server\\\/\"},\"wordCount\":632,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/#organization\"},\"keywords\":[\"Apache\",\"Nginx\",\"website down\"],\"articleSection\":[\"Apache\",\"Nginx\",\"Web Server\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/how-to-troubleshoot-when-your-site-is-down-on-a-linux-server\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/how-to-troubleshoot-when-your-site-is-down-on-a-linux-server\\\/\",\"url\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/how-to-troubleshoot-when-your-site-is-down-on-a-linux-server\\\/\",\"name\":\"Pheonix Solutions - We Empower Your Business Growth\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/#website\"},\"datePublished\":\"2020-12-26T11:32:02+00:00\",\"dateModified\":\"2020-12-26T11:32:07+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/how-to-troubleshoot-when-your-site-is-down-on-a-linux-server\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/how-to-troubleshoot-when-your-site-is-down-on-a-linux-server\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/how-to-troubleshoot-when-your-site-is-down-on-a-linux-server\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How To Troubleshoot When your site is down on a Linux Server\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/\",\"name\":\"Pheonix Solutions\",\"description\":\"We Empower Your Business Growth\",\"publisher\":{\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/#organization\",\"name\":\"PheonixSolutions\",\"url\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/wp-content\\\/uploads\\\/2016\\\/12\\\/logo.png\",\"contentUrl\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/wp-content\\\/uploads\\\/2016\\\/12\\\/logo.png\",\"width\":454,\"height\":300,\"caption\":\"PheonixSolutions\"},\"image\":{\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/PheonixSolutions-209942982759387\\\/\",\"https:\\\/\\\/x.com\\\/pheonixsolution\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/#\\\/schema\\\/person\\\/0ffa33d73c869faec2d50e79c24e3503\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/09bacc0294abee1322a23ab4bc6a0330dd4cb4df707dc9d0b0efeba6c109608b?s=96&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/09bacc0294abee1322a23ab4bc6a0330dd4cb4df707dc9d0b0efeba6c109608b?s=96&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/09bacc0294abee1322a23ab4bc6a0330dd4cb4df707dc9d0b0efeba6c109608b?s=96&r=g\",\"caption\":\"admin\"},\"sameAs\":[\"http:\\\/\\\/blog.pheonixsolutions.com\"],\"url\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/author\\\/admin\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Pheonix Solutions - We Empower Your Business Growth","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:\/\/pheonixsolutions.com\/blog\/how-to-troubleshoot-when-your-site-is-down-on-a-linux-server\/","og_locale":"en_US","og_type":"article","og_title":"Pheonix Solutions - We Empower Your Business Growth","og_description":"Sometimes we may run in to troubles when one of our web-server or site is down,We should be able to identify this problem which are likely causing the issues and fix the problem. Please follow the below steps which are the some of the common steps taken by administrators when&hellip; Continue Reading How To Troubleshoot When your site is down on a Linux Server","og_url":"https:\/\/pheonixsolutions.com\/blog\/how-to-troubleshoot-when-your-site-is-down-on-a-linux-server\/","og_site_name":"PHEONIXSOLUTIONS","article_publisher":"https:\/\/www.facebook.com\/PheonixSolutions-209942982759387\/","article_published_time":"2020-12-26T11:32:02+00:00","article_modified_time":"2020-12-26T11:32:07+00:00","og_image":[{"width":3837,"height":2540,"url":"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2016\/09\/PX2.png","type":"image\/png"}],"author":"admin","twitter_card":"summary_large_image","twitter_creator":"@pheonixsolution","twitter_site":"@pheonixsolution","twitter_misc":{"Written by":"admin","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/pheonixsolutions.com\/blog\/how-to-troubleshoot-when-your-site-is-down-on-a-linux-server\/#article","isPartOf":{"@id":"https:\/\/pheonixsolutions.com\/blog\/how-to-troubleshoot-when-your-site-is-down-on-a-linux-server\/"},"author":{"name":"admin","@id":"https:\/\/pheonixsolutions.com\/blog\/#\/schema\/person\/0ffa33d73c869faec2d50e79c24e3503"},"headline":"How To Troubleshoot When your site is down on a Linux Server","datePublished":"2020-12-26T11:32:02+00:00","dateModified":"2020-12-26T11:32:07+00:00","mainEntityOfPage":{"@id":"https:\/\/pheonixsolutions.com\/blog\/how-to-troubleshoot-when-your-site-is-down-on-a-linux-server\/"},"wordCount":632,"commentCount":0,"publisher":{"@id":"https:\/\/pheonixsolutions.com\/blog\/#organization"},"keywords":["Apache","Nginx","website down"],"articleSection":["Apache","Nginx","Web Server"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/pheonixsolutions.com\/blog\/how-to-troubleshoot-when-your-site-is-down-on-a-linux-server\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/pheonixsolutions.com\/blog\/how-to-troubleshoot-when-your-site-is-down-on-a-linux-server\/","url":"https:\/\/pheonixsolutions.com\/blog\/how-to-troubleshoot-when-your-site-is-down-on-a-linux-server\/","name":"Pheonix Solutions - We Empower Your Business Growth","isPartOf":{"@id":"https:\/\/pheonixsolutions.com\/blog\/#website"},"datePublished":"2020-12-26T11:32:02+00:00","dateModified":"2020-12-26T11:32:07+00:00","breadcrumb":{"@id":"https:\/\/pheonixsolutions.com\/blog\/how-to-troubleshoot-when-your-site-is-down-on-a-linux-server\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/pheonixsolutions.com\/blog\/how-to-troubleshoot-when-your-site-is-down-on-a-linux-server\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/pheonixsolutions.com\/blog\/how-to-troubleshoot-when-your-site-is-down-on-a-linux-server\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/pheonixsolutions.com\/blog\/"},{"@type":"ListItem","position":2,"name":"How To Troubleshoot When your site is down on a Linux Server"}]},{"@type":"WebSite","@id":"https:\/\/pheonixsolutions.com\/blog\/#website","url":"https:\/\/pheonixsolutions.com\/blog\/","name":"Pheonix Solutions","description":"We Empower Your Business Growth","publisher":{"@id":"https:\/\/pheonixsolutions.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/pheonixsolutions.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/pheonixsolutions.com\/blog\/#organization","name":"PheonixSolutions","url":"https:\/\/pheonixsolutions.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/pheonixsolutions.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2016\/12\/logo.png","contentUrl":"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2016\/12\/logo.png","width":454,"height":300,"caption":"PheonixSolutions"},"image":{"@id":"https:\/\/pheonixsolutions.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/PheonixSolutions-209942982759387\/","https:\/\/x.com\/pheonixsolution"]},{"@type":"Person","@id":"https:\/\/pheonixsolutions.com\/blog\/#\/schema\/person\/0ffa33d73c869faec2d50e79c24e3503","name":"admin","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/09bacc0294abee1322a23ab4bc6a0330dd4cb4df707dc9d0b0efeba6c109608b?s=96&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/09bacc0294abee1322a23ab4bc6a0330dd4cb4df707dc9d0b0efeba6c109608b?s=96&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/09bacc0294abee1322a23ab4bc6a0330dd4cb4df707dc9d0b0efeba6c109608b?s=96&r=g","caption":"admin"},"sameAs":["http:\/\/blog.pheonixsolutions.com"],"url":"https:\/\/pheonixsolutions.com\/blog\/author\/admin\/"}]}},"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p7F4uM-1zb","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/posts\/6025","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/comments?post=6025"}],"version-history":[{"count":0,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/posts\/6025\/revisions"}],"wp:attachment":[{"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/media?parent=6025"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/categories?post=6025"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/tags?post=6025"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}