Gallery3:Host specific issues - Gallery Codex
Personal tools

Gallery3:Host specific issues

From Gallery Codex


Contents

Host specific issues

Apache 1.x is not supported by Gallery 3, period, end of discussion. It's also dead software, no longer supported by the Apache Foundation (the guys writing the code for Apache). However some users have had some luck in getting Gallery 3 to work in such an environment. Below is some community recommendations to help users.
See some additional discussion on the Downside of using Apache 1.x

Nginx

The REST API works well for the most part under Nginx. Servers running Nginx versions prior to 0.8.32 should use Matt Bostock's patch, which fixes a bug in Nginx's handling of 201 HTTP responses: https://sourceforge.net/apps/trac/gallery/ticket/1643

1 & 1

Try these steps to do a Fresh Install:
1. upload Gallery 3 (unzipped) to 1AND1 /gallery3. (I chose /gallery3 and these steps assume it is in /gallery3.)
2. create 'var' directory and set permissions to 777
3. setup MySQL, wait for it to finish and note the created db settings.
4A. edit .htaccess by adding 'AddType x-mapp-php5 .php' to TOP of file. (Use vi, Joe, download, edit and upload back or any editor that you like) to edit the .htaccess file.
4B. Also in .htaccess, uncomment the mod_rewrite block. Set the RewriteBase parameter to the directory name that you used "/" or "/gallery3"(no quotes). if you're using a subdomain without a directory (eg http://gallery.example.com/).
5. use your browser and go to http://example.com/gallery3/install (I think that 'install' is optional). This should run Gallery 3 installer and should appear on your display. Follow instructions on the display.
6. copy/paste My SQL info (db name, db host, db user) to the Gallery 3 form that appeared and also set prefix to g3_ or whatever you like (optional). your passwd is required.
7. enter and go to the next screen and go into Gallery 3 (i hope).
8. NOTE: sometimes when you go into Gallery 3 and think all is OK BUT be sure to enter the drop-down menus to test Gallery 3 operation. Sometimes it will error when going into 'Dashboard' for example.
9. if no errors all should be OK and really for you to import images.

file system permissions

To set the directory var to permissions 777, you may have to use a program in 1and1: Control Panel - after you log in and go to the Control Panel.

  • Choose "Dominions & Web Space," then below Access click on WebspaceExplorer.
  • Then click to open your root site where Galler3 is, then click on Gallery 3 in the left Folders side.
  • Then select var in the right side and right-click and click "change permissions."

GoDaddy

Asked to be transfered to their grid hosting package. Once that is done you will need to create a php5.ini file, put it at the root of your site and add this line to it:

    cgi.fix_pathinfo = 1

If you have issues connecting to the database change localhost to a long hostname on Godaddy that is found in the phpmyadmin control panel.

If using their grid hosting service (4GH), it is necessary to enable the URL Rewrite rules in the .htaccess file of the base of your Gallery 3 directory. Further instructions are available within the file.

Host Gator

Logging in / out issues:

Watermark issues and alerts (from Gallery) that are url-encoded [example]:

Host Papa

Inmotion Hosting

If there is an installer check error, modify the .htaccess that came with Gallery 3 by removing the line which is failing the installer check.

icdsoft

Follow some helpful tips from the support page: https://www2.suresupport.com/faq.php/24/145

iWeb.com

iWeb.com does not include mbstring in their default php install. Just ask them to install it for you.
You might have to edit database.php to read 'type' => 'mysql', from 'type' => 'mysqli'

just host

Problems with apostrophe in photo names?
We try to disable this in the .htaccess file shipped with Gallery 3 however some hosts don't allow this change but do allow php.ini files.
create a php.ini file in the root of the album folder with

    magic_quotes_gpc = Off

UnitedHositng (UK)

From user kemmish:
Open the gallery3/.htaccess file in wordpad and at the very bottom of that file it says to not use the Index.php uncomment the following lines of code.

So if you in comment the last few lines of code in that file then save and upload the file overwriting the old .htaccess file that you just modified.

BlueHost/HostMonster

  • Attempting to change permissions on an album will result in the following warning message : Oh no! Your server needs a configuration change in order for you to hide photos! Ask your server administrator to enable mod_rewrite and set AllowOverride FileInfo Options to fix this. By default, AllowOverride FileInfo Options is set, however a tweak to the gallery module must be made to remove this warning: from user kingmesal.

In the modules/gallery/helpers/access.php file replace line 719:

    fwrite($fp, "Options +FollowSymLinks\n");

With:

    fwrite($fp, "Options +SymLinksIfOwnerMatch\n");
  • For some reason or another sometimes the Organize module fails to work correctly. While I'm not sure that this is related to a specific host or not I am putting it under B.H./H.M. because that is who I am using to host my Gallery. I found a solution which you can find documented here.

In the modules/gallery/helpers/items_rest.php replace line 86:

    foreach ($item->viewable()->children() as $child) {

With:

    foreach ($item->viewable()->children()->as_array(true) as $child) {
  • These hosts do not have ffmpeg installed on their servers due to the intensive CPU usage that it requires (see here for more on this). Here is a thread on this issue and here is a solution/hack from user nivekiam to remove the warning message on the upload form, however here is another solution with similar results:

In the modules/gallery/views/form_uploadify.html.php replace line 115:

    <? if ($suhosin_session_encrypt || !$movies_allowed): ?>

With:

    <? if ($suhosin_session_encrypt): ?>
advertisements