By ajinkyathete
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!
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>
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.