AbaddonOrmuz wrote: Wed Jan 08, 2020 12:28 am
So you changed your PHP version though cPanel or Plesk?
I went ahead and removed the cPanel changes (which are added to the .htaccess file). I first set them in cPanel and I then restored the .htaccess file that existed prior to making those changes.
I checked my backups directly before the update and there was no php.ini file present. After interacting with cPanel's PHP Selector, there was a
php.ini
file present in the root of my domain. So I deleted it.
If I understand this correctly, it now is as if these modifications never happened. Unfortunately none of these steps affected the error being generated by my forum.
AbaddonOrmuz wrote: Wed Jan 08, 2020 12:28 am
If so, you need to enable the mysqli extension though the PHP options in cPanel or Plesk.
The only options I see is the ability to
setup custom php.ini. When I click on that I see several options with "mysql" in the title, but none with "mysqli". Nor any that clearly state that it is used to enable or disable an extension. I did look inside the
php.ini
that cPanel had generated, and I found the MySQLI section shown below. If relevant, here is the
entire file.
Code: Select all
[MySQLi]
; Maximum number of persistent links. -1 means no limit.
; http://php.net/mysqli.max-persistent
mysqli.max_persistent = -1
; Allow accessing, from PHP's perspective, local files with LOAD DATA statements
; http://php.net/mysqli.allow_local_infile
;mysqli.allow_local_infile = On
; Allow or prevent persistent links.
; http://php.net/mysqli.allow-persistent
mysqli.allow_persistent = Off
; Maximum number of links. -1 means no limit.
; http://php.net/mysqli.max-links
mysqli.max_links = -1
; If mysqlnd is used: Number of cache slots for the internal result set cache
; http://php.net/mysqli.cache_size
mysqli.cache_size = 2000
; Default port number for mysqli_connect(). If unset, mysqli_connect() will use
; the $MYSQL_TCP_PORT or the mysql-tcp entry in /etc/services or the
; compile-time value defined MYSQL_PORT (in that order). Win32 will only look
; at MYSQL_PORT.
; http://php.net/mysqli.default-port
mysqli.default_port = 3306
; Default socket name for local MySQL connects. If empty, uses the built-in
; MySQL defaults.
; http://php.net/mysqli.default-socket
mysqli.default_socket =
; Default host for mysql_connect() (doesn't apply in safe mode).
; http://php.net/mysqli.default-host
mysqli.default_host =
; Default user for mysql_connect() (doesn't apply in safe mode).
; http://php.net/mysqli.default-user
mysqli.default_user =
; Default password for mysqli_connect() (doesn't apply in safe mode).
; Note that this is generally a *bad* idea to store passwords in this file.
; *Any* user with PHP access can run 'echo get_cfg_var("mysqli.default_pw")
; and reveal this password! And of course, any users with read access to this
; file will be able to reveal the password as well.
; http://php.net/mysqli.default-pw
mysqli.default_pw =
; Allow or prevent reconnect
mysqli.reconnect = Off
AbaddonOrmuz wrote: Wed Jan 08, 2020 12:28 am
Each PHP version has it's own configuration file, so it doesn't matter if it was working with another PHP version, you must update the configuration of the one you're using.
Well that is good to know. I've been using PHP v7.2 with phpBB v3.2.8 for three months, and am still using it now, since that is what I know has worked with mysqli. I've tried using PHP versions v7.1, v7.2, and v7.3 tonight, but the website still responds the same.