suEXEC

Dealing With Gallery2 Errors

I recently ran into the following Gallery2 error while updating my website to work with suEXEC:

Error (ERROR_PLATFORM_FAILURE) :
    * in modules/core/classes/GalleryTemplate.class
      at line 270 (GalleryCoreApi::error)

It turns out this somewhat cryptic error occurs because PHP no longer has permission to access the "g2data" directory (where Gallery keeps its data).

Since suEXEC forces PHP to run as your own username, rather than as the generic Apache user, it was unable to get access to the data files. The file permissions for the "g2data" directory still belonged to the "Apache" user.

... Read the rest of this post!

Posted by John on 2007-10-16
Syndicate content