WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] W3 Total Cache - FTP Self Hosted CDN Option - Can't Get it to Work (34 posts)

  1. rashadow
    Member
    Posted 4 years ago #

    I must be missing something simple. No matter how I configure it, the test always fails.

    Can somebody walk me through this? And can ya make it idiot proof for this idiot? :))

    Use passive FTP mode - to check or not to check...that is the question

    FTP hostname: - I am using the same shared hosting server as my site - do I use localhost or http://ftp.mydomain.com?

    FTP username: I created a new one just for this purpose

    FTP password: I created a new one just for this purpose

    FTP path: Is this a server path, an html one or an ftp. one?

    Replace site's hostname with: I created a subdomain called CDN.mydomain.com and it points to a folder called /CDN - I created an FTP login that strictly has access to only that folder. I also tried to give the login full access, but that did not work neither.

    Any help would be greatly appreciated.

    http://silenciobarnes.com
    http://wordpress.org/extend/plugins/w3-total-cache/

  2. Frederick Townes
    Member
    Posted 4 years ago #

    For self hosted:

    1. Be sure to use the file found in wp-content/plugins/w3-total-cache/ini/_htaccess in the document root of your subdomain. Rename it and read the comments there to be sure that all is the way you want/need it.

    2. Simply create a subdomain, DNS and then test the FTP settings with a FTP client making sure files you upload are available in your browser, then copy those settings to W3TC. This is in the FAQ. Many FTP servers have nuances that I cannot possibly provide documentation for. So start here. Use localhost or 127.0.0.1 for hostname for uploading if possible

  3. j2l
    Member
    Posted 4 years ago #

    I have exactly the same issue (shared hosting, subdomain, new FTP user).
    Even testing FTP server from CDN settings page is stuck forever.

    I tried ftp username and password from bash and FTP client and it works fine. Subdomain is also configured.

    127.0.0.1 or domain name doesn't solve at all.

    I wonder if it "sanitize" username and password (I have @ and *).

  4. j2l
    Member
    Posted 4 years ago #

    BTW, where's the log for this plugin?
    I don't see any error in error_log or admin/error_log so I wonder if there's another place.

  5. rashadow
    Member
    Posted 4 years ago #

    It seems that I have the same problem as the person on this thread: http://wordpress.org/support/topic/391367

    @j2l - These instructions here may help you: http://wordpress.org/support/topic/302341

  6. j2l
    Member
    Posted 4 years ago #

    When I put 127.0.0.1 and path is local I have CDN activated once, then on reload it's no more there.

    Where's the log?

  7. j2l
    Member
    Posted 4 years ago #

    cURL seems to be partially working on my shared host, it's there according to phpinfo() but FTP testing is stuck.

  8. j2l
    Member
    Posted 4 years ago #

    I checked about curl, it's ON and working and detected by W3.
    There's no log files at all, I won't ask again :)

    The only solution I see is that I send files, via FTP to CDN, manually.

    Can anyone can try CDN with FTP and get back with details for me?

    Simply tell me the directory structure of files once on CDN (folders, sub-folders, files locations within this folders, ...).
    Thanks.

    I guess it's something like:

    /wp-includes
    -files
    /wp-content
    -/theme
    --/mytheme
    ---files
    min css file
    min js file
    custom files

    Please confirm :)

  9. Frederick Townes
    Member
    Posted 4 years ago #

    All that's left is debugging on your server. Please submit a bug submission report from the support tab of the plugin.

  10. Chukwudi Emmanuel Udegbunam
    Member
    Posted 4 years ago #

    Try the instructions I left @ http://www.strictlyonlinebiz.com/blog/speed-up-wordpress-with-w3-total-cache/1231/ and see if that helps

    If your main site is http://www.website.com use your main ftp which should be http://ftp.website.com. If you subdomain is cdn.website.com and this is pointing @ public_html/cdn, then you must use public_html/cdn as your directory under cdn settings

  11. Chukwudi Emmanuel Udegbunam
    Member
    Posted 4 years ago #

    I meant ftp(dot)website(dot)com not http://ftp.website.com

  12. rashadow
    Member
    Posted 4 years ago #

    @strictlyonlinebiz - that's a nice, straightforward tutorial that you put together. Unfortunately, the CDN option still doesn't work - I learned to live without it :(

    My host doesn't use public_html - my root looks something like (fatcow hosting) /home/users/web/***/moo.username/CDN - but even with that, it fails. Oddly, when it says that it is trying to upload a test file into the wp uploads, it always says it fails...but the test files actually do make it into the upload folder when I check via ftp - and yea, using an ftp client works fine.

  13. Chukwudi Emmanuel Udegbunam
    Member
    Posted 4 years ago #

    @rashadow: Thanks for the compliments. If the files are getting uploaded, despite test failed messages, I suggest you just leave it (the configuration) be that way.

    @fredericktownes: is there a problem with the plug-in recognizing paths such as rashadows'?

  14. Frederick Townes
    Member
    Posted 4 years ago #

    No there's not. I'd have to debug on his server to find the nuance.

  15. rashadow
    Member
    Posted 4 years ago #

    I'm not too concerned with it. After all, wordpress 3.0 is about to drop any day now and that means there's probably a new release of W3TC coming as well. Figured I'd wait for both of those and then tackle the problem fresh :)

  16. Frederick Townes
    Member
    Posted 4 years ago #

    Ok.

  17. Rob1962
    Member
    Posted 4 years ago #

    Hi

    I use WP 2.9.2 and the WP shoppingcart plugin 3.7.6.1.
    I just installed the W3tc plugin and after activating CDN and uploading all the files i now have some issues:
    - mainpage is gone
    - pictures are gone
    - text in posts is doubled
    - my navigation is messed up ( missing the + and - signs )

    My website is http://www.landyspecials.com

    Can you help me please?

    Gr, Rob van Abeelen

  18. Frederick Townes
    Member
    Posted 4 years ago #

    For now disable CDN. Then submit a bug submission via the support tab.

  19. kepoma
    Member
    Posted 4 years ago #

    Hello I am having the same issue as the original poster. To give you a bit of details.

    My host is Hostgator, on a shared hosting account. The domain where I have the plugin installed is an addon domain in my account, I also created the subdomain as cdn.mydomain.com

    I created the ftp account to be separate from my main one and I can connect to cdn.mydomain.com without a problem and browse directories, upload files, etc.

    Additionally I can access a simple text file via the browser, also the dns has propagated, without me doing anything, I guess the hosting company does that when adding subdomains automatically. I checked this with whatsmydns.net added cdn.mydomain.com and responses where fine.

    I also copied and checked the .htaccess file in the wp-content/plugins/w3-total-cache/ini/_htaccess and of course renamed it to .htaccess into the root of cdn.mydomain.com

    I enabled the cdn in the plugin, copied all the settings from my ftp client to the fields in the plugin, for troubleshooting I checked different combinations of ftp passive mode on and off, with ftp path and without, login in via the main ftp account and the one created specifically for cdn.mydomain.com and each time it says testing... I left it overnight and no change.

    I also followed the instructions at http://www.strictlyonlinebiz.com/blog/speed-up-wordpress-with-w3-total-cache/1231/ as they matched my host and still wouldn't work.

    Any other suggestions? And thank you in advance for any help.

    -Ken

  20. Terence
    Member
    Posted 4 years ago #

    I have exactly the same problem trying to get W3TC to work with CDN at VPS.NET as you know Frederick. Is there something you can see that might be common to all of us having this problem?

  21. Frederick Townes
    Member
    Posted 4 years ago #

    Anyone that has not submitted a bug submission form from the support tab of the plugin, please do so.

  22. cyberczar
    Member
    Posted 4 years ago #

    Only problem is your bug report form doesn't work.

    Outbound Email is disabled for security reasons on my server.

  23. Frederick Townes
    Member
    Posted 4 years ago #

    Then you can email me directly.

  24. Andrea Pernici
    Member
    Posted 4 years ago #

    Hi, when I try to upload via admin panel FTP the plugin always show Failing Upload but the file are uploaded.

    The test ftp always show testing.

    What does it mean ?

    Thanks.

  25. Frederick Townes
    Member
    Posted 4 years ago #

    There can be JS issues here. Trying the development version would be helpful to me to put this issue to rest.

  26. kepoma
    Member
    Posted 4 years ago #

    Hello Fredericktownes,

    I went ahead and installed the dev version of the plugin and that solved the "Testing" issue with the cdn.

    Everything is working like a charm. Plus all the new features added makes this a solid choice for anyone.

    Thanks for your development time and effort.

    -Kenneth

  27. Frederick Townes
    Member
    Posted 4 years ago #

    You're welcome.

  28. Thomas McMahon
    Member
    Posted 4 years ago #

    I'm having the same 'testing' issues.

    It use to work fine before WordPress 3, so I'm wondering if it's not a new conflict.

    Eagerly awaiting a new version. :)

  29. Frederick Townes
    Member
    Posted 4 years ago #

    You're using the development version?

  30. scotman
    Member
    Posted 4 years ago #

    Thanks Fredrick for the fix,yea was having the same problems with the upload error too.

    For other users I'm using a a Hostgator VPS Linux dedicated server and created a subdomain named static.yourdomainhereexample.com.

    I was plagued with the upload errors and failed ftp test. I simply updated to the development version of W3 Total Cache found here at the W3 Total Cache Development Version Download Page and it fixed all the problems.

    Cheers.

    Signing off Scot Manaher ~

Topic Closed

This topic has been closed to new replies.

About this Topic