Page 1 of 1
You don't have permission to access /admin/siteprefs.php on this server.
Posted: Tue Jul 03, 2007 4:07 am
by brettkan
Hi - long standing problem just got worse on upgrade from 1.0.2 to 1.0.8.
In the Site Admin » Global Settings panel, i could never clear the cache (did it by FTP instead), now i can also not change the Global meta data, in fact every press of the submit button leads to the 404 error page: You don't have permission to access /admin/siteprefs.php on this server.
I have CHMOD evry page/directory in sight to 777, but still no luck! (and back to 755 and 644)
Anyone have any ideas, I can edit pages with out any problems, but this admin page is always giving problems. I created the site on a local server WAMP and used phpmyadmin to dump the data online into a LAMP server, i wonder if there are problems with this?
cheers
kan
Re: You don't have permission to access /admin/siteprefs.php on this server.
Posted: Wed Jul 04, 2007 7:02 pm
by Pierre M.
Hello,
do you have a .htaccess hidden file on the LAMP with the word "admin" in it ? If yes, please show it.
Pierre M.
Re: You don't have permission to access /admin/siteprefs.php on this server.
Posted: Thu Jul 05, 2007 12:27 am
by brettkan
thanks for the reply - i dont see any use of "admin" in .htaccess files - public_html directory file looks like this-
Redirect permanent /redevelopment
http://www.rnoh.nhs.uk/index.php/buildi ... nformation
Redirect permanent /forums
http://www.rnoh.nhs.uk/RNOH_Development/
Redirect permanent /education
http://www.rnoh.nhs.uk/courses-apply.php
RedirectMatch permanent ^/working_for_the_RNOH/$
http://www.rnoh.nhs.uk/index.php/recrui ... t-the-rnoh
RedirectMatch permanent ^/clinical_services/$
http://www.rnoh.nhs.uk/index.php/clinic ... r-patients
Options +FollowSymLinks
RewriteEngine on
RewriteBase /
# 301 Redirect all requests that don't contain a dot or trailing slash to
# include a trailing slash
RewriteCond %{REQUEST_URI} !/$
RewriteCond %{REQUEST_URI} !\.
RewriteRule ^(.*) %{REQUEST_URI}/ [R=301,L]
# Rewrites urls in the form of /parent/child/
# but only rewrites if the requested URL is not a file or directory
RewriteCond %{REQUEST_FILENAME} !-f [NC]
RewriteCond %{REQUEST_FILENAME} !-d [NC]
RewriteRule ^(.+)$ index.php?page=$1 [QSA]
##########
also a few directories with-
Options All -Indexes
-but thats about it
merci pour votre temps
Re: You don't have permission to access /admin/siteprefs.php on this server.
Posted: Thu Jul 05, 2007 1:08 am
by Nullig
Do you have a lot of mods?
What about your php memory limit?
Nullig
Re: You don't have permission to access /admin/siteprefs.php on this server.
Posted: Thu Jul 05, 2007 2:40 am
by brettkan
Not sure what you mean by mods - but if you are referring to modification of the core files, then apart from removing some comments, i have non. - if you mean modules, then the only extra modules are pisearch and Xstandard.
Not sure how to check memory - if i run phpinfo() - the only refernce to memory is : Zend memory manager | enabled.
other info:
PHP Version 4.4.3
Apache Version Apache/1.3.37 (Unix) mod_auth_passthrough/1.8 mod_log_bytes/1.2 mod_bwlimited/1.4 PHP/4.4.3 FrontPage/5.0.2.2635.SR1.2 mod_ssl/2.8.28 OpenSSL/0.9.7a
Thanks for any ideas
Re: You don't have permission to access /admin/siteprefs.php on this server.
Posted: Thu Jul 05, 2007 5:43 am
by Nullig
Try adding:
ini_set("memory_limit", "16M");
near the top of your config.php file to see if it makes any difference.
Nullig
Re: You don't have permission to access /admin/siteprefs.php on this server.
Posted: Thu Jul 05, 2007 11:38 am
by Pierre M.
Hello again,
why not add some little (444 chmoded) page.html in /admin/ along with siteprefs.php and try to access it directly ?
http://.../admin/page.html
If it 404s, then this should be a webserver config problem. (file owning, file permissions, httpd.conf or .htaccess)
If it shows ok, then this should be a PHP problem. (php.ini, safe mode, whatever...)
Pierre M.
Re: You don't have permission to access /admin/siteprefs.php on this server.
Posted: Thu Jul 05, 2007 12:42 pm
by brettkan
I think i have not been clear -
The page: /admin/siteprefs.php is the- site admin > global settings page. I can open the page without problems, but when i press submit or clear chache, i recieve a 404 . with the URI /admin/siteprefs.php still appearing in the address. Cant remember how i got the error message now, perhaps with the custom message turned off.
I have been altering content directly in the database.
I have other CMSMS sites on the same server and they work fine.
I set the ini_set("memory_limit", "16M"); in the config - no difference
It sure feels like a permissions thing - but where do i go? i have deleted these directories and rebuild them just to check my files were intact, and like i said, i had the same problem before on the global settings page, but it only effected the Clear Cache button, i could alter the Metadata. Now the whole page doesn't function. Unix permissions are a mystery, and reading the pages in the forums doesnt seem to make it clearer.. well maybe after some sleep..
cheers
Re: You don't have permission to access /admin/siteprefs.php on this server.
Posted: Thu Jul 05, 2007 3:09 pm
by Pierre M.
Hello,
ok, I hadn't understood well.
What is your admin browser ? Have you tried to change it ? Have you tried to admin from another computer ?
Please review user rights inside CMSms too.
Can you see with your FTP tool who owns the cache files and who owns the siteprefs.php file ?
If you use Firefox and its webdeveloper toolbar, please show the result of "Information->View response headers" when 404.
Pierre M.
Re: You don't have permission to access /admin/siteprefs.php
Posted: Tue Feb 01, 2011 6:30 pm
by vollwebdesign
Hi there,
Has this problem ever been resolved? If yes how?
I have the same problem when trying to update the global metadata in Site Admin - Global Settings - General Settings. When I'm done updating and click submit I get
an 404 Not Found error (The requested URL was not found on this server) so the changes haven't been saved.
Any idea how to fix this problem? Maybe some changes of the ".htaccess" file does the trick?
Thanks a lot for your help,
Torsten
Re: You don't have permission to access /admin/siteprefs.php
Posted: Thu Feb 03, 2011 10:27 pm
by vollwebdesign
Actually it is fixed! Updating the global meta tags was being blocked by the hosting server's mod_security!
Cheers,
Torsten