After new installation can not login

After new installation can not login

by C Barrain -
Number of replies: 10
I just finish a new installation and /I got the login screen.

when I enter "admin" "admin" it does not allow me to enter

Average of ratings: -
In reply to C Barrain

Re: After new installation can not login

by Colin Fraser -
Picture of Documentation writers Picture of Testers
What is the environment? Different environments have different problems at this point. You using Windows 7, check you have permissions in UAC.
In reply to Colin Fraser

Re: After new installation can not login

by C Barrain -
I copied and installed directly moodle in my web host: http://www.networksolutions.com/

The page is:
http://americanconservativeinstitutellc.org/moodle/

The server:
System: Linux vux24 2.6.33.2-NETSOL #1 SMP Thu May 13 18:54:01 EDT 2010 i686

You can obtain additional info typing:
http://americanconservativeinstitutellc.org/phpinfo.php


My problem is that during the initial set-up process, I never get asked to create an admin account! Then I read that I can use "admin" "admin" to log in but it does not work.

Please advice!

In reply to C Barrain

Re: After new installation can not login

by Mary Evans -
I'm just wondering why it was you missed the Admin setup page.

Did you carry out the Moodle installation yourself?

If the answer to this is yes, then did you carry out the various steps as described in this text file www.americanconservativeinstitutellc.org




In reply to C Barrain

Re: After new installation can not login

by Mary Evans -
Further to my last post...reading other comments in this forum, there appears to be a problem with Net Solutions. I suggest you contact them and ask why your install did not work. They may be able to resolve the issue.

http://moodle.org/mod/forum/discuss.php?d=142639

Mary
In reply to Mary Evans

Re: After new installation can not login

by C Barrain -
Mary,

The problem mentioned in the post is related to the data directory 'Moodledata", and it worked fine for me, also the installation scrip run through the end, but it did not ask at any time for the administrator user and password.

In this post http://www.moodle.biologymad.com/doc/?file=faq.html#noadmin it says that I have to add to the file moodle/admin/user.php the following
unset($user);
unset($admin);
unset($teacher);

any idea in how to add that?









In reply to C Barrain

Re: After new installation can not login

by Colin Fraser -
Picture of Documentation writers Picture of Testers
I am not a code builder, not many here are, but I do know a little about general programming rules. It would seem to me that $user, $admin and $teacher are variables.

A line of php code might read something like:

$user = get_record('user', 'id', $confirmuser))

In other words, the variable $user becomes equal to the record of the active user. Somewhere the value of user is established as the person who has logged in and that person has a valid id who has a role that has been confirmed. What can happen in programming is that a variable that is used can sometimes retain a value it should have dropped, so the command unset($user); would clear any residual data. To use these unset commands would imply that they go before the first code that establishes a value for any of these variables. Essentially in user.php that would mean somewhere around line 17 or 18.
In reply to Colin Fraser

Re: After new installation can not login

by C Barrain -
You mentioned in another post that may be it was a version problem.

how can i check moodle version? In the file version.php and it shows 1.9.8

how can I drop all the tables in your database to re-install again from scratch

Also because I never entered the administrator account, where do I enter it? Otherwise how can the login work?




In reply to C Barrain

Re: After new installation can not login

by Mary Evans -
Can I ask if the Moodle files you uploaded where from an existing set up on your PC which had access to an Apache server like Moodle for Windows?

If this is true, then you need to delete those files off your website and start again this time with a fresh copy of a Moodle install which you can download from HERE get Moodle 1.9.9 (it's the 2nd one in the current list).

If it wasn't part of an existing Moodle install then you can use those files again, or start over with a fresh copy of Moodle as I explained above.

You can delete your old database and create another but be sure to make a note of the MySQL server address this is important for putting into the form during the install, along with the database name, username and password. These are crucial for the install to work.

Assuming then that you have a new database, you have all the necessary bits of information about the database to hand, and your new Moodle files are poised ready to be installed on your webserver.

Open a new browser window and put in the address of your Moodle website. Here you should see the install page. From here on just follow the instructions. It should be mainly form filling, take care with the database information form as this is important.

If you get stuck I'll be here most of the day to answer any queries.

Mary
In reply to Mary Evans

Re: After new installation can not login

by C Barrain -
Mary,

I just deleted what was on the server and downloaded that last

Standard Moodle Packages Moodle 1.9.9+ BEST CHOICE FOR A NEW SERVER!

but it looks like it has a problem, see my new post Fatal Error


In reply to C Barrain

Re: After new installation can not login

by Mary Evans -
Did you delete the Database too? Because you need to clear all reference to your last install before installing new version.