PHP version 5.2.3 is needed. this is the earliest version that introduced the mysql_set_charset function in php.
to work around the issue, edit the install_gallery/dignostic.php file, change:
if (strnatcmp(phpversion(),'5.2.3') >= 0){
to:
if (strnatcmp(phpversion(),'5.2.0') >= 0){
next edit the install_gallery/global.php file, add the following code at line 1:
<?php
if (function_exists('mysql_set_charset') === false) {
function mysql_set_charset($charset, $link_identifier = null)
{
if ($link_identifier == null) {
return mysql_query('SET NAMES "'.$charset.'"');
} else {
return mysql_query('SET NAMES "'.$charset.'"', $link_identifier);
}
}
}
?>
add the same code at line 1 of the install_gallery/scripts/connection.php file.
after the install is complete, you may need to edit the Connections/powergallery.php and add that code block again at line 1.