Re: Issue with PHP based web service on Fedora 40

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




On 11/6/24 8:03 PM, Will McDonald wrote:
On Wed, 6 Nov 2024 at 17:11, Steven P. Ulrick <meow8282@xxxxxxxxx> wrote:

    I just did a full install of Fedora 40. It is fully updated.
    I am attempting to run Gallery3 on a webserver that I host on this
    computer (the one with Fedora 40 on it) I was able to install
    Gallery3,
    but when I attempt to go to the gallery to add pictures, I just get a
    plain white screen in the web browser.

    Some of you might be thinking about now that this is a Gallery3
    issue,
    not Fedora. But, when I run php -v, I get the following:

    > root@afolkey2:/var/log/httpd# php -v
    > 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
    > PHP Warning:  PHP Startup: Unable to load dynamic library
    > '/path/to/extension/mysqli.so' (tried: /path/to/extension/mysqli.so
    > (/path/to/extension/mysqli.so: cannot open shared object file:
    No such
    > file or directory), /usr/lib64/php/mod
    > ules//path/to/extension/mysqli.so.so <http://mysqli.so.so>
    > (/usr/lib64/php/modules//path/to/extension/mysqli.so.so
    <http://mysqli.so.so>: cannot open
    > shared object file: No such file or directory)) in Unknown on line 0
    > PHP 8.3.13 (cli) (built: Oct 22 2024 18:39:14) (NTS gcc x86_64)
    > Copyright (c) The PHP Group
    > Zend Engine v4.3.13, Copyright (c) Zend Technologies
    >    with Zend OPcache v8.3.13, Copyright (c), by Zend Technologies

    The directory "/usr/lib64/php/modules/mysqli" does NOT exist.
    "/usr/lib64/php/modules/mysqli.so (/usr/lib64/php/modules/mysqli.so"
    DOES exist


I think there might be some missing steps here?

1. How did you install PHP?
dnf install from the standard fedora 40 repos
2. How did you install Mysql for PHP?
same as above. Fedora 40 uses mariadb instead of mysql. At least through the installation process for gallery3, gallery3 did not seem to mind.
3. How did you install Gallery3?
I ran git clone on the official Gallery3 git repo
4. Are there any other steps you did that aren't obvious?

None that come to mind right now.



I like to try and do stuff like this in a container first so you have a relatively clean way to reproduce stuff:

$ podman run -it registry.fedoraproject.org/fedora:40 <http://registry.fedoraproject.org/fedora:40>

[root@bf109911d54b /]# rpm -qa | grep php

[root@bf109911d54b /]# dnf -y install php
<snip>

[root@bf109911d54b /]# php -v
PHP 8.3.13 (cli) (built: Oct 22 2024 18:39:14) (NTS gcc x86_64)
Copyright (c) The PHP Group
Zend Engine v4.3.13, Copyright (c) Zend Technologies
    with Zend OPcache v8.3.13, Copyright (c), by Zend Technologies

[root@bf109911d54b /]# dnf provides /usr/lib64/php/modules/mysqli
Error: No matches found. If searching for a file, try specifying the full path or using a wildcard prefix ("*/") at the beginning.

[root@bf109911d54b /]# dnf provides /usr/lib64/php/modules/mysqli.so
Last metadata expiration check: 0:00:33 ago on Thu Nov  7 01:52:14 2024.
php-mysqlnd-8.3.4-1.fc40.x86_64 : A module for PHP applications that use MySQL databases
Repo        : fedora
Matched from:
Filename    : /usr/lib64/php/modules/mysqli.so

php-mysqlnd-8.3.13-1.fc40.x86_64 : A module for PHP applications that use MySQL databases
Repo        : updates
Matched from:
Filename    : /usr/lib64/php/modules/mysqli.so

[root@bf109911d54b /]# dnf -y install php-mysqlnd
Installed:
  php-mysqlnd-8.3.13-1.fc40.x86_64
Complete!

[root@bf109911d54b /]# php -v
PHP 8.3.13 (cli) (built: Oct 22 2024 18:39:14) (NTS gcc x86_64)
Copyright (c) The PHP Group
Zend Engine v4.3.13, Copyright (c) Zend Technologies
    with Zend OPcache v8.3.13, Copyright (c), by Zend Technologies

[root@bf109911d54b /]# rpm -qa | grep mysql
php-mysqlnd-8.3.13-1.fc40.x86_64

Note, at this stage I still don't have MySQL installed (or MariaDB). So if you need to have a local database to support Gallery3 (or a remote DB via ODBC / JDBC or whatever... that's not fulfilled.)

This looks weird/suspect too, specifically '/path/to/extension/':

> PHP Warning:  PHP Startup: Unable to load dynamic library '/path/to/extension/mysqli.so' (tried: /path/to/extension/mysqli.so (/path/to/extension/mysqli.so: cannot open shared object file: No such  file or directory), /usr/lib64/php/modules//path/to/extension/mysqli.so.so <http://mysqli.so.so>

https://www.baeldung.com/linux/mysqli-extension-activate shows the 'mysql-server' package being installed too?

Yeah, that was weird. One thing I need to mention. I have been running Gallery3 on various versions of Fedora Linux for many years now. Probably almost 15 years I've been successfully installing and running it.

Have you restarted Apache?
Oh, have I restarted Apache! No one in the world today has restarted Apache as many time as I have! Yeah, I know, there may be some poor sap out their that having a worse time than I have today...
--
_______________________________________________
users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/users@xxxxxxxxxxxxxxxxxxxxxxx
Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue



[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux