Textpattern CMS support forum

You are not logged in. Register | Login | Help

#61 2018-10-04 06:35:51

Destry
Moderator
From: Haut-Rhin
Registered: 2004-08-04
Posts: 4,248
Website

Re: smd_article_stats: Article stats to count words 'n stuff

Bloke wrote #314367:

you can fairly easily find all manner of stuff about your server by doing this

That’s a nice approach, thanks.


The text persuades, the *notes prove。

Offline

#62 2018-10-04 07:22:39

Destry
Moderator
From: Haut-Rhin
Registered: 2004-08-04
Posts: 4,248
Website

Re: smd_article_stats: Article stats to count words 'n stuff

Following that slick method, I’m told the .ini file is in /etc (my machine, not our friendly dev), so I tool into it…

cd /etc

And these are the only files with ‘php’ in the mix, which looks kind of stupid, but:

php-fpm.conf.default
php-fpm.d
php.ini-5.2-previous
php.ini-5.2-previous~orig
php.ini-previous
php.ini.default
php.ini.default-5.2-previous
php.ini.default-5.2-previous~orig
php.ini.default-previous
php.ini.default-previous~orig

There must be a symlink something happenin’ somewhere somehow?

Maybe I’ll just check with the web host. If they have the intl module active, I won’t worry about it locally. It will just work when migrated to production. (Yeah, right… ‘It’ll just work’, he says.)


The text persuades, the *notes prove。

Offline

#63 2018-10-04 07:54:43

Destry
Moderator
From: Haut-Rhin
Registered: 2004-08-04
Posts: 4,248
Website

Re: smd_article_stats: Article stats to count words 'n stuff

Hmm. I suspect part of the problem is my setup is reading a brew version of php. And I just discovered there have been changes since April with how brew updates php extensions. And people are recommending all around to clean out the old installs and re-install with the new configurations, and even just going with the brew Apache too. /* sigh */

Frankly, I think I’d rather just update the macOS version of php, since everything else is okay.

Oh, this might be useful too.

Anyway, all beyond scope of plugin here, so ignore me.

Last edited by Destry (2018-10-04 08:00:32)


The text persuades, the *notes prove。

Offline

#64 2018-10-04 09:56:07

Destry
Moderator
From: Haut-Rhin
Registered: 2004-08-04
Posts: 4,248
Website

Re: smd_article_stats: Article stats to count words 'n stuff

I found my docs and remembered I was using this liip package for Mac, not brew’s version. And when you trace it all down through a folder called ‘php.d’, the new .ini file is called 99-liip-developer.ini. There I found:

; intl

and un-commented it.

But so far that’s not grabbing either. Do I need to do some kind of refresh on the command-line first?


The text persuades, the *notes prove。

Offline

#65 2018-10-04 10:23:02

etc
Developer
Registered: 2010-11-11
Posts: 3,368
Website

Re: smd_article_stats: Article stats to count words 'n stuff

Destry, you’d need to restart the server, I think. No idea how it works on Mac, though.

Offline

#66 2018-10-04 10:30:12

Destry
Moderator
From: Haut-Rhin
Registered: 2004-08-04
Posts: 4,248
Website

Re: smd_article_stats: Article stats to count words 'n stuff

Server restart:

sudo apachectl restart

But still nothing.

Don’t worry about it for now. I’m going to walk through updating PHP to their 7.2 package anyway. We’ll see what happens at that point.


The text persuades, the *notes prove。

Offline

#67 2018-10-04 10:53:25

etc
Developer
Registered: 2010-11-11
Posts: 3,368
Website

Re: smd_article_stats: Article stats to count words 'n stuff

This will list all enabled extensions, just in case:

<txp:php>dmp(get_loaded_extensions());</txp:php>

Offline

#68 2018-10-04 13:34:56

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

Re: smd_article_stats: Article stats to count words 'n stuff

Destry wrote #314373:

Frankly, I think I’d rather just update the macOS version of php, since everything else is okay.

I know it’s convenient for localised development using things like MAMP, Homebrew etc, but there’s a lot of value in spinning up your own server in VirtualBox or similar instead.

Commercial web hosts don’t host with MAMP or Homebrew, they have their own server builds and in my experience you’re much less likely to encounter snags if you develop in an environment that’s close to your web host – be it Linux, UNIX, Windows or whatever. I say this as a macOS user of 15 years, having watched the Apache + PHP stuff get more and more hidden over the years. It takes less than an hour to spin up a Debian or Ubuntu LAMP (or LEMP) server in VirtualBox, and then you can do pretty much anything you like with it using an SFTP client and SSH, which is how you’d typically access your web hosting stuff anyway in the long run.

Plus you have a layer of separation between the work you’re doing on the host, so if it all goes wrong you can just start the VirtualBox server again instead of unpicking all the files that get written to your host computer.

Offline

#69 2018-10-04 13:59:08

Destry
Moderator
From: Haut-Rhin
Registered: 2004-08-04
Posts: 4,248
Website

Re: smd_article_stats: Article stats to count words 'n stuff

gaekwad wrote #314393:

web hosts . . . have their own server builds and in my experience you’re much less likely to encounter snags if you develop in an environment that’s close to [theirs]

I hear you. The one thing I like about local, though, is I can work on my sites even when offline, which is a lot in France. Maybe it’s just our ISP. ;)


The text persuades, the *notes prove。

Offline

#70 2018-10-04 14:10:27

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

Re: smd_article_stats: Article stats to count words 'n stuff

Destry wrote #314394:

I can work on my sites even when offline

You can with VirtualBox. Everything is local, no internet connection required beyond the initial setup, and you can even avoid that if you use an offline ISO installer:

  • install VirtualBox
  • configure new VM for your new server
  • attach ISO
  • install server
  • detach ISO

Beyond keeping it updated, that’s about it. I will gladly do a video walkthrough if you want to know how this is done, no worries.

Offline

Board footer

Powered by FluxBB