Report this

What is the reason for this report?

How to config Wordpress super cache on LAMP VPS ?

Posted on August 10, 2013

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: http://192.241.180.142/

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

Thanks



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!

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.

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

<b>“Warning! Could not update /home/wordpress/public_html/wp-config.php!”</b> sounds like a permissions problem. <br> <br>Please navigate to <b>/home/wordpress/public_html/</b> and execute <code>ls -l</code>; and let us know who’s listed as the owner of the various files and in what group they’re in, e.g. <code>www-data:www-data</code> or possibly <code>root:root</code> or something else?

it show : wordpress:wordpress as the user/group <br> <br>however, i managed to fix it by my stupid way :) dont know if it sercurity or not so i can’t show here . <br> <br>I’ll talk to one Cute Staff support before put that method here for someone later needed

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.