Categories
FreeBSD

The Shortlist #10: PHP modules

I really just meant to post a quick note this morning on two gotchas I tripped over when trying to integrate the cell phone and my FreeBSD Jail of WordPress.

Bah. Good luck with that.

Error #1: WordPress detonates when I try to post and becomes unresponsive. /var/log/nginx/error.log shows:

PHP message: PHP Fatal error: Uncaught Error: Call to undefined function ctype_digit()

Bah, why did the WP->Twitter plugin explode on this today? I’m assuming that PHP 7.2 has changed its packaging on FreeBSD so … build and install php72-ctype. Let’s try this again.

Error #2: WordPress detonates when I try to post and becomes unresponsive. /var/log/nginx/error.log shows:

PHP message: PHP Fatal error: Uncaught Error: Call to undefined function filter_var()

Same kind of deal. More explosions in the WP->Twitter plugin. Build and install php72-filter. Excellent. I can now annoy everyone with my ignorance again.

Categories
Uncategorized

The Shortlist #9: Blogging from your cell phone

After years of running my own instance of WordPress, I finally configured my iPhone to upload images and whatnot. Turns out, I needed two things:

  1. You have to know that the cell phone app wants the URL of the PHP xml RPC web address. It doesn’t assume anything when you enter in the address of your personal, self-hosted WordPress instance.
  2. If you’re like me, you also probably need to up the limit on file uploads that is set by default in nginx.
server {
    listen 80;
    server_name blog.ignoranthack.me;
    location / {
            proxy_pass http://10.0.0.2:80;
            proxy_read_timeout 40;
            client_max_body_size 300m;
    }
}