bonjour
je te mets pour information utile? le mode d'installation de gallery
ils parlent du safe mode....
Step 1 : Download Gallery 2 from its official website http://gallery.menalto.com/. The version I’m using is the 2.1.1. Extract it.
Step2 : First of all, you have to make it installable. Normaly, the installation process will stop when it finds that safe-mode is ON at the System Checking Step. To pass this step, edit file gallery2/install/steps/SystemChecksStep.class and change the lines 108-120 from
/* Make sure that safe mode is not enabled */
if (GalleryUtilities::getPhpIniBool('safe_mode')) {
$templateData['check'][] =
array('title' => _('Safe mode disabled'),
'error' => true,
'notice' =>
_('Error: Your version of PHP is configured with safe mode enabled. ' .
'You must disable safe mode before Gallery will run.'));
$failCount++;
} else {
$templateData['check'][] =
array('title' => _('Safe Mode'), 'success' => true);
}
to
/* Make sure that safe mode is not enabled */
$templateData['check'][] = array('title' => _('Safe Mode'), 'success' => true);
Step 3 : With safe-mode ON, calls to PHP fucntion set_time_limit always generate errors. Usually, you can ignore those warnings (although they’ll ruin your pages with ugly messages), but in some scripts, those errors can stop the execution so we need to avoid those situations. If you have time, replace all calls to set_time_limit
with @set_time_limit
(use an editing tool or unix/linux scripts). If you don’t have time, at least replace set_time_limit
with @set_time_limit
in file gallery2/modules/core/classes/Gallery.class (I didn’t have time :p).
Step 4 : Create a directory for applications to store sessions on host, Gallery needs it. Use phpinfo() to know where to create it (session.save_path). On free.fr, the directory’s called sessions and it’s in your root directory. Create it if it’s not already there.
Step 5 : Up load our modified Gallery 2 and run the installation process as described in the documentation, on the System Checking Step, you’ll see a warnings about files’ intergrity. It’s normal as we’ve modified some files! Ignore warnings concerning set_time_limit.
Step 6 : Normally, you can easilly finish the installation process. There’re some modules which are not activated as they can not auto-configured (ImageMagick, Archive Upload …), but it’s another problem. Your gallery is now ready to be used.
Warning : The documentation says that Gallery could run without set_timeout_limit function, but data’s intergrity is no more warantied!! There are some errors when I try to delete an Album, but the album is effectively deleted.
Conclusion
I’m now using Gallery normally, but I need more time to test all of its features. This is just a work-around for those who desperately want to use gallery 2 on their current host and it’s not a serious solution. I really hope that there will be a version, or a patch that lets Gallery runs with safe-mode ON.