By dkian on
I've spent quite a few hours trying to figure out a problem with my Fresh Drupal 7 install. I can login as admin:admin, and the credentials are accepted, but I am not given any permissions afterwards.
Login works but the page doesn't change once I log in as admin. I know that the login works because wrong credentials generate an error. I do not even see the administrative toolbar. No other pages exist on the page, but if I am to, say, input ?q=admin, on user/1, it will go 'Access Denied'
What I've done:
- cleared cache and cookies many times
- have checked that mod_rewrite works
- the cookie path on the drupal settings.php is / and not \
- .htaccess is on the drupal root directory, exactly as provided by drupal.org
- in httpd.conf, I have written a new directory and AllowOverride=All (*note: the parent directory has AllowOverride=None)
- Clean URL's are enabled via drush vset
What I suspect the problem is, but don't know how to solve it:
- Proxy?
- Some permissions that need to be configured on some files/directories
What I have:
- CentOS 6.3
- Apache 2.2.15
- Drush 5.9
- Drupal 7.22
Thank you in advance
Comments
If you are seeing access
If you are seeing access denied, then everything is probably working. Do you have JavaScript enabled? Are you sure that the user you are logged in as has permissions to administer the site?
I'd suggest ensuring JS is enabled, and logging in as User 1 (the user with an ID of 1 in the {users} table in the database). This user has automatic permissions for everything, so you will be able to test whether it's a problem in your installation, or your configuration.
Contact me to contract me for D7 -> D10/11 migrations.
Already logged in as user/1
Thanks Jaypan. I'm pretty sure that JS is working, as I'm on my daily browser Chrome. I'm also quite sure that I'm user/1, because I'm logging in via the credentials that Drush creates, which is admin:admin by default. It's a very peculiar problem. Any other views on this?
You may have a JavaScript
You may have a JavaScript error that is causing your other JA to fail. Open a JavaScript console in your browser and reload the page to see if there are any errors.
Contact me to contract me for D7 -> D10/11 migrations.
No sign of javascript errors
I tried using the Chrome console. Nothing showed up, not even a single JS warning or error as most websites have. And JS is definitely enabled.