{"id":982,"date":"2017-03-08T14:35:54","date_gmt":"2017-03-08T14:35:54","guid":{"rendered":"http:\/\/www.haxed.me.uk\/?p=982"},"modified":"2017-03-08T14:35:54","modified_gmt":"2017-03-08T14:35:54","slug":"migrating-plesk-site-moving-keeps-going-default-plesk-page","status":"publish","type":"post","link":"https:\/\/haxed.me.uk\/index.php\/2017\/03\/08\/migrating-plesk-site-moving-keeps-going-default-plesk-page\/","title":{"rendered":"Migrating a Plesk site after moving keeps going to default plesk page"},"content":{"rendered":"<p>So today a customer had this really weird issue where we could see that the website domain that had been moved from one server to a new plesk server, wasn&#8217;t correctly loading. It actually turned out to be simple, and when trying to access a file on the domain like I would get the phpinfo.php file.<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\ncurl http:\/\/www.customerswebsite.com\/info.php \r\n<\/pre>\n<p>This suggested to me the website documentroot was working, and the only thing missing was probably the index. This is what it actually did turn out to me.<\/p>\n<p>I wanted to test though that info.php really was in this documentroot, and not some other virtualhost documentroot, so I moved the info.php file to randomnumbers12313.php and the page still loaded, this confirms by adding that file on the filesystem that all is well, and that I found correct site, important when troubleshooting vast configurations. <\/p>\n<p>I also found a really handy one liner for troubleshooting which file it comes out, this might not be great on a really busy server, but you could still grep for your IP address as well.<\/p>\n<p><strong> Visit the broken\/affected website we will troubleshoot <\/strong><\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\ncurl -I somecustomerswebsite.com\r\n<\/pre>\n<p><strong>Give all visitors to all apache websites occurring now whilst we visit it ourselves for testing<\/strong><\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\ntail -f \/var\/log\/httpd\/*.log \r\n<\/pre>\n<p>This will show us which virtualhost and\/or path is being accessed, from where.<\/p>\n<p><strong> Give only visitors to all apache websites occurring on a given IP <\/strong><\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\ntail -f \/var\/log\/httpd\/*.log  | grep 4.2.2.4\r\n<\/pre>\n<p>Where 4.2.2.4 is your IP address your using to visit the site. If you don&#8217;t know what your Ip is type icanhazip into google, or &#8216;what is my ip&#8217;, job done.<\/p>\n<p><strong> Fixing the Plesk website without a directory index <\/strong><\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\n&#x5B;root@mehcakes-App1 conf]# plesk bin domain --update somecustomerswebsite.com -nginx-serve-php true -apache-directory-index index.php\r\n<\/pre>\n<p>Simple enough&#8230; but could be a pain if you don&#8217;t know what your looking for.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>So today a customer had this really weird issue where we could see that the website domain that had been moved from one server to a new plesk server, wasn&#8217;t correctly loading. It actually turned out to be simple, and &hellip; <a href=\"https:\/\/haxed.me.uk\/index.php\/2017\/03\/08\/migrating-plesk-site-moving-keeps-going-default-plesk-page\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[33,63,61,82,20],"tags":[],"class_list":["post-982","post","type-post","status-publish","format-standard","hentry","category-apache","category-disk-tools","category-rackspace","category-troubleshooting","category-webhosting"],"_links":{"self":[{"href":"https:\/\/haxed.me.uk\/index.php\/wp-json\/wp\/v2\/posts\/982","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/haxed.me.uk\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/haxed.me.uk\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/haxed.me.uk\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/haxed.me.uk\/index.php\/wp-json\/wp\/v2\/comments?post=982"}],"version-history":[{"count":1,"href":"https:\/\/haxed.me.uk\/index.php\/wp-json\/wp\/v2\/posts\/982\/revisions"}],"predecessor-version":[{"id":983,"href":"https:\/\/haxed.me.uk\/index.php\/wp-json\/wp\/v2\/posts\/982\/revisions\/983"}],"wp:attachment":[{"href":"https:\/\/haxed.me.uk\/index.php\/wp-json\/wp\/v2\/media?parent=982"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/haxed.me.uk\/index.php\/wp-json\/wp\/v2\/categories?post=982"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/haxed.me.uk\/index.php\/wp-json\/wp\/v2\/tags?post=982"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}