php71 to mariadb 5.5.56

Latest response

I have php71 install on rel 7.4 with 5.5.56-MariaDB MariaDB Server
I am trying to configure php71 to connet to Mariadb.

mysql_select_db($dbname, $connection);
does not work

Here is out php info:
http://tritechsc.ksd.org/test.php

additionally
phpMyAdmin - Error

The mbstring extension is missing. Please check your PHP configuration.

Responses

Craig,

What error are you getting in your logs when you say "does not work"?

Have you confirmed mariadb is up and running? Have you confirmed that you can connect to maraidb without using PHP (from the shell) first?

-edit-

To fix your mbstring issue, install the following package:

rh-php71-php-mbstring

Thanks for the response. What repos is this in ? I am having trouble with updating behind our firewall right now :(

#  yum repolist
Loaded plugins: product-id, search-disabled-repos, subscription-manager
repo id                                                        repo name                                                                                               status
rhel-7-server-extras-rpms/x86_64     Red Hat Enterprise Linux 7 Server - Extras (RPMs)          712
rhel-7-server-rpms/7Server/x86_64   Red Hat Enterprise Linux 7 Server (RPMs)          17,875
rhel-server-rhscl-7-beta-rpms/x86_64     Red Hat Software Collections Beta RPMs for Red Hat Enterprise Linux 7 Server                                 0
repolist: 18,587
[root@tritechsc httpd24]# 
yum install rh-php71-php-mbstring

Loaded plugins: product-id, search-disabled-repos, subscription-manager No package rh-php71-php-mbstring available. Error: Nothing to do [root@tritechsc httpd24]#

I've got this problem right now: https://access.redhat.com/solutions/69319

Why are you using a Beta channel for rhscl?

The package is in rhscl (Red Hat Software Collections), link to package information here.
https://access.redhat.com/downloads/content/rhel---7.4/x86_64/4061/rh-php71-php-mbstring/7.1.8-1.el7/x86_64/fd431d51/package

I got the problem solved. Add the repos and installed what I needed. I'll post the results tomorrow. Have to run!

Thank You!

Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.