2018-11-22-0230Z


was doing some troubleshooting on a client's website today. I now know more about WordPress than I ever wanted to.

here are a couple of useful tidbits for figuring out what the heck is going on when nothing is working the way it should:

jcomeau@chicago:~$ sudo strace -f $(for pid in $(pidof apache2); do echo -n "-p$pid "; done) -eopen,read,write,lstat

and for running a php file the same way Apache should... note that this doesn't seem to work with REQUEST_URI=/:

SERVER_NAME=chicago.example.com REQUEST_URI=/wanted REQUEST_METHOD=GET strace -eopen,read,write php -c /etc/php5/apache2/ -d display_errors=on -d error_reporting=2039 index.php

Back to blog or home page

last updated 2018-11-21 21:43:23. served from tektonic.jcomeau.com