Nvm figured it out.
WP_DEBUG doesnt seem to print if Code: define('WP_HOME','http://example.com'); define('WP_SITEURL','http://example.com'); is used. It was a lazy way for me to move sites before. Anyone can confirm?
never noticed myself you can use wp-cli tool to change domains easily @hitman just did it at Wordpress - change domain for Option 22 installation | Centmin Mod Community and mentioned at Wordpress - centmin.sh menu option 22 - How to switch Wordpress to subdirectory | Centmin Mod Community Code (Text): wp option update home 'http://newdomain.com' wp option update siteurl 'http://newdomain.com'
This probably does the same as changing it at Settings -> General in wp-admin? Sometimes still need to replace all urls in database though..
Yes same as wp-admin update to replace all instances in database again from linked above how to, use wp-cli Code (Text): wp search-replace 'http://olddomain.com' 'http://newdomain.com' --skip-columns=guid
Managed to get WP_Debug to work, but php errors seem to not show in /wp-content/debug.log Anyone managed to get it to show? Right now have to look only at /var/log/php-fpm/www-php.error.log This log is across all sites and gets super huge. I think having wordpress installs individually display php errors would be good; easier for debugging and for reporting bugs to plugin developers. I did it by adding Code: fastcgi_param PHP_VALUE "error_log=/home/nginx/domains/staging.mysite.com/public/wp-content/debug.log"; to /usr/local/nginx/conf/php-wpsc.conf and appending -sitename as suffix (php-wpsc-mysite.com.conf). Then replace all php-wpsc.conf to php-wpsc-mysite.conf in all virtual conf of sites in /usr/local/nginx/conf/conf.d Not sure if this is the best way to do it though - seems more like a hack. Any advice?
yes that's the way to do it for per vhost php error log, need to create a copy of php.conf include or php-wpsc.conf and use that your nginx vhost and append fastcgi_param PHP_VALUE or use the php-fpm pool method and separate php-fpm pool config with Code (Text): php_admin_value[error_log] = /path/to/error/log there's already a set of pre-made additional php-fpm pools in Centmin Mod Beta Branch - Centmin Mod .08 beta03+ Multiple PHP-FPM pools support added | Centmin Mod Community
Yea - Got php error log per vhost that way - but still wp_debug does not want to log to a file despite setting in wp-config.php Code: define( 'WP_DEBUG', true ); ini_set( 'display_errors', 1 ); ini_set( 'log_errors', 1 ); ini_set( 'error_log', dirname(__FILE__) . '/wp-content/wp-debug.log' );
Ever managed to make it work? My wp-content/debug.log stays empty, no matter how many errors WP_Debug would display.