By shanelharder
I get this Nginx related error when installing W3 Total Cache Plugin:
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
gzip on; gzip_types text/css text/x-component application/x-javascript application/javascript text/javascript text/x-js text/richtext image/svg+xml text/plain text/xsd text/xsl text/xml image/x-icon;
I don’t mind executing the commands manually but the nginx.conf file is not located where W3TC thinks it should be. The file is located at /etc/nginx/nginx.conf. but when I try to copy and paste it in the directory W3TC wants it to be in, I get errors from filezilla saying “open for write: Permission Denied.” so the file refuses to copy to the directory W3 Total Cache wants to make it work.
Any help is very welcome.
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!
How about changing the permissions for the folder just to paste the appropriate file then changing the permissions back to when you are finished? <br>I got Nginx working well with W3TC (also tried with WP Super Cache) and i must say it works wonderfully on a 512MB droplet. <br>I used the ‘easyengine’ script which automated the setup of WP, Nginx and caching methods.
W3TC writes/creates to an nginx file in the website root, not your main nginx server config file. <br> <br>The error is that your website doesn’t have permissions to create this file. <br> <br>If the website folder is owned by the user the site is running as, it would be able to write to it. You can do this by using sockets. <br> <br>( fastcgi_pass unix:/var/run/php5-fpm/DOMAINNAME.socket;)
Thanks guys!! I ended up getting it working by copying the nginx.conf file to the new directory under var/www and then adding the new code it asked for. <br> <br>My problem was that I was logging into filezilla with my user profile instead of with root access. I thought I had given myself root privileges but I guess not. <br> <br>Thanks again!!
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.