Webspace problem

Web hosting, FTP/database access, mirror services and hosted blogs
ercatli
Posts: 105
Joined: Thu Apr 13, 2006 9:14 am
Location: Sydney
Contact:

Webspace problem

Post by ercatli » Sat Jul 14, 2012 7:38 pm

I am wondering if you can help me please.

I have paid webspace with Exetel, and on it I have a website: http://www.is-there-a-god.info.

Part of the website is a Wordpress blog: http://www.is-there-a-god.info/blog. Until 24 hours ago, everything was working fine. But since then, while I can still access every other part of the website (which includes a number of sub-directories), I can no longer access the blog.

When I check via my ftp software, the files are all still there, same as always as far as I can tell.

I have done nothing to change the files (as far as I know), and other php files on my site still function, so it cannot be a fault with your php files.

So I am at a loss, and am wondering if you have any suggestions as to why the blog is no longer accessible? Could someone have posted a spam comment that has been found to be nasty in some way and you have automatically shut down that subdirectory??

Thank you.

Dazzled
Volunteer Site Admin
Posts: 6003
Joined: Mon Nov 13, 2006 1:16 pm
Location: Sydney

Re: Webspace problem

Post by Dazzled » Sat Jul 14, 2012 8:32 pm

It does work, but it's very slow, so you might be timing out your browser. There is a redirect to negotiate. I can't tell what you are server-side doing. I can get there in Opera if I drop the time limit.

The eventual header response that finally comes from http://www.is-there-a-god.info/about/welcome.shtml is:
HTTP/1.1 200 OK
Date: Sat, 14 Jul 2012 10:19:41 GMT
Server: Apache/2.2.9 (Debian) mod_ssl/2.2.9 OpenSSL/0.9.8g
Accept-Ranges: bytes
Keep-Alive: timeout=15, max=100
Connection: Keep-Alive
Content-Type: text/html

When connecting to the blog in curl (-L --trace-ascii arguments - ie following the redirect and with a trace running) we see the redirection, and some times:

Code: Select all

