Fwd: [gallery-3-users] Re: Issue after successful install of Gallery3

68 views
Skip to first unread message

Steven P. Ulrick

unread,
Nov 6, 2024, 9:01:24 AM11/6/24
to gallery...@googlegroups.com




-------- Forwarded Message --------
Subject: Re: [gallery-3-users] Re: Issue after successful install of Gallery3
Date: Wed, 6 Nov 2024 07:54:31 -0600
From: Steven P. Ulrick <meow...@gmail.com>
To: J.R. <jrl...@thepostalzone.com>



On 11/6/24 7:38 AM, J.R. wrote:
Steven,

I can only guess here, but since everything seems to have gone well up to the import of the images I'm thinking it may have something to do with the way Linux (and all Unix variation) name their file locations. The Gallery code is probably looking for the traditional folder/subfolder/filename.jpg location of the files. Just a guess.

-- J.R.

Actually, the installation succeeded, and  then this came up:

Screenshot

Normally, that's good news. (I have installed Gallery3 on various versions of Fedora Linux for many years now.) But, when I click on the link that says "Start using Gallery", that's when the blank white page comes up.


On 11/6/24 07:45, Steven P. Ulrick wrote:

On 11/6/24 6:32 AM, Steven P. Ulrick wrote:
I just did a successful install of gallery3 (which i obtained from the current git repo) I successfully installed it on Fedora Linux 40.

I succesfully completed the gallery3 installation. The final step was saving my database information, which gave me the expected link to go to my gallery and begin uploading files.

But, when I navigate to my gallery I only get a plain white page.

Here is a link to my phpinfo.php file

http://www.afolkey2.us/gallery3/phpinfo.php

If you need any more information, please let me know.


I checked gallery3/var/logs/ and there was nothing there, except a .htaccess file.

Here is the contents of that file:

DirectoryIndex .htaccess
SetHandler Gallery_Security_Do_Not_Remove
Options None
<IfModule mod_rewrite.c>
RewriteEngine off
</IfModule>
Order allow,deny
Deny from all


--
WHEN USING AN EMAIL PROGRAM to reply to this message, click REPLY TO LIST or REPLY TO ALL so your reply goes out to everyone in the group. If you click REPLY or REPLY TO SENDER Google will *only* send your reply to the original author (not recommended).
 
To post a NEW MESSAGE to the group, send an new email to:
gallery...@googlegroups.com
 
To view or sign in to this group on the web, use this URL:
https://groups.google.com/forum/#!forum/gallery-3-users
---
You received this message because you are subscribed to the Google Groups "Gallery 3 Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gallery-3-use...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/gallery-3-users/b72f3769-6313-fec4-6bbe-3d3ef5389fa9%40thepostalzone.com.

Steven Ulrick

unread,
Nov 6, 2024, 9:31:27 AM11/6/24
to Gallery 3 Users
Is version 8.3.4-1 of PHP too new to use with Gallery3? The installation proceeded without error. My only issue was when I attempted to go back to my gallery to start uploading images.

Whiskerfish1

unread,
Nov 6, 2024, 10:25:53 AM11/6/24
to gallery...@googlegroups.com
Had a plain white page on my site move to the new server last month.  The new server tech guys fixed it and sent me this 

"Hi Steve,

Gallery3 didn't support the latest version of PHP(8.2), so we downgraded the PHP version using the htaccess file. We noticed that this code in the htaccess file was disabled, but we've added it back, and now the site is running smoothly"
.

Steven Ulrick

unread,
Nov 6, 2024, 11:03:51 AM11/6/24
to Gallery 3 Users
I tried downgrading to PHP 8.1.30. Still doesn't work. I assume that since 8.1.30 is the only version of PHP on my system that I don't have to edit the htaccess file. Please correct me if I'm wrong.

Steven Ulrick

