This Help forum is for issues relates to the latest release (1.7.10/11/12). For issues related to development versions please use their own Help forum.
Before asking for help please read "How to request help" by clicking on that tab above here."

TOPIC: PHP version Upgrade

PHP version Upgrade 3 months 1 week ago #1

  • potain
  • potain's Avatar
  • Offline
  • New
  • Posts: 85
Hi,

I've veen on PHP version 5.6.40 on the server since first starting with webtrees so I decided to upgrade PHP (which I just found out I can do myself through cpanel) and did so to 7.3.

Have now changed it 7.0.32 (see below) but there is still a message under Server information :
Your web server is using PHP version 7.0.33, which is no longer receiving security updates. You should upgrade to a later version as soon as possible.

Problem is when I changed it to 7.3 the website became unavailabe with this notice:

This website is temporarily unavailable

Oops! The webserver is unable to connect to the database server. It could be busy, undergoing maintenance or simply broken. You should try again in a few minutes or contact the website administrator.

could not find driver

The database reported the following error message:

could not find driver

If you are the website administrator, you should check that:

the database connection settings in the file ‘/data/config.ini.php’ are still correct
the folder ‘/data’ and the file ‘/data/config.ini.php’ have access permissions that allow the webserver to read them
you can connect to the database using other applications, such as phpmyadmin

If you cannot resolve the problem yourself, you can ask for help on the forums at webtrees.net.

Please let me know if I should stay on 7.0.32 and ignore the update notice.

Thank you.
Novice in all webtrees matters and in every respect
The administrator has disabled public write access.

PHP version Upgrade 3 months 1 week ago #2

  • ungeahnt
  • ungeahnt's Avatar
  • Offline
  • New
  • Posts: 54
Hi,

which Version of webtrees and server configuration do you use?
Self-hosted?
Beside PHP, do you also updated webtrees (old/new version)?
Your web server is using PHP version 7.0.33, which is no longer receiving security updates. You should upgrade to a later version as soon as possible.
-> see Post #2

could not find driver
Looks like that a php modul is missing in the php 7.3 configuration (e.g. pdo, mysql). -> check the php server configuration

Greetings
Dieter
Schmidt ⚭ Schwab (Sudetenland) | Hauer ⚭ Bühler (Bayern / BW) | Маринов ⚭ Шаламанова (BG)
webtrees 1.7.14 | PHP 7.3.0 | MySQL 5.6.42 | Apache 2.4.37 | SunOS 5.10
The administrator has disabled public write access.

PHP version Upgrade 3 months 1 week ago #3

  • bertkoor
  • bertkoor's Avatar
  • Offline
  • Gold
  • Greetings from Utrecht, Holland
  • Posts: 1656
php 7.0 received the last security patch last January (in theory) and is already a giant step forward compared to php 5.x you had. That had the last patch around the same time.
See www.php.net/supported-versions.php
So for the time being me thinks you can ignore this warning.

Meanwhile you should contact your hosting provider regarding the error "could not find driver" you get with php 7.3
It means the PHP installation they have done is not complete.

You could create a file called phpinfo_pdo.php on your server with this content:
<?php 
      echo "<h2>Loaded PDO extensions:</h2><pre>";
      foreach (get_loaded_extensions() as $ext) {
      	if (stripos($ext, 'pdo') !== false) {
      		echo $ext . "<br/>";
      	}
      }
      echo "<pre/>";
 ?>

Then request that page [yourserver.com]/phpinfo_pdo.php with your browser. It should show something like:
Loaded PDO extensions:
PDO
pdo_mysql
pdo_sqlite

The extensions pdo and pdo_mysql are mandatory for webtrees to be able to run.
You could run the same script with php 7.0 and compare with results in php 7.3.
Tell your hosting provider which extension is missing.
stamboom.BertKoor.nl runs on webtrees v1.7.13
Last Edit: 3 months 1 week ago by bertkoor.
The administrator has disabled public write access.

PHP version Upgrade 3 months 1 week ago #4

  • ungeahnt
  • ungeahnt's Avatar
  • Offline
  • New
  • Posts: 54
btw: the required php packages for each webtrees version you can check with webtrees - packagist
(select the desired version on the right sidebar)
Dieter
Schmidt ⚭ Schwab (Sudetenland) | Hauer ⚭ Bühler (Bayern / BW) | Маринов ⚭ Шаламанова (BG)
webtrees 1.7.14 | PHP 7.3.0 | MySQL 5.6.42 | Apache 2.4.37 | SunOS 5.10
The administrator has disabled public write access.

PHP version Upgrade 3 months 1 week ago #5

  • potain
  • potain's Avatar
  • Offline
  • New
  • Posts: 85
Hellol,

Thank you very much for your replies, I am on webtrees 1.7.14 which gets updates automatically.

I have asked my provider to investigate the driver problem with PHP 7.3 and hopefully with your inputs (ta bertkoor) they will sort it out.

Cheers to you all.
Novice in all webtrees matters and in every respect
The administrator has disabled public write access.
Powered by Kunena Forum