How might I setup a development server (local) and a test/production server (remote)

It’s quite difficult to keep data from a dev version in sync with data on the production site. But for an initial deployment, you are correct that it requires changes to wp-config.php and the database. Install WordPress on your dev machine, e.g. dev.example.com/blog/ Install WordPress on your production machine, preferably with the same folder structure … Read more

Two identical wp-includes directories on server

This is not an “executable directory”. The x means something different for directories: The execute bit allows the affected user to enter the directory, and access files and directories inside Source Also the * doesn’t mean executable for directories hear as you might think if you’ve read that answer. Instead it is just a directory … Read more

WordPress incorrectly redirects to local IP address?

Change the Site URL in Options Table. UPDATE `wp_options` SET `option_value` = ‘YOUR_SITE_URL’ WHERE `option_name` = ‘siteurl’ OR `option_name` = ‘home’; Also change the static URLs in your post content. UPDATE `wp_posts` SET `post_content` = REPLACE(post_content, ‘192.168.0.18/YOUR_LOCAL_SITE_URL/’, ‘YOUR_SITE_URL/’); Don’t forget to change the table prefix if its not ‘wp_’. Edit : Access PHPMyAdmin of your … Read more

Updating servers at once in web cluster

I don’t think the database schema ever changes so drastically that the versions of wordpress on box 2 + 3 would be prevented from reading from the DB after you’ve updated on box 1, however it depends what version you are upgrading from. Why not set a similar environment locally and test upgrading site 1, … Read more

Force Cron to run only on one server

I would create a constant in the wp_config.php defining which Server you are on. So far so good, not really magic. The tricky part, as you mentioned is to get the cron running for sure, and not aborting if it’s accidentally the wrong server. Try the function like this: function my_cron_callback() { if ( MY_SERVER_SETUP … Read more

WordPress Permalinks on Mac OSX Server 5 (El Capitan)

I’d check a few things Apache2 logs open a terminal Check error logs at tail -f /var/log/apache2/error_log Check access logs at tail -f /var/log/apache2/access_log WordPress Check .htaccess has correct rules for basic setup enable wp debugging to see if you can log further errors when the redirect happens this is how you enable WP logging … Read more