unread,
Nov 6, 2024, 11:26:02 AM11/6/24
to Gallery 3 Users
Another question: Why would the version of PHP that comes with Fedora 40 not work with Gallery3? I successfully completed the INSTALLATION of Gallery3 with PHP 8.3.13-1. Why would that not work for actually accessing my gallery so that I can upload pictures? Again, please be aware that I successfully installed the git master of Gallery3 on Fedora 40, using PHP 8.3.13-1. Then I clicked the "Start using Gallery" link and all of a sudden the version of PHP is now too new? If that is the case, please let me know.

Gerardo L. Cahn

unread,
Nov 6, 2024, 11:32:23 AM11/6/24
to gallery...@googlegroups.com

I don't believe PHP 8.3.13-1 is the issue, as my installation uses it (under Fedora, recently upgraded to 41).  As Adrian suspects, this looks like a security/access issue: gallery is probably not being given control.  Try to examine the apache logs, if you can.  Just my $.02

Gerardo

To view this discussion visit https://groups.google.com/d/msgid/gallery-3-users/0e8ae233-3b17-4c7b-8d9b-2ab8f6b2a73an%40googlegroups.com.
-- 
// Gerardo L. Cahn <ger...@niuk.org>
//  linux, mac ... and, well, yes,
//        ((windows too)).

Steven P. Ulrick

unread,
Nov 6, 2024, 8:42:28 PM11/6/24
to gallery...@googlegroups.com
access_log showed the following after I clicked the "Start using
Gallery" link on the installer page:

> 192.168.1.1 - - [06/Nov/2024:19:24:33 -0600] "GET /gallery3/installer/
> HTTP/1.1" 200 726 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:134.0)
> Gecko/20100101 Firefox/134.0"
> 192.168.1.1 - - [06/Nov/2024:19:24:35 -0600] "GET /gallery3/ HTTP/1.1"
> 500 - "http://www.afolkey2.us/gallery3/installer/" "Mozilla/5.0 (X11;
> Linux x86_64; rv:134.0) Gecko/20100101 Firefox/134.0"
> 80.82.77.202 - - [06/Nov/2024:19:24:42 -0600] "GET / HTTP/1.0" 200 484
> "-" "Mozilla/5.0 (Linux; Android 9; ONEPLUS A5010
> Build/PKQ1.180716.001; wv) AppleWebKit/537.36 (KHTML, like Gecko)
> Version/4.0 Chrome/66.0.3359.126 MQQBrowser/6.2 TBS/044807 Mobile
> Safari/537.36 MMWEBID/1699 MicroMessenger/7.0.6.1460(0x27000634)
> Process/tools NetType/4G Language/zh_CN"
nothing was added to error_log when I clicked that same link.
>>> <https://groups.google.com/d/msgid/gallery-3-users/b72f3769-6313-fec4-6bbe-3d3ef5389fa9%40thepostalzone.com?utm_medium=email&utm_source=footer>.
>>
>> --
>> WHEN USING AN EMAIL PROGRAM to reply to this message,
>> click REPLY TO LIST or REPLY TO ALL so your reply goes
>> out to everyone in the group. If you click REPLY or REPLY
>> TO SENDER Google will *only* send your reply to the
>> original author (not recommended).
>>
>> To post a NEW MESSAGE to the group, send an new email to:
>> gallery...@googlegroups.com
>>
>> To view or sign in to this group on the web, use this URL:
>> https://groups.google.com/forum/#!forum/gallery-3-users
>> ---
>> You received this message because you are subscribed to
>> the Google Groups "Gallery 3 Users" group.
>> To unsubscribe from this group and stop receiving emails
>> from it, send an email to gallery-3-use...@googlegroups.com.
>>
>> To view this discussion visit
>> https://groups.google.com/d/msgid/gallery-3-users/a8b17e50-0d8c-4610-94b1-861f0a200cb8n%40googlegroups.com
>> <https://groups.google.com/d/msgid/gallery-3-users/a8b17e50-0d8c-4610-94b1-861f0a200cb8n%40googlegroups.com?utm_medium=email&utm_source=footer>.
>>
>> --
>> WHEN USING AN EMAIL PROGRAM to reply to this message, click REPLY TO
>> LIST or REPLY TO ALL so your reply goes out to everyone in the group.
>> If you click REPLY or REPLY TO SENDER Google will *only* send your
>> reply to the original author (not recommended).
>>
>> To post a NEW MESSAGE to the group, send an new email to:
>> gallery...@googlegroups.com
>>
>> To view or sign in to this group on the web, use this URL:
>> https://groups.google.com/forum/#!forum/gallery-3-users
>> ---
>> You received this message because you are subscribed to the Google
>> Groups "Gallery 3 Users" group.
>> To unsubscribe from this group and stop receiving emails from it,
>> send an email to gallery-3-use...@googlegroups.com.
>> To view this discussion visit
>> https://groups.google.com/d/msgid/gallery-3-users/0e8ae233-3b17-4c7b-8d9b-2ab8f6b2a73an%40googlegroups.com
>> <https://groups.google.com/d/msgid/gallery-3-users/0e8ae233-3b17-4c7b-8d9b-2ab8f6b2a73an%40googlegroups.com?utm_medium=email&utm_source=footer>.
> --
> // Gerardo L. Cahn<ger...@niuk.org>
> // linux, mac ... and, well, yes,
> // ((windows too)).
> --
> WHEN USING AN EMAIL PROGRAM to reply to this message, click REPLY TO
> LIST or REPLY TO ALL so your reply goes out to everyone in the group.
> If you click REPLY or REPLY TO SENDER Google will *only* send your
> reply to the original author (not recommended).
>
> To post a NEW MESSAGE to the group, send an new email to:
> gallery...@googlegroups.com
>
> To view or sign in to this group on the web, use this URL:
> https://groups.google.com/forum/#!forum/gallery-3-users
> ---
> You received this message because you are subscribed to a topic in the
> Google Groups "Gallery 3 Users" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/gallery-3-users/qrVkoqEf8gY/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> gallery-3-use...@googlegroups.com.
> To view this discussion visit
> https://groups.google.com/d/msgid/gallery-3-users/0529d979-daaf-46b1-9435-6ae203fb3823%40Gmail.com
> <https://groups.google.com/d/msgid/gallery-3-users/0529d979-daaf-46b1-9435-6ae203fb3823%40Gmail.com?utm_medium=email&utm_source=footer>.

