Login
Home
Eoin Bailey . com
Tech, Research, Code, Work, and Fun
  • Home
  • Eoin's CV
  • About Eoin
  • Ph.D.
  • Blog
  • Galleries
  • Training
  • Polls
  • Tags
  • Weblinks
  • Site map
  • Contact

Tag Cloud

algorithm antarctica apple banking browser code copyright cycle data centre devel Dijkstra drupal drupalcamp economics escapades facebook firefox galway Google iphone ipod livigno theme training weights
more tags

A Random Image

LHC

Access Denied Error for Drupal 'update.php' page

Submitted by Eoin on Wed, 25/03/2009 - 16:17
in
  • access denied
  • Code-Work
  • drupal
  • General-Work
  • update

To be honest, I feel rather foolish. This is a problem I've been having with Drupal on and off: I click on the 'Run Updates' menu item in the Adminstration Menu and every now and then I get an access denied error. Since I have access to the server, I was changing the settings.php/update.php file to allow me access to run update.php (see here: Running Update.php). This was annoying me, but it only happened occasionally, so I lived with it.

Today, I figured out what the problem was. I don't use the 'www.' in front of most of the sites I visit, and I would pretty much never type it into my browser. Assuming that the server on the far end is configured correctly, this is not a problem (the few times it doesn't work, it annoys me, an irrationally large amount). When I visit my own sites, I don't use the 'www.' either. When I login as the admin for my sites, I still do not have the 'www.' in front of the domain name. The problem is, Drupal authentication treats 'www.example.com' as a different domain from 'example.com'. This means, if I login as user 1 while at 'eoinbailey.com' but try to run 'www.eoinbailey.com/update.php' I will receive an access denied error.

If you delete (or add) 'www.' from the front of the domain name, you will have your access again. PROBLEM SOLVED!

  • Eoin's blog
  • Printer-friendly version
  • Send to friend

Comments

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.
  • Images can be added to this post.

More information about formatting options

Current Poll

What is your current phone OS?:

Freelance Work

A sample of websites I have developed:

  • Studio Richards
  • Medilex
  • Design21C
  • The Spine Clinic
  • Abrivia - Careers and Outplacement
  • Emilie Conway

Twitter

Follow @eoinbailey

Some Links

  • James Bond Opening Scenes
  • Polls
  • Chess Module-Drupal
  • Ski Trip Jan 2009

Training

  • Spinning
  • Hodson Bay Hotel Training
  • Spinning Class - Not too Shabby!
  • Bike Time Trial
  • Spinning Class of Anti-Doom!

Recent Comments

  • Happy New Year 2012!
  • Thank you..
  • Simple way
  • Yep, CSS is an option - there
  • Maybe CSS is an easy solution?
  • Thanks for the direction.
  • Thank you for the insight.
  • Exactly.
  • Thank you for the insight.
  • I'm open to correction on

Powered by

Powered by Drupal, an open source content management system

Recent blog posts

  • Copyright Issues
  • Leap Card
  • A new College term - Dijkstra's Algorithm
  • Dublin GTUG - June 2011 - Over 100 attendees
  • City of a Thousand Welcomes
  • Groupon et al. - "Bet on the Future"
  • Dublin Web Summit - DWS6 - Roundup
  • Anti-Spam - Using a Catch-All to identify bad companies
  • Hide a Note Title - Drupal 7
  • The Election on Hit The Road
more
Copyright © 2012 Eoin Bailey . com.

I'm trying out: Web Analytics