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: [SOLVED] Recommended php version for webtrees 1.7.11+12

Recommended php version for webtrees 1.7.11+12 5 months 3 days ago #1

  • janth
  • janth's Avatar
  • Offline
  • New
  • Posts: 42
I am running webtrees 1.7.11 on a Debian 9 platform with php7.0, apache 2.4.25, and mariadb server 10.1.

In webtrees control panel it is stated that php 7.0 is no longer supported in future versions of webtrees or something like that. But which PHP7.x version should I use. Furthermore sometimes in the past going to a new php version you have to do some php configuration file changes to make things work.

Some guidance would be appreciated.

Jan
The administrator has disabled public write access.

Recommended php version for webtrees 1.7.11+12 5 months 3 days ago #2

  • fisharebest
  • fisharebest's Avatar
  • Offline
  • Administrator
  • Posts: 11034
PHP 7.0 went out of support a few days ago.

See php.net/supported-versions.php

The only versions that get security fixes are 7.1, 7.2 and 7.3

You can continue to use PHP 7.0, but you need to be aware that if any security issues are found, they will not be fixed.

webtrees 1.7.9 was written for PHP 5.3-7.0.
webtrees 1.7.12 contains updates for compatibility with recent versions of PHP. It should run on all versions of PHP from 5.3 to 7.3

> sometimes in the past going to a new php version you have to do some php configuration file changes to make things work.

With PHP, you also need to install various extensions. e.g. php-mbstring, etc.

You need to make sure that you also install the modules for your new version of PHP.

On Ubuntu, the following extensions are not installed by default, and need to be installed yourself: php-curl php-gd php-intl php-mysql php-xml php-zip
Greg Roach - This email address is being protected from spambots. You need JavaScript enabled to view it. - fisharebest.webtrees.net
The administrator has disabled public write access.

Recommended php version for webtrees 1.7.11+12 5 months 3 days ago #3

  • janth
  • janth's Avatar
  • Offline
  • New
  • Posts: 42
Thanks a lot. Just what I needed. I am aware of the apache module issue from prior updates. Based on your recommendations I might as well jump to 7.3 to maximize the time until the support for php expires :-)

Jan
The administrator has disabled public write access.

[SOLVED] Recommended php version for webtrees 1.7.11+12 5 months 3 days ago #4

  • janth
  • janth's Avatar
  • Offline
  • New
  • Posts: 42
Problem solved.
The administrator has disabled public write access.

Recommended php version for webtrees 1.7.11+12 5 months 3 days ago #5

  • janth
  • janth's Avatar
  • Offline
  • New
  • Posts: 42
it turns out that php7.3 does not have all the same packages available as does my php7.0 version. It turns out that package php7.3-mcrypt does not exist. As far as I can google it seems that mcrypt was deprecated in php7.2 already. Could you please elaborate if mcrypt is necessary for webtrees ? or is there another package to replace it? I looks like mcrypt will be replaced by openssl. biut it seems there is no such package available for php7.3.

For now I installed php7.1 which still supports mcrypt and all seems to work on 1.7.11. Have not yet installed 1.7.12.

Jan
The administrator has disabled public write access.

Recommended php version for webtrees 1.7.11+12 5 months 3 days ago #6

  • fisharebest
  • fisharebest's Avatar
  • Offline
  • Administrator
  • Posts: 11034
mcrypt is not needed.