Steven P. Ulrick

unread,
Nov 6, 2024, 9:12:45 PM11/6/24
to gallery...@googlegroups.com
Oops. I sent that before I finished it.

OK. Follow this: I created the "var" directory before I ran the
installer, because I read the installation instructions before I started
the install. To play it safe, I made apache the group and owner, as well
as running chmod 777 on var.

The interesting observation that I referred to earlier? NOTHING
whatsover has been written inside var. No log files, nothing. And again,
when I check the httpd logs, nothing seems out of the ordinary.

On 11/6/24 8:01 PM, Steven P. Ulrick wrote:
>
> Interesting observation...
>
> I knew that

Steven P. Ulrick

unread,
Nov 6, 2024, 10:55:49 PM11/6/24
to gallery...@googlegroups.com
On 11/6/24 10:32 AM, Gerardo L. Cahn wrote:

> I don't believe PHP 8.3.13-1 is the issue, as my installation uses it
> (under Fedora, recently upgraded to 41).  As Adrian suspects, this
> looks like a security/access issue: gallery is probably not being
> given control.  Try to examine the apache logs, if you can.  Just my $.02
>
I've been checking access_log, error_log as well as journalctl for
references to mariadb, php-fpm and httpd. Nothing looks unusual to me. I
have noticed that NOTHING has been written inside of my gallery3/var
directory since gallery3 completed my install. Gallery3 has produced no
log files! Well, maybe it just can't write them...

Here is a summary of my issue that I just came up with:

