[Bug 256738] lang/php74

From: <bugzilla-noreply_at_freebsd.org>
Date: Sun, 20 Jun 2021 22:15:34 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=256738

            Bug ID: 256738
           Summary: lang/php74
           Product: Ports & Packages
           Version: Latest
          Hardware: amd64
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: tz@freebsd.org
          Reporter: list@understudy.net
             Flags: maintainer-feedback?(tz@freebsd.org)
          Assignee: tz@freebsd.org

Specs on system:
FBSD 12.2 
PHP 7.4.20 
MariaDB 10.5.10
Coppermine 1.6.10
phpmyadmin 4.9.7

Error from coppermine when trying to connect to database on install step 6 
Could not create a MySQLi connection, please check the MySQLi details entered
Database error: No such file or directory

Through CLI DB is confirmed and working. 
Tests on CLI and with port 3306 on localhost and 127.0.0.1 show ok. 

Test also preformed with phpmyadmin which gave similar errors in their setup. 

Issue: failure to connect to DB via mysqli through "localhost" 

Possible solution implemented:

edit the following file:
/usr/local/etc/php/ext-20-mysqli.ini

add the following lines:
pdo_mysql.default_socket="/var/run/mysql/mysql.sock"
mysqli.default_socket="/var/run/mysql/mysql.sock"


This solution may only work for FBSD. It is uncertain if this solution will
work with Linux or Windows or if they are having this issue.

-- 
You are receiving this mail because:
You are the assignee for the bug.