(FYI, I'm using PHP 7.3 on my development machine right now...)
Greg Roach - This email address is being protected from spambots. You need JavaScript enabled to view it. - fisharebest.webtrees.net
The administrator has disabled public write access.

Recommended php version for webtrees 1.7.11+12 5 months 3 days ago #7

  • janth
  • janth's Avatar
  • Offline
  • New
  • Posts: 42
thanks. Ill give it a try.
The administrator has disabled public write access.

Recommended php version for webtrees 1.7.11+12 5 months 3 days ago #8

  • janth
  • janth's Avatar
  • Offline
  • New
  • Posts: 42
and at a quick glance 7.3 works. Unless problems arise I will stick with 7.3. Thanks for your help.
The administrator has disabled public write access.
Do you need a web hosting solution for your webtrees site?
If you prefer a host that specialises in webtrees, the following page lists some suppliers able to provide one for you: 

Recommended php version for webtrees 1.7.11+12 5 months 17 hours ago #9

  • kcshaw
  • kcshaw's Avatar
  • Offline
  • New
  • Posts: 11
Sometimes the "new" versions will break *other* sites requiring php on your server, not always in immediately obvious ways -- just something else to think about.
The administrator has disabled public write access.

Recommended php version for webtrees 1.7.11+12 5 months 17 hours ago #10

  • janth
  • janth's Avatar
  • Offline
  • New
  • Posts: 42
Could you please elaborate a little on the facts in your cryptic message ?

As far as I understand all versions new or old require php on the server, and that do you mean by "other" sites.

I run my own server and is therfore in control of the whole LAMP (Linux, Apache2, MySql, and PHP) stack.

I have not seen any problems yet using webtrees 1.7.12 and PHP7.3.

Jan
The administrator has disabled public write access.

Recommended php version for webtrees 1.7.11+12 5 months 16 hours ago #11

  • kcshaw
  • kcshaw's Avatar
  • Offline
  • New
  • Posts: 11
Sorry, didn't intend to be cryptic, I may not be using the correct technical terminology -- what I mean is if you run different website software off of the same server. For example, I have a server running a photo "site" (www.example.com/photos), a webtrees site (www.example.com/webtrees), a freelance invoicing site (www.example.com/invoicing), etc. Each of those sites uses different software, but the server only runs one php version. There have been occasions when I upgraded/changed a php version and one of those "sites" stopped working properly because they weren't compatible with php7+, or 7.3, or I tried to fall back but one had stopped supporting 5, or whatever. The developers of each are just on different development timelines and may be supporting different versions of php at that particular point in time. So, if I'm messing around with php versions trying to get the most out of, say, webtrees, I have to remember to go check the other sites on the same server too, unless I want to mess around with trying to use multiple versions of php at the same time -- I think that's possible(?) but isn't a rabbit hole I want to go down without having to, because it's likely I would eventually forget to upgrade one for an obscene amount of time.

webtrees has been excellent from the point of view of either being well updated insofar as working with the latest php versions, or at least very responsive and clear regarding what is currently supported. Few developers are as awesome, helpful, and communicative, IMO.
Last Edit: 5 months 16 hours ago by kcshaw.
The administrator has disabled public write access.

Recommended php version for webtrees 1.7.11+12 5 months 16 hours ago #12

  • janth
  • janth's Avatar
  • Offline
  • New
  • Posts: 42
Ok I get it now.

For your information it seems to be possible to run multiple php versions on one apache server. You should be able to easily google that if it is of interest.

I am not affected by this problem since I have a small dedicated web server for webtrees and do not have any other applications that require a different version of PHP.

Jan
The administrator has disabled public write access.

Recommended php version for webtrees 1.7.11+12 5 months 16 hours ago #13

  • kcshaw
  • kcshaw's Avatar
  • Offline
  • New
  • Posts: 11
Cool. Yeah, I thought I had come across it at one point, but ended up finding a single php version that worked for each site/app, once each site's software was also upgraded. I may revisit that if I run into problems again.
The administrator has disabled public write access.

Recommended php version for webtrees 1.7.11+12 4 months 3 weeks ago #14

  • honken
  • honken's Avatar
  • Offline
  • New
  • Posts: 3
Since this was specifically related to Debian; as long as you are running on a Debian version still supported by the Security team (which Debian 9 as the current release is) security fixes are usually backported, rather than bumping up the version which can break things. See this link for more information, specifically this part is probably relevant:
Q: The version number for a package indicates that I am still running a vulnerable version!

A: Instead of upgrading to a new release we backport security fixes to the version that was shipped in the stable release. The reason we do this is to make sure that a release changes as little as possible so things will not change or break unexpectedly as a result of a security fix. You can check if you are running a secure version of a package by looking at the package changelog, or comparing its exact version number with the version indicated in the Debian Security Advisory.

So, running PHP7.0 as long as you make sure to apply security patches should be quite safe.
The administrator has disabled public write access.

Recommended php version for webtrees 1.7.11+12 4 months 3 weeks ago #15

  • bertkoor
  • bertkoor's Avatar
  • Offline
  • Gold
  • Greetings from Utrecht, Holland
  • Posts: 1545
Sorry to rain on your parade, but as of this month there won't be no more security issues patched in PHP 7.0
End of lifecycle has been reached. This time next year the same will be true for PHP7.1
php.net/supported-versions.php
stamboom.BertKoor.nl runs on webtrees v1.7.9
The administrator has disabled public write access.

Recommended php version for webtrees 1.7.11+12 4 months 3 weeks ago #16

  • janth
  • janth's Avatar
  • Offline
  • New
  • Posts: 42
Thanks for the tip. However, the rationale for moving to a newer major release of php beyond 7.0 was becuase webtreees 1.7.12 and newer versions would no longer support PHP 7.0.
So I chose to install php 7.3 from the debian package maintainers apt source. And it seems to work fine.
The administrator has disabled public write access.

Recommended php version for webtrees 1.7.11+12 4 months 3 weeks ago #17

  • fisharebest
  • fisharebest's Avatar
  • Offline
  • Administrator
  • Posts: 11034
> becuase webtreees 1.7.12 and newer versions would no longer support PHP 7.0.

webtrees 1.7 will run on all versions of PHP from 5.3 to 7.3.
It will continue to receive updates for security issues and major bugs for as long as it has a significant number of users.

webtrees 2.0 will require PHP 7.1.
Greg Roach - This email address is being protected from spambots. You need JavaScript enabled to view it. - fisharebest.webtrees.net
The administrator has disabled public write access.

Recommended php version for webtrees 1.7.11+12 4 months 1 week ago #18

  • djaydjay
  • djaydjay's Avatar
  • Offline
  • New
  • Posts: 6
Bonjour
Depuis quelques jours, s'affiche sur le tableau de bord un message (voir fichier joint).
Comment mettre à jour la version correcte de "PHP" ? dans quel fichier ? Quelle ligne ?

Remerciements

Salutation

Hello
In recent days, a message appears on the dashboard (see attached file).
How to update the correct version of "PHP"? in which file? Which line ?

Thanks

Greetings
Attachments:
The administrator has disabled public write access.

Recommended php version for webtrees 1.7.11+12 4 months 1 week ago #19

  • fisharebest
  • fisharebest's Avatar
  • Offline
  • Administrator
  • Posts: 11034
> How to update the correct version of "PHP"? in which file? Which line ?

You need to upgrade the software on your webserver.

1) Sometimes, you need to ask your webhost to do this.

2) Sometimes, your webhost will give you a "control panel", which will let you select a different version of PHP.


PHP 7.1 and later is recommended. See php.net/supported-versions.php
Greg Roach - This email address is being protected from spambots. You need JavaScript enabled to view it. - fisharebest.webtrees.net
The administrator has disabled public write access.
Powered by Kunena Forum