Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
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.
Offline
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.)
Offline
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.
Anyway, all beyond scope of plugin here, so ignore me.
Last edited by Destry (2018-10-04 08:00:32)
Offline
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?
Offline
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
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.
Offline
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
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
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. ;)
Offline
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
Re: smd_article_stats: Article stats to count words 'n stuff
gaekwad wrote #314395:
I will gladly do a video walkthrough if you want to know how this is done, no worries.
A nice little step-by-step text would be nice :-) Just an ordered list ol
: do a then do b, then click on xx to do c… TY.
(my attention span for that sort of videos is about 0.33 seconds)
Where is that emoji for a solar powered submarine when you need it ?
Sand space – admin theme for Textpattern
Offline
Re: smd_article_stats: Article stats to count words 'n stuff
phiw13 wrote #314396:
A nice little step-by-step text would be nice :-) Just an ordered list
ol
: do a then do b, then click on xx to do c… TY.
Leave that with me, I’ll see what I can do (in another thread).
Offline