ccgi down
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Plusnet Community
- :
- Forum
- :
- Help with my Plusnet services
- :
- Everything else
- :
- Re: ccgi down
Re: ccgi down
17-03-2010 10:13 AM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
My company's website is also down - we are getting a "403 Access forbidden!" message and the following output in the browser:
You don't have permission to access the requested object. It is either read-protected or not readable by the server.
If you think this is a server error, please contact the webmaster.
We have a .htaccess file with the following contents:
#Options +FollowSymLinks
#RewriteEngine On
RewriteBase /
RewriteRule ^index.htm index.php
RewriteRule ^products.htm products.php
RewriteRule ^content.htm content.php [NE,L]
RewriteRule ^other-services.htm other.php
RewriteRule ^services.htm other.php
RewriteRule ^partners.htm partners.php
RewriteRule ^customers.htm customers.php
RewriteRule ^company.htm company.php [NE,L]
RewriteRule ^contact.htm contact.php
RewriteRule ^accessibility.htm accessibility.php
RewriteRule ^privacy.htm privacy.php
RewriteRule ^(.*)-products-(.*).htm$ products.php?ID=$2&%{QUERY_STRING} [NE,L]
RewriteRule ^(.*)-content-(.*).htm$ content.php?ID=$2&%{QUERY_STRING} [NE,L]
RewriteRule ^(.*)-partners-(.*).htm$ partners.php?ID=$2&%{QUERY_STRING} [NE,L]
RewriteRule ^(.*)-other-(.*).htm$ other.php?ID=$2&%{QUERY_STRING} [NE,L]
RewriteRule ^(.*)-company-(.*).htm$ company.php?ID=$2&%{QUERY_STRING} [NE,L]
Redirect Permanent /solutions http://www.simpcom.co.uk/products.htm?
Redirect Permanent /products http://www.simpcom.co.uk/content.htm?
Redirect Permanent /gr http://www.simpcom.co.uk/partners.htm?
Redirect Permanent /print http://www.simpcom.co.uk/other-services.htm?
Redirect Permanent /consultancy http://www.simpcom.co.uk/other-services.htm?
Redirect Permanent /print http://www.simpcom.co.uk/other-services.htm?
Redirect Permanent /about http://www.simpcom.co.uk/company.htm?
As you can see, I've tried to comment out the first 2 lines to se if this made a difference, but it hasn't. All the permissions are set to 0700 or 0755 for each PHP script. In Dreamweaver and using FireFTP (a Firefox extension), I try to set the permission of the root directory to 0710 but this does not apply.
Can anyone help me with this?
Many thanks,
Anthony
Re: ccgi down
17-03-2010 10:14 AM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
Quote from: Tony the original one ($PHP_SELF) worked OK
Just to clarify (or not) $PHP_SELF doesn't strictly work, but turning register_globals = off kills it, so the html appears as action="" or window.location.replace( "" ), which works but probably shouldn't. $_SERVER['PHP_SELF'] is actually a differen't variable (wibble), which isn't killed by turning off register_globals. The correct non-tilde alternative is $_SERVER['SCRIPT_URL']. Glad this is all academic now
Gabe
Re: ccgi down
17-03-2010 10:24 AM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
Re: ccgi down
17-03-2010 10:33 AM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
Quote from: Anthony We have a .htaccess file with the following contents:
Hi Anthony, just at first glance, RewriteEngine On line shouldn't be removed.
Quote In Dreamweaver and using FireFTP (a Firefox extension), I try to set the permission of the root directory to 0710 but this does not apply.
Your root is already 1710 and shouldn't be changed.
Gabe
Re: ccgi down
17-03-2010 10:40 AM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
Quote from: Anthony
My company's website is also down - we are getting a "403 Access forbidden!" message
I've fixed this for you, the permissions on the .htaccess file were too restrictive, so apache couldn't read it. If apache can't read an .htaccess file it assumes the worst and blocks access to the site.
On the new platform, .htaccess files must be readable by the group.
Re: ccgi down
17-03-2010 11:17 AM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
@ Ben - many thanks for this
Re: ccgi down
17-03-2010 11:21 AM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
Quote from: Gabe
Quote from: Astronut If I am on the right track, what would be the correct path? It's entirely possible I put the wrong one in!
Right track, but you'd need to make the changes in a custom php.ini (like <a href="http://community.plus.net/forum/index.php/topic,83568.msg696223.html#msg696223">this one</a>. The path will be something like /share/storage/0X/us/username/sessions/. You can get your path from phpinfo().
Gabe
Ah, thanks Gabe!
I get the impression I need the whole file you provided pretty much as written (modified for my path) - is that correct?
Do I just place it in my root folder? The CMS manager operates out of its own folder (/manager) - would I need a copy of the php.ini in there as well?
And just to confirm, this also lets me override the register_globals back to 'off', yes? (I'm much happier with that setting...)
Thanks,
Jon
Re: ccgi down
17-03-2010 1:04 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
Quote from: Astronut I get the impression I need the whole file you provided pretty much as written (modified for my path) - is that correct?
Do I just place it in my root folder? The CMS manager operates out of its own folder (/manager) - would I need a copy of the php.ini in there as well?
And just to confirm, this also lets me override the register_globals back to 'off', yes? (I'm much happier with that setting...)
Yes to the first and third.
Second question: should be able to put that in your doc root but can't at the mo. It appears to be checking only the current folder for user ini, which is possibly caused by an unconfigured vhost document root. Something else for Plusnet to look at, but it looks like one ini file per script folder for now, unless I'm being dim.
Gabe
Re: ccgi down
17-03-2010 1:32 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
Quote from: Gabe Second question: should be able to put that in your doc root but can't at the mo. It appears to be checking only the current folder for user ini, which is possibly caused by an unconfigured vhost document root. Something else for Plusnet to look at, but it looks like one ini file per script folder for now, unless I'm being dim.
That figures. I have only two folders where scripts are being executed (/ and /manager) - other folders simply hold include files which are loaded if needed. So it looks like I only need two!
Thanks, Gabe, I'll try it tonight and see what happens...
(You know it's weird, I can produce the most convoluted and sophisticated PHP code, MySQL queries and even Regex, but anything apache-specific and my mind goes blank...)
Jon
Re: ccgi down
17-03-2010 2:20 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
Quote from: Gabe Second question: should be able to put that in your doc root but can't at the mo. It appears to be checking only the current folder for user ini, which is possibly caused by an unconfigured vhost document root. Something else for Plusnet to look at, but it looks like one ini file per script folder for now, unless I'm being dim.
I've raised this Gabe (ref: 300386).
Bob Pullen
Plusnet Product Team
If I've been helpful then please give thanks ⤵
Re: ccgi down
17-03-2010 2:27 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
find * -type d | while read i; do ln -s php.ini $i; done
Re: ccgi down
17-03-2010 4:04 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
Hi Ben - Absolutely. I'm not thinking, give us all a bespoke vhost root. I'm thinking, if it's faked so we're actually under the document_root, php should start searching for inis up the path. We're not under /var/www. Though my mind is getting blanker by the minute.
Gabe
Re: ccgi down
17-03-2010 8:19 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
Updated php.ini file with my session files relocated to sess folder in what I hope is my root and the lifetime updated.
This file has permissions set to 600.
At present it all seems to be behaving - I'll be back if it's not!
In the meantime, thanks all, and especially Gabe for pointing me in the right direction
Jon
Re: ccgi down
17-03-2010 9:11 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
I found a comment in the PHP manual saying
Quote It appears that the flush() command does not work when running under suPHP. I have had it explained to me that this is due to suPHP caching all the PHP output untill the connection has been terminated, thus making this command useless.
Can I just check that we are using suPHP?
Tony
Re: ccgi down
18-03-2010 12:38 AM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
David
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page