Report this

What is the reason for this report?

W3 total cache error

Posted on April 17, 2014

I have installed wordpress using this guide https://www.digitalocean.com/community/articles/how-to-install-wordpress-with-nginx-on-ubuntu-12-04

Now site working fine but I am facing errors when I try to install W3 total cache.


I get the following error:

FTP credentials don’t allow to write to file /var/www/nginx.conf

W3 Total Cache Error: Files and directories could not be automatically created to complete the installation.

Please execute commands manually

or use FTP form to allow W3 Total Cache make it automatically.


I have installed FTP using this guide

https://www.digitalocean.com/community/articles/how-to-set-up-vsftpd-on-ubuntu-12-04 thanks


Please help.I am confused



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.

uninstall ftp <br>log into your droplet using ssh <br> <br>$ sudo touch /var/www/nginx.conf <br>$ sudo chown www-data /var/www/nginx.conf <br> <br>The second line assumes php-fpm is running as user www-data, which I think it does by default on ubuntu <br> <br>you’ll also need to edit you nginx config and include that file inside your server block

Sorry, these may be stupid questions but I just don’t want to mess things up. <br> <br>What command should I use to uninstall ftp? <br>Which file should I include inside server block? <br>How to edit nginx cofig? <br> <br>Thanks

sudo apt-get remove vsftpd <br> <br>you need to include /var/www/nginx.conf inside your server block in /etc/nginx/sites-enabled/wordpress <br> <br>sudo nano /etc/nginx/sites-available/wordpress <br> <br>after the <br> <br>location ~ .php$ { <br>… <br>} <br> <br>block, add a line <br> <br>include /var/www/nginx.conf ; <br> <br>then there should be your closing server brace already in the file <br> <br>} <br> <br>

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.