> When I try to access my gallery3 installation using firefox, it just
> silently fails. When I try the exact same thing in Vivaldi, I get HTTP
> ERROR 500, which of course means absolutely nothing specific. But,
> that made me think of this:
>
> 1. If I go to http://www.afolkey2.us/gallery3, I get the 500 error (in
> vivaldi)
>
> 2. If I go to http://www.afolkey2.us/gallery3/installer, since the
> installation is otherwise complete, I get a congratulatory message
> that includes a link to "http://www.afolkey2.us/gallery3". Following
> that, I get the same 500 error I get when I try to access that URL
> directly.
>
> I am something of music hoarder. Therefore I run the "tree" &
> "mp3report" commands on the music directories on my computer so I can
> access them when I am out shopping so that I can avoid buying
> duplicated. That being said:
>
> 3. If go to "http://www.afolkey2.us/Tree/" it works perfectly. The
> same if I go to "http://www.afolkey2.us/mp3report/"
>
> So, my webserver works. It can somewhat serve php files, since I can
> run the installer for gallery3. But I go to the root of my gallery3
> install, and attempt to access index.php, then it fails in such a way
> that it does not even produce any error messages or logs other than
> the generic 500 error.
>
> Therefore, I am off to peruse the contents of
> http://www.afolkey2.us/gallery3/index.php
>>> <https://groups.google.com/d/msgid/gallery-3-users/b72f3769-6313-fec4-6bbe-3d3ef5389fa9%40thepostalzone.com?utm_medium=email&utm_source=footer>.
>>
>> --
>> WHEN USING AN EMAIL PROGRAM to reply to this message,
>> click REPLY TO LIST or REPLY TO ALL so your reply goes
>> out to everyone in the group. If you click REPLY or REPLY
>> TO SENDER Google will *only* send your reply to the
>> original author (not recommended).
>>
>> To post a NEW MESSAGE to the group, send an new email to:
>> gallery...@googlegroups.com
>>
>> To view or sign in to this group on the web, use this URL:
>> https://groups.google.com/forum/#!forum/gallery-3-users
>> ---
>> You received this message because you are subscribed to
>> the Google Groups "Gallery 3 Users" group.
>> To unsubscribe from this group and stop receiving emails
>> from it, send an email to gallery-3-use...@googlegroups.com.
>>
>> To view this discussion visit
>> https://groups.google.com/d/msgid/gallery-3-users/a8b17e50-0d8c-4610-94b1-861f0a200cb8n%40googlegroups.com
>> <https://groups.google.com/d/msgid/gallery-3-users/a8b17e50-0d8c-4610-94b1-861f0a200cb8n%40googlegroups.com?utm_medium=email&utm_source=footer>.
>>
>> --
>> WHEN USING AN EMAIL PROGRAM to reply to this message, click REPLY TO
>> LIST or REPLY TO ALL so your reply goes out to everyone in the group.
>> If you click REPLY or REPLY TO SENDER Google will *only* send your
>> reply to the original author (not recommended).
>>
>> To post a NEW MESSAGE to the group, send an new email to:
>> gallery...@googlegroups.com
>>
>> To view or sign in to this group on the web, use this URL:
>> https://groups.google.com/forum/#!forum/gallery-3-users
>> ---
>> You received this message because you are subscribed to the Google
>> Groups "Gallery 3 Users" group.
>> To unsubscribe from this group and stop receiving emails from it,
>> send an email to gallery-3-use...@googlegroups.com.
>> To view this discussion visit
>> https://groups.google.com/d/msgid/gallery-3-users/0e8ae233-3b17-4c7b-8d9b-2ab8f6b2a73an%40googlegroups.com
>> <https://groups.google.com/d/msgid/gallery-3-users/0e8ae233-3b17-4c7b-8d9b-2ab8f6b2a73an%40googlegroups.com?utm_medium=email&utm_source=footer>.
> --
> // Gerardo L. Cahn<ger...@niuk.org>
> // linux, mac ... and, well, yes,
> // ((windows too)).
> --
> WHEN USING AN EMAIL PROGRAM to reply to this message, click REPLY TO
> LIST or REPLY TO ALL so your reply goes out to everyone in the group.
> If you click REPLY or REPLY TO SENDER Google will *only* send your
> reply to the original author (not recommended).
>
> To post a NEW MESSAGE to the group, send an new email to:
> gallery...@googlegroups.com
>
> To view or sign in to this group on the web, use this URL:
> https://groups.google.com/forum/#!forum/gallery-3-users
> ---
> You received this message because you are subscribed to a topic in the
> Google Groups "Gallery 3 Users" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/gallery-3-users/qrVkoqEf8gY/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> gallery-3-use...@googlegroups.com.
> To view this discussion visit
> https://groups.google.com/d/msgid/gallery-3-users/0529d979-daaf-46b1-9435-6ae203fb3823%40Gmail.com
> <https://groups.google.com/d/msgid/gallery-3-users/0529d979-daaf-46b1-9435-6ae203fb3823%40Gmail.com?utm_medium=email&utm_source=footer>.

