Title: Fix document root path
Last modified: March 31, 2025

---

# Fix document root path

 *  Resolved [Saket Jajodia](https://wordpress.org/support/users/dzire2dzine/)
 * (@dzire2dzine)
 * [1 year, 2 months ago](https://wordpress.org/support/topic/fix-document-root-path/)
 * Mutisite WooCom setup.. With file structure like:
   /public_html/index.php/public_html/.
   htaccess (wp genrated)/public_html/robots.txt/public_html/favicon.ico/public_html/
   wp/wp-admin/public_html/wp/wp-content/public_html/wp/wp-includes/public_html/
   wp/index.php/public_html/wp/[ALL WP FILES]
 * I am confused if I should enable this option or not?
 *     ```wp-block-code
       [ ] Fix document root pathFix incorrect server document root path. Uses the WordPress ABSPATH ("/home/**/public_html/wp") in place of the current server document root ("/home/**/public_html").
       ```
   
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Ffix-document-root-path%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 5 replies - 1 through 5 (of 5 total)

 *  Plugin Contributor [Marko Vasiljevic](https://wordpress.org/support/users/vmarko/)
 * (@vmarko)
 * [1 year, 2 months ago](https://wordpress.org/support/topic/fix-document-root-path/#post-18391833)
 * Hello [@dzire2dzine](https://wordpress.org/support/users/dzire2dzine/)
 * Thank you for reaching out and Ia m happy to help!
   Please check more about this
   option in the link below:[https://www.boldgrid.com/support/w3-total-cache/general-settings-miscellaneous/](https://www.boldgrid.com/support/w3-total-cache/general-settings-miscellaneous/)
 * Enabling this setting instructs W3 Total Cache to use the absolute path when 
   resolving paths for files within your WordPress installation. By default, when
   using the “disk” or “disk enhanced” engines for various features, W3TC will use
   the server document root which may not resolve correctly if files/folders are
   symbolically linked from alternate locations in the server’s filesystem.
 * If you have any issues with minification for exable or writing the .htaccess 
   file, this option should be enabled
 * Thanks!
 *  Plugin Contributor [Marko Vasiljevic](https://wordpress.org/support/users/vmarko/)
 * (@vmarko)
 * [1 year, 2 months ago](https://wordpress.org/support/topic/fix-document-root-path/#post-18392361)
 * Hello [@dzire2dzine](https://wordpress.org/support/users/dzire2dzine/)
 * Please let me know if you can see the previous reply!
 * Thanks!
 *  Thread Starter [Saket Jajodia](https://wordpress.org/support/users/dzire2dzine/)
 * (@dzire2dzine)
 * [1 year, 2 months ago](https://wordpress.org/support/topic/fix-document-root-path/#post-18392809)
 * Hi [@vmarko](https://wordpress.org/support/users/vmarko/), Yes, thanks I will
   test it
 *  Thread Starter [Saket Jajodia](https://wordpress.org/support/users/dzire2dzine/)
 * (@dzire2dzine)
 * [1 year, 2 months ago](https://wordpress.org/support/topic/fix-document-root-path/#post-18397596)
 * Every time I Purge All Caches from network admin dashboard, I start getting these
   errors, is it related?
 *     ```wp-block-code
       [03-Apr-2025 12:43:41 UTC] PHP Warning: opendir(/home/***/public_html/wp/wp-content/cache/db/7/singletables//955/7c0): Failed to open directory: No such file or directory in /home/***/public_html/wp/wp-content/plugins/w3-total-cache/Util_File.php on line 133[03-Apr-2025 12:43:42 UTC] PHP Warning: opendir(/home/***/public_html/wp/wp-content/cache/db/7/singletables//b72/c48): Failed to open directory: No such file or directory in /home/***/public_html/wp/wp-content/plugins/w3-total-cache/Util_File.php on line 133[03-Apr-2025 12:43:42 UTC] PHP Warning: opendir(/home/***/public_html/wp/wp-content/cache/db/7/remaining//542/cfa): Failed to open directory: No such file or directory in /home/***/public_html/wp/wp-content/plugins/w3-total-cache/Util_File.php on line 133[03-Apr-2025 12:43:42 UTC] PHP Warning: opendir(/home/***/public_html/wp/wp-content/cache/db/7/remaining//9ac/d60): Failed to open directory: No such file or directory in /home/***/public_html/wp/wp-content/plugins/w3-total-cache/Util_File.php on line 133
       ```
   
 *  Plugin Contributor [Marko Vasiljevic](https://wordpress.org/support/users/vmarko/)
 * (@vmarko)
 * [1 year, 1 month ago](https://wordpress.org/support/topic/fix-document-root-path/#post-18415368)
 * Hello [@dzire2dzine](https://wordpress.org/support/users/dzire2dzine/)
 * Thank you for your feedback.
   It seems that you are using Disk for DB Caching 
   which is not recommended. I would advise to manually delete the /wp-content/cache/
   db/ folder, and do not use DB Caching if the only available caching method is
   DIsk. Please check with your hosting provider if you can use Redis or Memcached
   as those are recommended caching engines for DB caching and Object Caching
 * Thanks!

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Fix document root path’ 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/)

 * 5 replies
 * 2 participants
 * Last reply from: [Marko Vasiljevic](https://wordpress.org/support/users/vmarko/)
 * Last activity: [1 year, 1 month ago](https://wordpress.org/support/topic/fix-document-root-path/#post-18415368)
 * Status: resolved