$php -v
WARNING: PHP is not recommended
PHP is included in macOS for compatibility with legacy software.
Future versions of macOS will not include PHP.
PHP 7.3.29-to-be-removed-in-future-macOS (cli) (built: Aug 30 2021 10:56:16) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.3.29, Copyright (c) 1998-2018 Zend Technologies`
What exactly does that mean for the future of WordPress running on OS X?
]]>My attempts are two-fold, one is to have a nifty, fast, local, nginx server running on php7 and mysql whatever version and the other is to have a place I can break WordPress to my heart’s content. I wanted something super fast and custom, didn’t want to use VVV, Xamppp, Mamp, Wamp, etc.
I set up php 7.0.8 and nginx 1.10.1 alongside mysql 5.7.13 via homebrew
on my OS X 10.11.5 MacBook Pro. Once I got all that sorted, everything does seem to work, php scripts work, phpmyadmin runs a-ok, but WordPress fails with a 502 Bad Gateway error! The nginx error log file says:
2016/07/01 16:27:38 [error] 37422#0: *206 upstream prematurely closed connection while reading response header from upstream, client: 127.0.0.1, server: localhost, request: "GET /wp-trunk/wp-admin/setup-config.php HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "localhost", referrer: "https://localhost/"
I tried to check to make sure fastcgi is listening on the right port (am I doing this right?) with this:
lsof -Pni4 | grep LISTEN | grep php
And the output looks like this:
php-fpm 37244 designsimply 9u IPv4 0x6d66db27bb08f2f5 0t0 TCP 127.0.0.1:9000 (LISTEN)
php-fpm 37707 designsimply 0u IPv4 0x6d66db27bb08f2f5 0t0 TCP 127.0.0.1:9000 (LISTEN)
php-fpm 37721 designsimply 0u IPv4 0x6d66db27bb08f2f5 0t0 TCP 127.0.0.1:9000 (LISTEN)
php-fpm 39643 designsimply 0u IPv4 0x6d66db27bb08f2f5 0t0 TCP 127.0.0.1:9000 (LISTEN)
My nginx config files are like so:
1. https://github.com/designsimply/bin/blob/master/nginx.conf
2. https://github.com/designsimply/bin/blob/master/nginx-localhost
3. https://github.com/designsimply/bin/blob/master/fastcgi.conf
I’ve tried modifying the nginx.conf and nginx-localhost files in so many ways I can’t remember them all now. I figure I’m doing something wrong with those since phpmyadmin seems to work without any troubles (installed in a folder at localhost root). I also searched the interwebs and there is evidence afoot that I should be able to get WP working with php7 (which I thought might be a problem?).
Can anyone help me figure out what I’m doing wrong with my setup based on the description above?
]]>while visiting the wordpress website on my iMac using the latest Chrome version it automatically shows in mobile view. It is only happening with Chrome – Safari is working correctly. I also tried with a different PC in the house, using Chrome, and it looked fine.
i’m running OS X el capitan 10.11.5
I’ve already tried cleaning browser cache + reset browser settings and nothing worked. Any advice?
]]>https://www.ads-software.com/plugins/sparkpost/
]]>Is anyone else having the same problems with their content appearing on computers running El Capitan as an OS?
my website is https://www.jeremypodgursky.com
]]>On wp-admin configuration i receive Error establishing a database connection.
When I create wp-config manually, in mysql logs I have only Aborted connection 12 to db: 'unconnected' user: 'dimmi' host: 'localhost' (Got an error reading communication packets)
Command line login works perfectly, file permissions are 777.
I have OSX El Captain, mysql installed using homebrew. I ran out of ideas :/
]]>Then you will probably have some problems with your WordPress installation in not being able to update the core files, themes, or plugins. Most notably, these problems are notified with the following message:
WordPress could not establish a secure connection to www.ads-software.com. Please contact your server administrator.
The source of the problem is related to a name conflict with the Apple Bonjour’s Multicast Domain Name Service, as discussed here:
To rectify the situation, just rename your virtual host with anything except something ending with “.local”. Some savvy wizards will probably be able to resolve that problem differently but for someone not too acquainted in DNS or Apache configuration like me, this is a straightforward and easy solution.
Such change is normally done in both of these files:
As soon as my virtual host (was web.local in my case) was renamed otherwise, all these updating problems vanished immediately after a reboot!
]]>I’ve tried disabling different plugins and javascripts and it seems to get better when I disable tc-scripts.js. I could be wrong but it looks like tc-scripts controls a bunch of java functions.
Is anyone else experiencing this issue and can anyone shed light on what tc-scripts actually does.
]]>“Error establishing a database connection”
On my WordPress (v4.4)-installation when trying to access it from my Mac. The wordpress site works fine on my PC which makes me wonder why its not working on my Mac. I’ve setup Xampp with the htdocs-folder in Google Drive so that my site is accessible from any computer (PC). Now I also want to work with it on from an iMac.
This is my wp-config.php:
// ** MySQL settings - You can get this info from your web host ** //
/** The name of the database for WordPress */
define('DB_NAME', 'wordpress');
/** MySQL database username */
define('DB_USER', 'root');
/** MySQL database password */
define('DB_PASSWORD', '');
/** MySQL hostname */
define('DB_HOST', 'localhost');
I’ve tried to change DB_HOST to both ‘Localhost’ (results in Parse error: syntax error, unexpected ”); ‘ (T_CONSTANT_ENCAPSED_STRING) ) and to 127.0.0.1 (results in Error establishing…-message)
I’m able to access my localhost and phpmyadmin from both my PC and Mac, but when entering the wordpress site it all fails on Mac.
]]>