Title: FTP Error when installing
Last modified: April 15, 2022

---

# FTP Error when installing

 *  Resolved [bakenoor1](https://wordpress.org/support/users/bakenoor1/)
 * (@bakenoor1)
 * [4 years ago](https://wordpress.org/support/topic/ftp-error-when-installing/)
 * I am having the following error when installating W3 Total Cache:
 *     ```
       FTP credentials don't allow to write to file /var/www/html/mazavaroo/wp-config.php
   
       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.
       ```
   
 * Below is the commands used for setting permission.
 *     ```
       chown apache:apache  -R wordpress
       cd wordpress
       find . -type d -exec chmod 755 {} \;
       find . -type f -exec chmod 644 {} \;
       ```
   
 * To add, I have even tried to set the entire folder to 777 using `chmod -R 777
   wordpress` but still having the same problem
 * Any hint on how to solve this?

Viewing 1 replies (of 1 total)

 *  Plugin Contributor [Marko Vasiljevic](https://wordpress.org/support/users/vmarko/)
 * (@vmarko)
 * [4 years ago](https://wordpress.org/support/topic/ftp-error-when-installing/#post-15561416)
 * Hello [@bakenoor1](https://wordpress.org/support/users/bakenoor1/)
 * Thank you for the information.
    You should check the wp-config.php file itself
   and see the file permission – it should be set to 644 Alternatively, you can 
   manually add the constant that W3TC adds to the wp-config.php file:
 *     ```
       /** Enable W3 Total Cache */
       define('WP_CACHE', true); // Added by W3 Total Cache
       ```
   
 * just after the opened `<?php` tag
 * Let me know if this helps!
 * Thanks!

Viewing 1 replies (of 1 total)

The topic ‘FTP Error when installing’ is closed to new replies.

 * ![](https://ps.w.org/w3-total-cache/assets/icon-256x256.png?rev=1041806)
 * [W3 Total Cache](https://wordpress.org/plugins/w3-total-cache/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/w3-total-cache/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/w3-total-cache/)
 * [Active Topics](https://wordpress.org/support/plugin/w3-total-cache/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/w3-total-cache/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/w3-total-cache/reviews/)

## Tags

 * [ftp](https://wordpress.org/support/topic-tag/ftp/)
 * [wp-config](https://wordpress.org/support/topic-tag/wp-config/)

 * 1 reply
 * 2 participants
 * Last reply from: [Marko Vasiljevic](https://wordpress.org/support/users/vmarko/)
 * Last activity: [4 years ago](https://wordpress.org/support/topic/ftp-error-when-installing/#post-15561416)
 * Status: resolved