By araujo.guntin on
Hi...
I have installed the drupal 4.6, and I created the first account, but when I tried to login, I get the following messages:
Access denied
You are not authorized to access this page.
I have tested with the password that drupal send me by email but I get the same messages.
What can I do????
Comments
error with the first user
I have waited for a week, but I haven't received any anwser to my question.
I have been reading a lot of comment but I haven't find anything that solve my problems.
I have intalled, Drupal, Apache, php and mysql many times and I got the same error.
Access denied
You are not authorized to access this page.
Could somebody help me???
?
Well, I can not tell why you're getting this. Perhaps you'd like to create a new Drupal install and allow someone to create the first account to see for themselves what it does... It's not obvious why you would be getting such an error.
--
Etopian (Consulting, Development, and Hosting)
http://drupal.etopian.net
Same problem
I have the same problem, using Drupal 4.6, when I created the first account I got an error that Drupal was unable to send the password. That was because I did nog have the SMTP server configured in php.ini (BTW: I think this should be in the Drupal installation document). After I improved the SMTP configuration, I was able to let Drupal send the password to the e-mail address of the first account. I was able to log in and change the password, but access to administration pages is denied. The only thing I kan think of now is reinstall Drupal..
I couldn't to be able to
I couldn't to be able to resolve the problem, I created an account and drupal send me a message with the password.
But I can't login to drupal neither way.
This situation is terrible for me, I need your help.
My sites is http://www.billabona.com/devel/
Cannot create administrative account
I have the same problem: Creating the first account went wrong because the SMTP server wasn't configured correctly.
This really is awful! Why not allow the first user to choose his own password without sending an email?
What?
What are you all talking about? I create Drupal test installs all the time with no SMTP configured. Configuring an SMTP server address is a PHP configuration issue anyway. Drupal works fine without it.
As to why not let the first user choos his own password..... well it's already that way. You create the first account..... At this point you are logged in. Go to the EDIT tab and change your password for that account. Done.
As to why the emailed password is not working. Usually, the most common cause is people copy and paste the emailed password. Often this copied password contains a blank space. This blank space should not be there.
-sp
---------
Test site...always start with a test site.
Drupal Best Practices Guide
-Steven Peck
---------
Test site, always start with a test site.
Drupal Best Practices Guide
I modified the user.module
I modified the user.module file and the password is the same: 'algo'. Then, when I log in to drupal, it always denies my access.
I have installed drupal many times and I have dropped and created the database each time, but the problem remains.
also, I have reviewed the php and apache's configuration. I have other sites, cms exoops, and it work fine.
What can I do?
Thank you
ummm... what? ARG!
This is a guess mind you, but stop modifying files and use a default install.
A default install accomadates account automatic login on account creation. I have installed 9 sites in the last 3 days with fresh downloads. I have 3 friends that have downloaded and configured drupal in the last few days. The one thing we have in common is we have not modified core files.
Now you mention that you have modified user module. User module is a fairly critical file. All core files are fairly critical. Stop modifying files until you have successfully installed the product. The password is kept in the database so I unsure how modifying the user module will actually accomplish a same password on a new install. The first user account is kind of important.
-sp
---------
Test site...always start with a test site.
Drupal Best Practices Guide
-Steven Peck
---------
Test site, always start with a test site.
Drupal Best Practices Guide
Cannot reproduce on 4.6.1
I just downloaded the 4.6.1 release from this site, extracted it, installed it as per the instructions. I can create the first account, I get the password on screen, and I can log-in both immediately with the special Log in button after creating the first account, or afterwards from the normal log-in form.
Obviously something is different on your side, but until you provide more information, no-one can help you.
--
If you have a problem, please search before posting a question.
First account
I removed the drupal database and recreated it again.
I clicked on the "create the first account" hyperlink in the welcome screen and get a screen that asks me for a Username and email address. If I leave the email address empty, I get an error. If enter a valid email address the password is displayed on screen!!!
I don't know why I didn't see it the first time. Sorry...
I have installed different
I have installed different version's drupal: 4.5.x, 4.6.0 and 4.6.1.
When I created the first account and login, I supposed that I'm login becouse the url is http://www.billabona.com/devel/?q=user/1, but the administrator menu don't show me.
When I create the following account, I can't login to drupal. Each time that I create a new account drupal send me a message with the password.
I changed the user.module file to test, I thought that the problem was a wrong password. I returned the original user.module file.
You can test my sites, it is: http://www.billabona.com/devel/
I would be very greateful if you could help me.
First account is different
You can put in any e-mail address for the first account. Your password will immediately be shown on the screen with a login button. Click on that, and you are in.
I know, the documentation is poor on this point.
Possible solution
Ok, go back to your settings.php... if you have followed the installation for cPanel, the author forgot to leave an important instruction.
Edit settings.php, and scroll down to Base_URL.
set $base_url = YOURSITEURL.com
"$base_url = http://localhost" will not get anyone anywhere. Hope that helped a few of you out there.
settings.php file not found
I have installed Drupal 4.6.2 from the cpanel. I was able to login as admin. After my first login, I got the screen which has the following message:
--
The first thing you will need to do is create the first account. This account will have full administration rights and will allow you to configure your website. Once logged in, you can visit the administration section and set up your site's configuration.
---
I clicked on the create the first account link and I got the following message:
--
You are not authorized to access this page.
--
So what should I do now. How do I create a new account with full permissions. I thought I was supposed to have full permissions because I was the one who intalled it.
please advice...
thanks
ok. i found that setting.php
ok. i found that setting.php file but that change ($BASE_URL = 'http://localhost' ; will lead to some other errors. the create new account link will give Page Not Found error.. any suggestions?
I fix that error
I fix it removing the last '/' of $base_url...
$base_url = 'http://web.saes.net';
Good Luck!
Same Problem here
I've installed Drupal many times and have never run into this before but now I'm pulling my hair out. I installed drupal straight from a fresh download and configured everything correctly. I've done this probably 20 times before this so I'm certain that I'm not missing any elementry steps.
Just as mentioned by the another poster in this thread, I'm able to create new accounts but never able to log in. I get an email with my password just fine. It is especially frustrating because I get that 'not authorized' message when I first tried to log in with admin. I'm not authorized to edit my own account? (mysite.com/?q=user/1/edit) I don't get it.
If I look at the watchdog table, I too see a session opened for admin and then after that a entry of access denied.
I'm runing:
PHP Version 4.3.8
MySQL 3.23.56
Drupal 4.6.3
I'm inclined to think that it is not something with my hosting as I have a completely separate hosting account with the same company(jumpline) where I have several drupal sites running.
Any ideas on where to start troubleshooting this?
Eric Lawrence
Developer/UX Designer
http://squaretone.com
The first thing you do after creating first account
Should be a rule of thumb:
The first thing you have to do when creating the first account (and manage to login with the provided password) is to change the password and write it down/memorize it.
Page not found, this is what mostly causes it
If you have 1 character wrong in the config.php/settings.php file
you'd get "page not found" or other "mess".
1.- No trailing slash
2.- No trailing space
3.- Exact DB name/path
If you have been able to access your site, and suddenly can't
Most of the times when:
- You can see your Drupal website, but no Theme (applied CSS), this is very often caused because your config/settings.php file is not pointing
at the "exact location".
- You get only SQL-error message (nothing else), that contains something like this: ...password...yes... Then password is incorrect in settings.php/settings.php
- You get only SQL-error message (nothing else), that contains something like this: ... access denied... / ...database not found...
This is probably your settings/config.php file pointing wrong.
Have a closer look at the DB values.
Resetting password
I never tried this, but may be a possible solution:
You could maybe reset your password if you have access to PHPMyAdmin.
Look at your Drupal DB, go to the Users table, and press the browse button once you've clicked on it. Select your username, and edit it. Remove the "ununderstandable/encrypted/hashed word" in the password field, and leave nothing behind. Remember to save.
Sorry about the "unclear" message
Make sure you leave NO trailing slash and NO trailing space
Followup - fixed it
I was able to fix my problem with the install but I'm baffled as to why it fixed it.
My host made some update and overwrote my custom apache httpd.conf file so it was no longer set up to allow clean urls. I made the simple correction to the httpd.conf file and everything worked perfectly after that.
I don't understand why it affected my new druplal site like it did. If I had clean urls enabled that would certainly have an effect but this was a brand new install so i did not have clearn urls enabled.
either way. all is well.
Eric Lawrence
Developer/UX Designer
http://squaretone.com
First account creation problem on Windows
I have pretty much the same problem - creating first account gives no confirmation and an attempt to go to the admin section fails with error "You are not authorized to access this page."
Just to make the picture complete - I remarked
ini_set('session.save_handler', 'user');
in settings.php files, because it causes another error :
Warning: ini_set(): A session is active. You cannot change the session module's ini settings at this time. in D:\Inetpub\wwwroot\drupal-4.6.3\sites\default\settings.php on line 109and
and I could not do anything.
And yes, I tried to reinstall Drupal, recreate DB, change login/password, point http://localhost to the Drupal directory and of course, scanned the forum ....
My definitions are :
Any ideas on how to let it work are highly appreciated.
Thanks,
J.
Check your settings.php file
Check your settings.php file for trailing or leading spaces. Use notepad (NOT wordpad) for editing. Other programs can have issues.
You can also use notepad2 or Crimson Editor as well.
-sp
---------
Test site, always start with a test site.
Drupal Best Practices Guide -|- Black Mountain
-Steven Peck
---------
Test site, always start with a test site.
Drupal Best Practices Guide
settings.php is clean
Thanks, sepeck, but I've read about this problem on the forum and checked it carefully before posting - no spaces, no slashes.
:(
What about any of the other *.php-files
Another *.PHP file with a trailing space can cause this.
Try to start with core-modules, and get your site working before adding more modules.
No modules added
No modules added yet - the installation is brand new ...
can i install drupal with php5 version on windows-2000
hai i'm trying to install drupal on my machine having configuration
windows2000
php -5.0.5
mysql-4.0.20.
drupal-4.6.3.
i set sites/default/settings.php properly. but when im accessing page
/localhost/drupal-4.6.3/index.php
im getting page properly ,when i click create first account or any link it is listing all directory files
what to do
What has worked for me.
I have never set up a drupal site directly under wwwroot. I have always installed it completely outside of Inetpub.
So the steps I take are
Unpack drupal somewhere on my hard drive
I usually rename it from drupal-4.6.3 to something that reflects the project I am working on
Load the database
Then in the Internet Information Services tool
Expand the menu till you see 'default web site'
Right click, when the menu appears select 'new' -> 'virtual directory'
Provide the alias (this is how you will refer to the site with the URL so I would suggest no spaces)
Specify the directory drupal sits in (this will be the directory with index.php, the modules, sites, misc and other folders)
This will add the alias to the list of sites
Right click on the name, select 'properties'
Click the 'Documents' tab and add index.php to the list of documents (I usually delete the other ones)
And you should be good to go.
possible solution
I'm sure this is too late to help you personally but I had the identical problem (except without the "headers already sent" warning) with Drupal 4.6.5 until I commented out a session_start() line in a non-Drupal PHP file (apacheincludedfile.inc) that was being run via httpd.conf. (Specifically, my httpd.conf has line
php_admin_value auto_prepend_file /usr/local/lib/apacheincludedfile.inc)Commenting out that premature session_start() solved the problem.
I have the same problem. These are my specifics.
I have done pretty much the same as the others to remedy this but to no avail. Here is my information:
mysql: 4.0.23-standard
php: 5.1.0RC1
OS: Linux
Drupal: drupal-4.6.3 + drupal-4.6.4
problem: I get as far as the welcome page and creating the first account but I can't log in with it using the password provided on the page or the one emailed to me (which are the same). There are no error messages. I can see the admin account in the the users table and I can create other accounts but none of them can log in either. I have been trying for over 5 hours and i was glad just to find this page and find others with similar troubles, even if this one hasn't been resolved by anyone yet. I am not alone at least. :-)
Like the others I checked for trailing slash in the url and any spaces that appear in the settings.php file. Also I've repeatedly started over from scratch with the database and downloaded a couple of versions.
Exactly the same problem
I used Fantastico to install Drupal automatically on a nativespace host. I got the email with the password, logged in with it to change the password, and got ACCESS DENIED.
I am not into messing with config.php or anything else that is techy. I am simply a user. And Drupal has failed me at the first hurdle. I have simply no idea what to do. Does anyone from Drupal?
Richard
FIXED my create-admin-user problem
OK, I just had the same experience with a Drupal installation using Fantastico: I went to the new site, saw the instructions to create the first (admin) user, got the e-mailed password and found I could not get into the admin area.
I knew it wasn't some extra space character in a php file. This was a clean install.
So, figuring I'd done something wrong, I blew away the whole installation and started over.
And I noticed this time that I was prompted, in Fantastico's script, for an admin password. At the completion screen, it told me my user was [password] and password was [password]. That was a little weird, but sure enough, going to the new site and immediately logging in with that matching user/PW combo got me logged in as admin. (It was then easy to change the user name so it didn't equal my password.)
The key for me was to ignore the Drupal instructions to create the first user if your automated script has created it for you.
Maybe this will help in someone else's case too.
exactly the same problem here
I have read through the whole page of comments but could not figure out what is exactly the resolution. My first Drupal (version 4.7.0) page has shown up. But when I "Create new password", I got access forbidden page:
Forbidden
You don't have permission to access /drupal470beta/ on this server.
I am very sure I did not add any trailing slash or space:
$base_url = 'http://hostname.domainname.com/drupal470beta';
Did I miss some something somewhere ???
Same problem: Session cookie domain problem (??)
I'm having the exact same problem (using Drupal 4.6.6, PHP 5, MySQL 4.0.25, Linux).
So far, the best hope of a cause I've found is a problem in the domain for the session cookie. For some reason the domain is being set to ".www.smithweb.us".
Based on advice from other posts on this topic, I've added a session.cookie_domain setting the path to "www.smithweb.us" to the settings.php file in the sites/default directory, but to no avail.
Anyone have an idea why this might be happening and how to fix it?
If you want to test the install out, It's at www.smithweb.us/barrett/webdevelopment/drupal
Check your cookie settings
If you don't accept cookies from your Drupal site you can't login, I think.