Moodle 2.6.2+ Install fail

Moodle 2.6.2+ Install fail

by Adelbert Otto -
Number of replies: 5

Hello

I get this error when connecting to mysql...

Error: database driver problem detected

The site administrator should verify server configuration

PHP has not been properly configured with the MySQLi extension so that it can communicate with MySQL. Please check your php.ini file or recompile PHP. MySQLi extension is not available for PHP 4.

My server specs:

Apache version 2.2.25

PHP version 5.3.26

MySQL version 5.1.73-cll

Architecture x86_64

Operating system linux

Perl version 5.10.1

Kernel version 2.6.32-220.2.1.el6

Downloaded version of moodle

Moodle 2.6.2+
MOODLE_26_STABLE

I also want to know what files and folders need for write and read permissions, i do this with my FTP program.

Thanks

Icemanmx

Attachment moddle.png
Average of ratings: -
In reply to Adelbert Otto

Re: Moodle 2.6.2+ Install fail

by Ken Task -
Picture of Particularly helpful Moodlers

Sounds like remotely hosted on a shared plan.   That true?

IF so ...

Appears that web server is finding an older version of PHP:

"PHP has not been properly configured with the MySQLi extension so that it can communicate with MySQL. Please check your php.ini file or recompile PHP. MySQLi extension is not available for PHP 4."

Check with provider on how to set your account to use PHP5.

Kinda strange cause I see el6 - which is RedHat Enterprise version 6 - and thought no one ran PHP version 4.

'spirit of sharing', Ken

In reply to Ken Task

Re: Moodle 2.6.2+ Install fail

by Adelbert Otto -

Hello

I have only php5 installed on my server, and it is RedHat Enterprise version 6.

I also have PDO drivers installed

In reply to Adelbert Otto

Re: Moodle 2.6.2+ Install fail

by Ken Task -
Picture of Particularly helpful Moodlers

php -m |grep mysqli

should show:

mysqli

ie, the php-mysqli extension is loaded.  CentOS 6 should have php-mysql and php-mysqli

Install via yum: yum -y install php-mysql [enter]

Restart apache

run the php -m above again to check if it's loaded.

You should also have in /etc/php.d/ a mysql and a mysqli .ini file.

moodledata folder only one that needs write.  Code folder does need to be seen by apache user/group  So Moodle can write the config.php only, the moodle folder needs write access ... but not after that.

'spirit of sharing', Ken

 

In reply to Ken Task

Re: Moodle 2.6.2+ Install fail

by Adelbert Otto -

Can you have help to see the php info i have on the server?

In reply to Adelbert Otto

Re: Moodle 2.6.2+ Install fail

by Ken Task -
Picture of Particularly helpful Moodlers

On a typical non-shared el6 box, php will read additional extensions/config from /etc/php.d/ and find mysqli.ini there IF php-mysqli is installed and loaded.

If you are on a shared el6 system the provider may not have it setup that way.  Providers of most shared server offerings do/should have an FAQ or KB for customers.   Checked that?

Please see: http://us3.php.net/phpinfo  There is an example .php file there.

Can create it locally with NotePad or some text editor (NOT Word - copy and paste from page linked above).

Save the file as 'phpinfo.php' and place it in /var/www/html/ (ie, apache document root).

Access directly with browser: http://yoursite/phpinfo.php

'spirit of sharing', Ken