Try to set mysql.default_socket in htaccess