== Info: About to connect() to www.is-there-a-god.info port 80 (#0)
== Info:   Trying 220.233.0.22... == Info: connected
== Info: Connected to www.is-there-a-god.info (220.233.0.22) port 80 (#0)
=> Send header, 165 bytes (0xa5)
0000: GET /blog HTTP/1.1
0014: User-Agent: curl/7.18.0 (i486-pc-linux-gnu) libcurl/7.18.0 OpenS
0054: SL/0.9.8g zlib/1.2.3.3 libidn/1.1
0077: Host: www.is-there-a-god.info
0096: Accept: */*
00a3: 
<= Recv header, 32 bytes (0x20)
0000: HTTP/1.1 301 Moved Permanently
<= Recv header, 37 bytes (0x25)
0000: Date: Sat, 14 Jul 2012 10:13:55 GMT
<= Recv header, 60 bytes (0x3c)
0000: Server: Apache/2.2.9 (Debian) mod_ssl/2.2.9 OpenSSL/0.9.8g
<= Recv header, 48 bytes (0x30)
0000: Location: http://www.is-there-a-god.info/blog/
<= Recv header, 21 bytes (0x15)
0000: Content-Length: 361
<= Recv header, 45 bytes (0x2d)
0000: Content-Type: text/html; charset=iso-8859-1
<= Recv header, 2 bytes (0x2)
0000: 
== Info: Ignoring the response-body
<= Recv data, 361 bytes (0x169)
0000: <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">.<html><head>.
0040: <title>301 Moved Permanently</title>.</head><body>.<h1>Moved Per
0080: manently</h1>.<p>The document has moved <a href="http://www.is-t
00c0: here-a-god.info/blog/">here</a>.</p>.<hr>.<address>Apache/2.2.9 
0100: (Debian) mod_ssl/2.2.9 OpenSSL/0.9.8g Server at www.is-there-a-g
0140: od.info Port 80</address>.</body></html>.
== Info: Connection #0 to host www.is-there-a-god.info left intact
== Info: Issue another request to this URL: 'http://www.is-there-a-god.info/blog/'
== Info: Re-using existing connection! (#0) with host www.is-there-a-god.info
== Info: Connected to www.is-there-a-god.info (220.233.0.22) port 80 (#0)
=> Send header, 166 bytes (0xa6)
0000: GET /blog/ HTTP/1.1
0015: User-Agent: curl/7.18.0 (i486-pc-linux-gnu) libcurl/7.18.0 OpenS
0055: SL/0.9.8g zlib/1.2.3.3 libidn/1.1
0078: Host: www.is-there-a-god.info
0097: Accept: */*
00a4: 
<= Recv header, 20 bytes (0x14)
0000: HTTP/1.1 302 Found
<= Recv header, 37 bytes (0x25)
0000: Date: Sat, 14 Jul 2012 10:13:55 GMT
<= Recv header, 60 bytes (0x3c)
0000: Server: Apache/2.2.9 (Debian) mod_ssl/2.2.9 OpenSSL/0.9.8g
<= Recv header, 62 bytes (0x3e)
0000: Location: http://www.is-there-a-god.info/about/welcome.shtml
<= Recv header, 21 bytes (0x15)
0000: Content-Length: 351
<= Recv header, 19 bytes (0x13)
0000: Connection: close
<= Recv header, 45 bytes (0x2d)
0000: Content-Type: text/html; charset=iso-8859-1
<= Recv header, 2 bytes (0x2)
0000: 
== Info: Closing connection #0
== Info: Issue another request to this URL: 'http://www.is-there-a-god.info/about/welcome.shtml'
== Info: About to connect() to www.is-there-a-god.info port 80 (#0)
== Info:   Trying 220.233.0.22... == Info: connected
== Info: Connected to www.is-there-a-god.info (220.233.0.22) port 80 (#0)
=> Send header, 180 bytes (0xb4)
0000: GET /about/welcome.shtml HTTP/1.1
0023: User-Agent: curl/7.18.0 (i486-pc-linux-gnu) libcurl/7.18.0 OpenS
0063: SL/0.9.8g zlib/1.2.3.3 libidn/1.1
0086: Host: www.is-there-a-god.info
00a5: Accept: */*
00b2: 
<= Recv header, 17 bytes (0x11)
0000: HTTP/1.1 200 OK
<= Recv header, 37 bytes (0x25)
0000: Date: Sat, 14 Jul 2012 10:14:42 GMT
<= Recv header, 60 bytes (0x3c)
0000: Server: Apache/2.2.9 (Debian) mod_ssl/2.2.9 OpenSSL/0.9.8g
<= Recv header, 22 bytes (0x16)
0000: Accept-Ranges: bytes
<= Recv header, 28 bytes (0x1c)
0000: Transfer-Encoding: chunked
<= Recv header, 25 bytes (0x19)
0000: Content-Type: text/html
<= Recv header, 2 bytes (0x2)
0000: 
<= Recv data, 1249 bytes (0x4e1)

....html website follows....

PS While I had the page in the debugger, there are 4 small CSS errors as follows:
padding:-25px 20px 0px 0px;
padding:0px;
#top {border-bottom:#e66b17 1px solid;}
#multi li a, #multi li a:link. #multi li.current {border:#c84914 1px solid;}

ercatli
Posts: 105
Joined: Thu Apr 13, 2006 9:14 am
Location: Sydney
Contact:

Re: Webspace problem

Post by ercatli » Sat Jul 14, 2012 8:47 pm

Thanks for having a look. But the page you are getting ("Welcome") is not the blog, but my error page. I have a .htaccess file which routes "Page not found" errors to this page - "/about/welcome.shtml".

So you have confirmed that the blog isn't loading. Somehow the /blog subdirectory can't be loaded, even though others can. Have you any idea why???

Dazzled
Volunteer Site Admin
Posts: 6003
Joined: Mon Nov 13, 2006 1:16 pm
Location: Sydney

Re: Webspace problem

Post by Dazzled » Sat Jul 14, 2012 9:00 pm

It took me 40 secs to get to the error page. The browser can only go where the redirect sends it, which is where it went, as per the curl trace above.

How did you instruct the 301 redirection? Do you need it?

PS Check the permissions of the blog and its directory.

ercatli
Posts: 105
Joined: Thu Apr 13, 2006 9:14 am
Location: Sydney
Contact:

Re: Webspace problem

Post by ercatli » Sat Jul 14, 2012 9:25 pm

I checked the permissions and they are all OK, and haven't changed - 755 for the blog folder, and 644 for the files.

I need the redirect because I am re-designing and debugging the site. But I don't see how that can be the problem, because the site has been working for a year, and only now has changed. Since I haven't used ftp for a week, I can't have overwritten a file or anything. So the only two things I can think of are:

1. Some problem with Exetel - e.g a security criterion has been activated by a blog comment. (Don't know if that's even sensible.)
2. Something similar in Wordpress.

Dazzled
Volunteer Site Admin
Posts: 6003
Joined: Mon Nov 13, 2006 1:16 pm
Location: Sydney

Re: Webspace problem

Post by Dazzled » Sat Jul 14, 2012 10:09 pm

I don't know how the site works - .htaccess, server-side content, etc. The trace, though, shows what happened at my end:
1. A GET request to .../blog was redirected to Location: http://www.is-there-a-god.info/blog/.
2. A second GET on the connection was supplied a redirect message- Location: http://www.is-there-a-god.info/about/welcome.shtml
3. Connection closed.
4. A new connection and GET, this time to the welcome page, was sent the correct html for that page.

ercatli
Posts: 105
Joined: Thu Apr 13, 2006 9:14 am
Location: Sydney
Contact:

Re: Webspace problem

Post by ercatli » Sat Jul 14, 2012 10:31 pm

Thanks for going to this trouble for me. I really appreciate it.

The .htaccess file is only required if the requested page can't be found. The code is:

Code: Select all

Options +Includes

AddType text/html .shtml
AddHandler server-parsed .shtml

DirectoryIndex index.shtml index.html index.php

ErrorDocument 400 http://www.is-there-a-god.info/about/welcome.shtml
ErrorDocument 401 http://www.is-there-a-god.info/about/welcome.shtml
ErrorDocument 403 http://www.is-there-a-god.info/about/welcome.shtml
ErrorDocument 500 http://www.is-there-a-god.info/about/welcome.shtml
ErrorDocument 404 http://www.is-there-a-god.info/about/welcome.shtml

<Files .htaccess>
  order allow,deny
  deny from all
  </Files>
This file hasn't been changed since May 2011.

So the sequence of events you report is consistent with the browser being unable to find the /blog/index.php file - yet the ftp program shows it is there. So I'm looking for the reason why it can't be found now, when it was OK a day ago.

Thanks again.

Dazzled
Volunteer Site Admin
Posts: 6003
Joined: Mon Nov 13, 2006 1:16 pm
Location: Sydney

Re: Webspace problem

Post by Dazzled » Sun Jul 15, 2012 8:53 am

If you temporarily drop the ErrorDocument commands you might get a better idea of what's happening when the error code is sent. At present, the redirected welcome page issues a 200 OK.

ercatli
Posts: 105
Joined: Thu Apr 13, 2006 9:14 am
Location: Sydney
Contact:

Re: Webspace problem

Post by ercatli » Sun Jul 15, 2012 9:09 am

Thanks for your continued interest, but I have a new problem.

I have been looking at whether the problem was the folder "/blog" or the blog software itself, and I seem to have totally trashed the blog, I don't know how. So now I have to restore it (unless Exetel can restore it easily?), which should be possible, but will take me a little time, and I will be out for a while today.

I suppose the positive is that restoring it may fix this mysterious problem.

asankag
Exetel Staff
Posts: 77
Joined: Tue Jun 12, 2012 3:22 pm
Location: Sydney

Re: Webspace problem

Post by asankag » Sun Jul 15, 2012 11:27 am

Hi Ercatli,

Try restoring the wordpress files only. i.e don't delete the content before re-uploading. overwrite all the wordpress files, update wp-config.php and remove the .htaccess and see if the site loads.

Also make sure the permissions are correct as well.

Regards,
Asanka
---
Regards,
Asanka | L2 - VoIP Engineer

ercatli
Posts: 105
Joined: Thu Apr 13, 2006 9:14 am
Location: Sydney
Contact:

Re: Webspace problem

Post by ercatli » Sun Jul 15, 2012 3:51 pm

I have re-installed the Wordpress files and renamed the two .htaccess files - the one I previously listed was for the whole site, there is also another one in the blog subdirectory, with the following content:

Code: Select all

# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /blog/
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /blog/index.php [L]
</IfModule>

# END WordPress
But so far, no difference.

I really am at a loss, because I wasn't doing anything when the blog stopped, so I don't see how I could have changed anything.

asankag
Exetel Staff
Posts: 77
Joined: Tue Jun 12, 2012 3:22 pm
Location: Sydney

Re: Webspace problem

Post by asankag » Sun Jul 15, 2012 4:08 pm

Hi ercatli,

Thanks for the reply.

I have sent you PM requesting some information. Please reply to me via PM with the information.

Regards,
Asanka
---
Regards,
Asanka | L2 - VoIP Engineer

asankag
Exetel Staff
Posts: 77
Joined: Tue Jun 12, 2012 3:22 pm
Location: Sydney

Re: Webspace problem

Post by asankag » Mon Jul 16, 2012 10:18 am

Hi ercatli,

I have sent you some information via PM. Please let me know if everything is ok.

The web server was facing some load issues yesterday and that is why the blog [php] were not being loaded correctly or timed out, causing 404 error pages.
The site seems to load fine now and the server load has come down as well.

I Hope this information helps.

Regards
Asanka
---
Regards,
Asanka | L2 - VoIP Engineer

ercatli
Posts: 105
Joined: Thu Apr 13, 2006 9:14 am
Location: Sydney
Contact:

Re: Webspace problem

Post by ercatli » Mon Jul 16, 2012 10:37 am

Thanks for all your interest and help.

I do feel there must have been something more than an overload, because:

(1) I was unable to see the blog from Friday night til this morning, even though I tried to load it many times. That seems too much for a mere overload.
(2) The index.php file would load without a require command (which then calls on another php file) but wouldn't load without it.

So perhaps you had some servers down as well?

Anyway, all is solved now, I have re-loaded and everything seems fine. Thanks to both asankag and Dazzled for taking the trouble over a weekend.

asankag
Exetel Staff
Posts: 77
Joined: Tue Jun 12, 2012 3:22 pm
Location: Sydney

Re: Webspace problem

Post by asankag » Mon Jul 16, 2012 11:11 am

Hi,

Thanks for the update. I will check with our L2 engineers regarding this and will update you once I get a response.

Regards,
Asanka
---
Regards,
Asanka | L2 - VoIP Engineer

Post Reply