Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#41 2017-12-30 09:32:37

philwareham
Core designer
From: Haslemere, Surrey, UK
Registered: 2009-06-11
Posts: 3,396
Website

Re: Hello Themes!

Has anyone verified Textpattern on php 7.2 yet? Can we confirm it’s working as expected (I don’t have 7.2 on my local testing machine at the moment).

Offline

#42 2017-12-30 12:23:26

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 9,792
Website

Re: Hello Themes!

Can’t see any reason why it wouldn’t work on 7.2 as there doesn’t appear to be much that’s changed that would affect us. But if someone can or has checked it and can report on the success or otherwise, it would be really useful info, thanks.


The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.

Txp Builders – finely-crafted code, design and Txp

Offline

#43 2017-12-30 13:31:02

gaekwad
Admin
From: People's Republic of Cornwall
Registered: 2005-11-19
Posts: 3,176

Re: Hello Themes!

colak wrote #308482:

PHP 7.2.x is a newer version than mine.

What about PHP 7+?

It’s newer than mine (7.0), too…and support for it was dropped earlier this month, according to this it’s security fixes only until the end of the year.

Since I’ve derailed the thread already (should we split this off?), my proposal/idea for looking at the current mainline versions is that, whether we like or not, PHP have their support terms…in real terms this doesn’t mean that Textpattern forum folks will stop answering questions about older PHP versions, but the state of PHP will progress at its own rate.

It’s a subtle branding change. There are no doubt valid reasons for the changes made in 7.0, 7.1, and 7.2. Web hosts will always toe the line with stability and performance, and if Textpattern is seen as being ‘PHP7-friendly’, then it’s one less thing on the obscure LAMP app list that I know some hosting companies maintain internally.

Why do hosting companies offer unsupported PHP versions on their servers? Because clients need/request them. Why do they request them? Because they see the System Requirements and know that their beloved LAMP app needs version so-and-so of M(ySQL) and such-and-such P(HP). A(pache) is usually less important (they have a much longer support period).

…which makes me wonder if overlaying the respective library support terms on a single chart would be interesting.

Offline

#44 2017-12-30 13:31:52

gaekwad
Admin
From: People's Republic of Cornwall
Registered: 2005-11-19
Posts: 3,176

Re: Hello Themes!

philwareham wrote #308485:

Has anyone verified Textpattern on php 7.2 yet? Can we confirm it’s working as expected (I don’t have 7.2 on my local testing machine at the moment).

If I have time later today (likely) I’ll spin up a test server and test latest-and-greatest of each.

Offline

#45 2017-12-30 13:50:38

gaekwad
Admin
From: People's Republic of Cornwall
Registered: 2005-11-19
Posts: 3,176

Re: Hello Themes!

phiw13 wrote #308483:

Depends on how you word it, but I would loosen your suggestions a little bit (PHP 7.0+ and MySql 5.6.x+). That is the standard (default) for 3 different hosting companies I deal with; only one of them offers PHP 7.1.x as an option.

I totally agree it’s a wording issue. Briefly, here’s what I envisage, a two or three part system requirements:

  • Textpattern runs best (fastest, most responsive, most features, etc – weasel word, perhaps) and recommended to run on the current mainline supported versions of Apache, NGINX, MySQL and PHP.
  • Textpattern also runs on the versions of Apache, NGINX, MySQL and PHP released before that, as long as they newer than…
  • …the minimum, base level requirements where Textpattern will run, but you’re leaving yourself open to known security issues with those packages.

It seems somewhat counter-intuitive to me to see Phil update various build tools and libraries in GitHub commits, keeping things fresh and up-to-date, and then having to factor in whether stuff works with versions of PHP that are old and known to have vulnerabilities.

I’m absolutely not suggesting we need to only run on the latest and greatest, that’s not remotely viable, but a subtle change to the wording and messaging will show that Textpattern is capable, and up-to-date, and evolving, and active, and so forth.

Offline

#46 2017-12-30 15:19:36

gaekwad
Admin
From: People's Republic of Cornwall
Registered: 2005-11-19
Posts: 3,176

Re: Hello Themes!

philwareham wrote #308485:

Has anyone verified Textpattern on php 7.2 yet? Can we confirm it’s working as expected (I don’t have 7.2 on my local testing machine at the moment).

