ERROR 500 UNSOLVED

Status
Not open for further replies.

alejan61

New Member
Messages
3
Reaction score
0
Points
1
My moodle class has been migrated. When I traid to open it said to me: ERROR 500. I studied some forum dialogs and I discovered that I had to change the PHP version. I changed it and I choose version 5.6, but now, if I not select mysql and mysqli options, this message appears in the screen :

Error: database driver problem detected
The site administrator should verify server configuration
PHP has not been properly configured with the MySQLi extension for it to communicate with MySQL. Please check your php.ini file or recompile PHP.

If I select these options only appears a white screen.
What I have to do? I have to install moodle again?
Please, can anyone help me? Thanks
 

spacresx

Community Advocate
Community Support
Messages
2,203
Reaction score
196
Points
63
Was php 5.6 used when you installed moodle before ?
Was it installed before or after the migration to directadmin?
if it was before its possible your mysql database is messed up.
and may be best to reinstall moodle if there wasnt much there.
i think they said they are using mysqli now instead of mysql.
 

Anna

I am just me
Staff member
Messages
11,772
Reaction score
591
Points
113
With php version 7.0 mysql_connect (and the other related commands) is removed in favor of mysqli_ and PDO which are safer options.

If your script uses mysqli already, you should in that regard be able to use any of the available versions (though other parts of the script may need a specific version), if you set version 5.6 you will have to chose the functions you want to be using yourself, so if you need that for other parts, make sure to check of mysqli in the list.

If you look in the error log, are there any clues to what you might be missing? Found under Systeminfo and files->Summary/statistics/logs
 
Status
Not open for further replies.
Top