by Ken Task.
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