Miscellaneous Website/server guru help needed!

Stephen Howard

Well-Known Member
Messages
4,130
Location
UK
Level
Close enough for jazz.
Disaster! My site is down! Millions of people will be rushing out to buy crappy saxophones if I don't get it up and running soon.
Thing is, I don't know why it's down - and nor does my hoster (hmmm).
Seems they've been busy upgrading their PHP doo-dah - but I don't use PHP, and I'm told the changes won't affect me. And yet all I get when trying to view the home page is a 403 error:


Daft thing is, if you open up any other page it sort of comes up - minus the text formatting and the sitewide menu/header images.
I've reloaded the directory they're sourced from, but no joy.


If you try to open one of the menu/header images in a new tab you you get this:

"You don't have permission to access this resource.Server unable to read htaccess file, denying access to be safe"

So it's the htaccess file, right? Well, I've reloaded it - and that didn't work...and nothing's been uploaded to the site recently that would cause all these problems.

Does anyone have any ideas - because I don't have a bloomin' clue and don't even know what questions to ask.
 
Somehow the htaccess has changed or got corrupted. Change of php version often automatically adds to the htaccess(in your case you don’t need this)

Either take out any stuff you don’t need on htaccess via ftp, or even just remove/rename it to see if that solves.

Do you or the host have a backup, if so just revert to when it was working
 
I've tried deleting the htaccess - no change - and I've uploaded a backup copy (in ascii format), and that's not made any difference either.
It all seems to be focussed around the sitewide images directory, for some reason.

web/sites/_s/_h/_w/shwoodwind.co.uk/public/www/Images/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable and that '/web/sites/_s/_h/_w/shwoodwind.co.uk/public/www/Images/' is executable,
 
Are you actually needing the htaccess (eg for redirects?)
No idea! It's got some password stuff in it, and a copyright image doodah:

# -FrontPage-

RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http(s)?://(www\.)?shwoodwind.co.uk [NC]
RewriteCond %{HTTP_REFERER} !^http(s)?://(www\.)?shwoodwind.uk [NC]
RewriteRule \.(jpg|jpeg|gif)$ http://www.shwoodwind.co.uk/Images/copyright.png [NC,R,L]

IndexIgnore .htaccess /.?? ~ *# */HEADER /README /_vti

<Limit GET POST>
order deny,allow
deny from all
allow from all
</Limit>
<Limit PUT DELETE>
order deny,allow
deny from all
</Limit>
AuthName www.shwoodwind.co.uk
AuthUserFile /data/web/_s/_h/_w/shwoodwind.co.uk/public/www/_vti_pvt/service.pwd
AuthGroupFile /data/web/_s/_h/_w/shwoodwind.co.uk/public/www/_vti_pvt/service.grp
 
right? Well, I've reloaded it - and that didn't work...
Ah, see you’ve already tried restoring a backup.
I've tried deleting the htaccess - no change - and I've uploaded a backup copy (in ascii format), and that's not made any difference either.
It all seems to be focussed around the sitewide images directory, for some reason.

web/sites/_s/_h/_w/shwoodwind.co.uk/public/www/Images/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable and that '/web/sites/_s/_h/_w/shwoodwind.co.uk/public/www/Images/' is executable,
Sounds like a chmod permissions issue, the host should be able to fix this.
 
Weird about the https stuff in there, as your site is http (which it probably shouldn’t be these days) But this could be the issue, ask the host about SSL certificate.
 
Ah, see you’ve already tried restoring a backup.

Sounds like a chmod permissions issue, the host should be able to fix this.
Well, I thought their response was a bit glib to be honest. The site was fine one day, down the next. They told me they're just hosters, not web devs.
I think maybe a snotty email to support is in order, because it seems like it's something they've ballsed up.
 
They could be right, it would all depend on the terms of whether they just rent you space or whether they do any management included in the price.

What happens if you delete htaccess or just temporary rename to something so it won’t be active
 
Weird about the https stuff in there, as your site is http (which it probably shouldn’t be these days) But this could be the issue, ask the host about SSL certificate.
I've no idea how that got in there. If memory serves they altered it for some reason or other a long while ago. I have no idea what any of it means bar the copyright rewrite line.
 
They could be right, it would all depend on the terms of whether they just rent you space or whether they do any management included in the price.

What happens if you delete htaccess or just temporary rename to something so it won’t be active
Nothing at all.
 
Of course if you hire a dev, and they find the host ballsed up you should be able to claim your costs, unless they somehow wheedle out of that.
I'm gonna drop them a line. I don't see how the site can be working one minute and down the next without any changes from my end.
 
You'd need your host to look at specific error logs. Based on the 403 and not being able to access the .htaccess file, they could have changed any number of things on their side from a server point of view that has caused it.
 
You'd need your host to look at specific error logs. Based on the 403 and not being able to access the .htaccess file, they could have changed any number of things on their side from a server point of view that has caused it.
I've dropped support an email - who knows what kind of response I'll get. They weren't especially helpful yesterday. I've made the point that I've done nothing to change the site since December.

From the error log it looks like it all changed at 10.36 yesterday - and I don't understand why images in other directories are served, but anything in /Images is not.

[Mon Jan 17 01:02:47 2022] [error] [client 156.251.136.4] File does not exist: /web/sites/_s/_h/_w/shwoodwind.co.uk/public/www/libsoft.php, referer: http://www.shwoodwind.co.uk//libsoft.php
[Mon Jan 17 01:02:54 2022] [error] [client 156.251.136.4] File does not exist: /web/sites/_s/_h/_w/shwoodwind.co.uk/public/www/vendor, referer: http://www.shwoodwind.co.uk//vendor/phpunit/phpunit/src/Util/PHP/eval-stdin.php
[Mon Jan 17 01:03:01 2022] [error] [client 156.251.136.4] File does not exist: /web/sites/_s/_h/_w/shwoodwind.co.uk/public/www/include, referer: http://www.shwoodwind.co.uk//include/dialog/select_images_post.php
[Mon Jan 17 03:06:19 2022] [error] [client 193.142.146.138] File does not exist: /web/sites/_s/_h/_w/shwoodwind.co.uk/public/www/Reviews/wp-login.php
[Mon Jan 17 03:06:19 2022] [error] [client 193.142.146.138] File does not exist: /web/sites/_s/_h/_w/shwoodwind.co.uk/public/www/wp-login.php
[Mon Jan 17 10:36:20.485543 2022] [core:crit] [pid 27131] (13)Permission denied: [client 188.180.186.72:47057] AH00529: /web/sites/_s/_h/_w/shwoodwind.co.uk/public/www/Images/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable and that '/web/sites/_s/_h/_w/shwoodwind.co.uk/public/www/Images/' is executable, referer: Yamaha YTS23 tenor sax review
 

Similar threads... or are they? Maybe not but they could be worth reading anyway 😀

Social

New! Social Feeds

Look out for the navigation icon:

Follow CafeSaxophone

Latest Song of the Month

Trending

Forum statistics

Topics
32,069
Messages
578,510
Members
8,131
Latest member
Jef B
Back
Top Bottom