After a cursory check on a freshly-built Ubuntu 16.04.3 virtual machine, the current Textpattern 4.7.0-dev seems to work A-OK with Apache 2.4, MySQL 5.7 and — crucially — PHP 7.2 (emphasis mine):

Textpattern version: 4.7.0-dev (1103a204bc8d93fe3a10187de73d2486)
Last update: 2017-12-30 17:13:00/2017-12-29 19:03:24
Site URL: 10.1.1.18/textpattern-dev
Document root: /var/www/html
$path_to_site: /var/www/html/textpattern-dev
Textpattern path: /var/www/html/textpattern-dev/textpattern
Article URL pattern: messy
Temporary directory path: /tmp
PHP version: 7.2.0-2+ubuntu16.04.1+deb.sury.org+2
GD Graphics Library: unavailable
Server TZ: UTC
Server local time: 2017-12-30 17:13:04
Daylight Saving Time enabled?: 0
Automatically adjust Daylight Saving Time setting?: 0
Time zone (GMT offset in seconds):  (+0)
MySQL: 5.7.20-0ubuntu0.16.04.1 ((Ubuntu))
Database server time: 2017-12-30 17:13:04
Database server time offset: 0 s
Database server timezone: SYSTEM
Database session timezone: SYSTEM
Locale: C
Server: Apache/2.4.18 (Ubuntu)
Apache version: Apache/2.4.18 (Ubuntu)
PHP server API: apache2handler
RFC 2616 headers:
Server OS: Linux 4.4.0-104-generic
Admin-side theme: hive 4.7.0-dev

Last edited by gaekwad (2017-12-30 21:07:31)

Offline

#47 2017-12-30 17:52:58

Pat64
Plugin Author
From: France
Registered: 2005-12-12
Posts: 1,428
Website

Re: Hello Themes!

@Phil:

Currently, I’m working on a live website with TXP 4.7 (for my “FOTO” theme) on my server animated with PHP 7.2.0 without any problems ;)


Patrick.

Github | CodePen | Codier | Simplr theme | Wait Me: a maintenance theme | [\a mi.ni.ma]: a “Low Tech” simple Blog theme.

Offline

#48 2017-12-30 18:42:13

bici
Member
From: vancouver
Registered: 2004-02-24
Posts: 1,717
Website

Re: Hello Themes!

Vienuolis wrote #308484:

Hiawatha is made by PHP, and works fine with MySQL and Textpattern —
nothing needs to be improved.

curious. do you know which hosting provider has Hiawatha?


…. texted postive

Offline

#49 2017-12-30 19:21:12

michaelkpate
Moderator
From: Avon Park, FL
Registered: 2004-02-24
Posts: 1,330
Website

Re: Hello Themes!

I installed the latest version of XAMPP and then the latest dev.

Textpattern version: 4.7.0-dev (1103a204bc8d93fe3a10187de73d2486)
Last update: 2017-12-30 19:13:21/2017-12-29 19:03:24
PHP version: 7.2.0
GD Graphics Library: bundled (2.1.0 compatible); supported formats: GIF, JPG, PNG.
MySQL: 5.5.5-10.1.29-MariaDB (mariadb.org binary distribution) 
Server: Apache/2.4.29 (Win32) OpenSSL/1.1.0g PHP/7.2.0
Apache version: Apache/2.4.29 (Win32) OpenSSL/1.1.0g PHP/7.2.0
PHP server API: apache2handler 
Server OS: Windows NT 10.0
Admin-side theme: hive 4.7.0-dev

Offline

#50 2017-12-30 19:56:08

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 9,792
Website

Re: Hello Themes!

Looking good for PHP 7.2 then, thanks everyone.

I like Pete’s take on the requirements. Here’s my first stab at a rewrite. Comments / improvements welcome.

Note this is for Textpattern 4.6.2 as it’s our current stable release, and I think it’s correct. If anyone knows otherwise (e.g. it won’t run on PHP 7.2 because we’ve fixed something in 4.7.0) then let me know. We’ll revisit it and add NGINX and other MySQL vendors when 4.7.0 is released.


The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.

Txp Builders – finely-crafted code, design and Txp

Offline

Board footer

Powered by FluxBB