Monday, October 30, 2006
I recently migrated this site from Dreamhost over to MediaTemple, which was one of the simplest migrations I’ve done… upload the database file, copy over the contents of my web directory, update wp-config.php… and everything works!
Well, nearly. I still had this error message when I browsed to my site:
Warning: main(/johnnysthoughts.com/wp-content/advanced-cache.php) [function.main]: failed to open stream: No such file or directory in /johnnysthoughts.com/wp-settings.php on line 69
I’m using the WP-Cache module to make sure that the site runs as fast as possible. Because of the way the module works, you can’t just copy the site over. The problem lies in the symbolic link from SITE_ROOT/wp-content/advanced-cache.php to the actual plugin file in the plugins directory.
So, open up your SSH connection and navigate to your site root, and run these commands.
chmod 775 cache
ln -s plugins/wp-cache/wp-cache-phase1.php advanced-cache.php
This will delete the bad symlink file, clear the cache, set the permissions on the folder and then create a new symlink to the wp-cache-phase1.php file.