Getting WordPress to work inside a rails 3 application

I had a similar problem, but handled the VirtualHost configuration in a different way: Used an Apache mod_alias to redirect what for you is /home/blog/ to a path outside of /var/www/railsapp/public/ (e.g., /var/www/wordpress) Then, for that new hosted directory I had to declare PassengerEnabled off to avoid getting the standard rails error message. I’ve wrote … Read more

Secret keys in SCM

Your config file shouldn’t be public at all. It includes your database credentials in addition to the 8 SALTs WordPress. (The secret keys alone make it possible to brute force your log-in in a bout a week: http://codeseekah.com/2012/04/09/why-wordpress-authentication-unique-keys-and-salts-are-important/)

Changing from localhost:8888 to localhost

You need to treat this just like you would when changing domains. The short version is: You need to change the WordPress Address and Site Address in Settings->General. You have to change both Or edit wp-config.php to alter the same values as in step #1. This one is easiest if you’ve already lost part of … Read more

Conditional config WP_HOME/WP_SITEURL does not update bloginfo(‘template_url’)?

Found the solution… the problem was due to placement of the conditional statement in the wp-config.php file. It needed to be inserted before the require_once(ABSPATH . ‘wp-settings.php’); line near the bottom of the default config file, otherwise the constants are already defined and cannot be redefined. So final section of the wp-config.php file now looks … Read more

Remove hacked code – out of ideas! [closed]

You can move the wp-config file one level up. You can also create a .htaccess file and upload it to your uploads folder with this code: <Files ~ “.*..*”> Order Allow,Deny Deny from all </Files> <FilesMatch “.(jpg|jpeg|jpe|gif|png)$”> Order Deny,Allow Allow from all </FilesMatch> Or install a plugin for security which also scans your installation so … Read more