J.R.

unread,
Nov 7, 2024, 1:17:50 PM11/7/24
to gallery...@googlegroups.com
Steven,

I do recall posts citing some issues running Gallery 3 under PHP 3.3 but never heard if this was addressed or not. Can you set your server to PHP 8.1 and see what happens?

Adrian London

unread,
Nov 7, 2024, 5:15:36 PM11/7/24
to Gallery 3 Users
(I'm not sure why posts have suddenly started to be spread across multiple threads in this google group.  Anyway ...)

I still think the issue is a config one - maybe related to G3 trying to open https and failing, or being redirected somewhere.

As I mentioned before, if there are no G3 logs at all then it means it hasn't even started.  Hopefully, some Unix level logs will give some clues.

Also have a look in the two pho files the installer would have created in <wherever your install is)/application, for anything that looks wrong.

Adrian London

unread,
Nov 7, 2024, 5:17:07 PM11/7/24
to Gallery 3 Users
There seems to be no edit facility in these groups, either :)

I meant to type the two PHP files.

Steven P. Ulrick

unread,
Nov 8, 2024, 4:02:00 AM11/8/24
to Gallery 3 Users
Hello, Everyone

Is this relevant at all, or did I already share this? I attempted to
install gallery3 from the command line, just to see what would happen.

root@afolkey2:/var/www/html/gallery3# php installer/index.php -h
localhost -u root -p '' -d gallery3b

PHP Warning:  PHP Startup: Unable to load dynamic library 'mysqli'
(tried: /usr/lib64/php/modules/mysqli (/usr/lib64/php/modules/mysqli:
cannot open shared object file: No such file or directory),
/usr/lib64/php/modules/mysqli.so (/usr
/lib64/php/modules/mysqli.so: undefined symbol: mysqlnd_global_stats))
in Unknown on line 0

Warning: PHP Startup: Unable to load dynamic library 'mysqli' (tried:
/usr/lib64/php/modules/mysqli (/usr/lib64/php/modules/mysqli: cannot
open shared object file: No such file or directory),
/usr/lib64/php/modules/mysqli.so (/usr/lib6
4/php/modules/mysqli.so: undefined symbol: mysqlnd_global_stats)) in
Unknown on line 0
PHP Warning:  Module "mysqlnd" is already loaded in Unknown on line 0

Warning: Module "mysqlnd" is already loaded in Unknown on line 0
PHP Warning:  Module "mysqli" is already loaded in Unknown on line 0

Warning: Module "mysqli" is already loaded in Unknown on line 0
Gallery 3 is already installed.
root@afolkey2:/var/www/html/gallery3#

Also, I found an error file in my php-fpm directory that may be relevant:

> [06-Nov-2024 11:35:49 UTC] PHP Fatal error:  Uncaught
> mysqli_sql_exception: Access denied for user 'root'@'localhost' in
> /var/www/html/gallery3/installer/installer.php:80
> Stack trace:
> #0 /var/www/html/gallery3/installer/installer.php(80):
> mysqli->__construct()
> #1 /var/www/html/gallery3/installer/installer.php(104): mysql_connect()
> #2 /var/www/html/gallery3/installer/web.php(51): installer::connect()
> #3 /var/www/html/gallery3/installer/index.php(38): include('...')
> #4 {main}
>   thrown in /var/www/html/gallery3/installer/installer.php on line 80
There are other occurances of this error in the log.


Steven P. Ulrick


Reply all
Reply to author
Forward
0 new messages