Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
316 views
in Technique[技术] by (71.8m points)

php - Moodle: Invalid login, please try again

I'm migrating Moodle from one hosting to another but first I want to install it on my PC so I can use it as a reference guide. There's no way to check my old hosting files because the contract with them was already cancelled, I was recently hired for this job and it was a surprise.

I have a back up of everything they had (moodle and moodledata folders, database... but they didn't back up their courses, I only have folders and database). And now I want to install it on my computer (I want to have a reference of the contents and structure of the courses, etc).

I'm running Xampp, I copied the folders under htdocs, modified the config.php file to connect to the database and the page looks the same as the original, but the problem starts when I want to start my session with username and password, because Moodle no longer recognizes my login data. It's very weird, because I copied everything as it was in their old hosting.

I also have adapted the paths of directories and files for Windows in the config.php file, but still doesn't work. Does anyone know what might be happening? I'm attaching my config.php for you:

config.php

I should clarify that the version of Moodle I'm running is 2.6.11 (their hosting had PHP 5.3.29 and MySQL 5.1.73-cll and I tried running different versions of Wamp and Xampp with many different versions of PHP and MySQL). I know, it's terrible they didn't migrate before.

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

Did you copy the password salt from the original system to your local config.php?


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...