Title: Perfect but
Last modified: August 30, 2016

---

# Perfect but

 *  [fouad.z](https://wordpress.org/support/users/fouadz/)
 * (@fouadz)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/perfect-but-3/)
 * I m using it in pro version on two website without problems and a perfect result,
   but on one of my customer hosting with use suexec i have some rights problems
   with the error:
 * Error writing files to cache
 * First, on installation, the plugin can not create the cache and the jch-optimize
   directories, i had to create them manually, after this i can access to the configuration
   page, but opn top i have this error of cache writing, so i can not use it.
 * I tried everything i found as specify ftp credential in wp-config.php, i also
   added
 * define( ‘FS_CHMOD_DIR’, ( 0755 & ~ umask() ) );
    define( ‘FS_CHMOD_FILE’, ( 0644&
   ~ umask() ) );
 * i found this info on codex but nothing better always have the problem, i have
   also tried to put all folders on 777 and nothing better, please help
 * [https://wordpress.org/plugins/jch-optimize/](https://wordpress.org/plugins/jch-optimize/)

Viewing 1 replies (of 1 total)

 *  Plugin Author [codealfa](https://wordpress.org/support/users/codealfa/)
 * (@codealfa)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/perfect-but-3/#post-6628768)
 * As you correctly concluded, this is a file permission issue on the server so 
   I would recommend contacting the host. Ask what permissions do you need to set
   for directories so PHP can write to them.
 * On some websites I think you need to write files via FTP but this functionality
   is not in the plugin. I could consider it for future versions if this is the 
   only way it can work for some persons.
 * If you’re still having trouble after speaking with the host I would recommend
   submitting a support ticket on the website so I can look at it more closely for
   you.

Viewing 1 replies (of 1 total)

The topic ‘Perfect but’ is closed to new replies.

 * ![](https://ps.w.org/jch-optimize/assets/icon-128x128.png?rev=1135491)
 * [JCH Optimize](https://wordpress.org/plugins/jch-optimize/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/jch-optimize/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/jch-optimize/)
 * [Active Topics](https://wordpress.org/support/plugin/jch-optimize/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/jch-optimize/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/jch-optimize/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [codealfa](https://wordpress.org/support/users/codealfa/)
 * Last activity: [10 years, 8 months ago](https://wordpress.org/support/topic/perfect-but-3/#post-6628768)
 * Status: not resolved