How to config Wordpress super cache on LAMP VPS ?

  • Posted on August 10, 2013
  • nhatkhoaAsked by nhatkhoa

Hi everybody

I’m a newbie so when you suggest how to fix, please write down the code clearly for me to follow. Many thanks

My wordpress blog now works good, seem like all other plugin works well, but not the wordpress super cache.

my site address:

i installed the Wordpress super cache plugin and try to run it but it says something like below:

Warning! Could not update /home/wordpress/public_html/wp-config.php! WPCACHEHOME must be set in config file.

Warning! /home/wordpress/public_html/wp-content/advanced-cache.php does not exist or cannot be updated.

  1. If it already exists please delete the file first.
  2. Make /home/wordpress/public_html/wp-content writable using the chmod command through your ftp or server software. (chmod 777 /home/wordpress/public_html/wp-content) and refresh this page. This is only a temporary measure and you’ll have to make it read only afterwards again. (Change 777 to 755 in the previous command)
  3. Refresh this page to update /home/wordpress/public_html/wp-content/advanced-cache.php If that doesn’t work, make sure the file /home/wordpress/public_html/wp-content/advanced-cache.php doesn’t exist:
  4. Open /home/wordpress/public_html/wp-content/plugins/wp-super-cache/advanced-cache.php$wp_cache_file in a text editor.
  5. Change the text CACHEHOME to /home/wordpress/public_html/wp-content/plugins/wp-super-cache/
  6. Save the file and copy it to /home/wordpress/public_html/wp-content/advanced-cache.php and refresh this page. Cannot continue… fix previous problems and retry.

i really dont know how to fix and can’t find any tutorial for this problem


Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

@sat: Try running <pre>sudo usermod -a -G wordpress www-data <br>sudo chmod g+w /home/wordpress/public_html -R</pre>

I am getting this problem too. I am using One-Click Install WordPress on Ubuntu 12.10. Help me.

I am also having same issue with my preinstallation image of wordpress with ubuntu , apache. Can some here hlep me out to solve this issue.