Contents |
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
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
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.
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.
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.
Logging in / out issues:
Watermark issues and alerts (from Gallery) that are url-encoded [example]:
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.
Follow some helpful tips from the support page: https://www2.suresupport.com/faq.php/24/145
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'
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
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.
In the modules/gallery/helpers/access.php file replace line 719:
fwrite($fp, "Options +FollowSymLinks\n");
With:
fwrite($fp, "Options +SymLinksIfOwnerMatch\n");
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) {
In the modules/gallery/views/form_uploadify.html.php replace line 115:
<? if ($suhosin_session_encrypt || !$movies_allowed): ?>
With:
<? if ($suhosin_session_encrypt): ?>