WordPress.org

Ready to get started?Download WordPress

Forums

[Plugin: W3 Total Cache] CDN Configuration Problems (23 posts)

  1. InterTrade
    Member
    Posted 3 years ago #

    Hello Everyone:

    I am having problems setting up a self-hosted / FTP upload CDN for W3 Total Cache. The problem I am having is related to the SSL certificate for my website. I have an e-commerce website at http://sleepamazing.com for which I set up a subdomain static.sleepamazing.com for the CDN. When I setup W3 with this configuration, it didn't have any problems, except on the secured pages where my web browser informed me there were security certificate issues with some of the content. I talked with my web hosting company and they told me that their SSL certificate needed a dedicated IP and could only be used for the main domain, not subdomains. I checked around and there are certificates that handle subdomains, but they are very expensive. I do have another domain hosted by the same company as I host sleepamazing.com with that I thought I could use, so I set up the cdn in a subdirectory in that domain. But when I tried to configure the settings and test the FTP server to my other domain, I got the following message: "Test failed. Error: Unable to change directory to: /public_html/cdn/sa/".

    Can anyone tell me a simple solution to this problem without costing me a fortune?

    Thanks a million to everyone for your attention to this issue.

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

  2. Frederick Townes
    Member
    Posted 3 years ago #

    You would need to have an SSL certificate for your subdomain to resolve this issue. If your site's URL uses HTTPS then W3TC will also support this protocol. As for the test failing, make sure you've specified the correct path by using a normal FTP client and confirming the path required for uploads.

  3. InterTrade
    Member
    Posted 3 years ago #

    fredericktownes, many thanks for your response. Are you saying that I MUST use a subdomain if I am to use the self-hosted / FTP upload CDN option?

  4. Frederick Townes
    Member
    Posted 3 years ago #

    No.

  5. InterTrade
    Member
    Posted 3 years ago #

    OK... must I use a main domain, or can W3 handle subdirectories?

  6. Frederick Townes
    Member
    Posted 3 years ago #

    No, you can use FTP upload option with any service that allows you to upload files. This would include most CDN providers (especially those with video on demand support). In your case your issue is serving those files via https.

  7. InterTrade
    Member
    Posted 3 years ago #

    Thanks fredericktownes, that is good news.

    I think I can resolve the https issue if I could just get the CDN to work on my other domain. I use Adobe Dreamweaver to FTP my site, and the settings I use for that FTP are the ones I tried to use in W3, but could not.

    Here are the settings I am using:

    FTP Hostname: omniunlimited.com

    FTP Path: /public_html/cdn/sa/

    Replace site's hostname with: omniunlimited.com/cdn/sa/

    (username and password were not provided for obvious security reasons).

    When I click on "Test FTP Server", I get the following message: "Test failed. Error: Unable to change directory to: /public_html/cdn/sa/."

    Are you able to see something that I am doing wrong here?

  8. Frederick Townes
    Member
    Posted 3 years ago #

    Replace site's hostname with: omniunlimited.com/cdn/sa/

    Hostname is: Replace site's hostname with: omniunlimited.com not the path you specified.

    When I click on "Test FTP Server", I get the following message: "Test failed. Error: Unable to change directory to: /public_html/cdn/sa/."

    Try public_html/cdn/sa/ instead.

  9. InterTrade
    Member
    Posted 3 years ago #

    Hi fredericktownes, sorry I couldn't get back to you earlier.

    Well, I did as you suggested and I still get errors. Here is what I now have. Maybe you can see where I am still doing something wrong:

    FTP Hostname: omniunlimited.com

    FTP Path: public_html/cdn/sa/

    Replace site's hostname with: omniunlimited.com

    This gives me the following message: "Test failed. Error: Unable to change directory to: public_html/cdn/sa/."

    Because public_html is the root directory for the site, I also tried /cdn/sa/ and cdn/sa/ just for laughs. Still got the same error message.

    What do you think could be going wrong? Again, I can connect just fine in Dreamweaver.

    Thanks again for all the help.

  10. Frederick Townes
    Member
    Posted 3 years ago #

    Did you try not specifying a path?

  11. InterTrade
    Member
    Posted 3 years ago #

    Yes, the message I get there is different. It says, "Test failed. Error: Unable to upload file: /home4/sleepama/public_html/wp-content/uploads/2010/04/test_file_977767c042f5a1b586f43414fb416133."

    Also, I don't know how I did it, but I apparently deleted the default.include files in the static.sleepamazing.com/wp-content/w3tc/min subdirectory. Is there anyway I can force a minify of the same css and js files I had loaded previously?

  12. Frederick Townes
    Member
    Posted 3 years ago #

    es, the message I get there is different. It says, "Test failed. Error: Unable to upload file: /home4/sleepama/public_html/wp-content/uploads/2010/04/test_file_977767c042f5a1b586f43414fb416133."

    That means that the FTP user doesn't have permissions to upload. So there's an issue with your FTP account.

    Also, I don't know how I did it, but I apparently deleted the default.include files in the static.sleepamazing.com/wp-content/w3tc/min subdirectory. Is there anyway I can force a minify of the same css and js files I had loaded previously?

    It will be recreated automatically. You can empty the minify cache to be sure.

  13. InterTrade
    Member
    Posted 3 years ago #

    I'm sorry fredericktownes, I'm going to have to ask you to be patient with me. There is a lot of stuff I am not understanding, and I hope you can clear it up for me.

    My idea is to use a subdirectory in another hosted site (omniunlimited.com) to host the self-hosted CDN. Now, I went ahead and followed your suggestions changing both the FTP path and the "Replace site's hostname with:" to remove all instances of reference to the subdirectory I wish to use. The FTP has been set up specifically for that subdirectory and will not allow access to the upper main site. If I open up the user permission to allow access to the main omniunlimited.com site, then won't the CDN files be dumped into the main website directory?

    I know from experience that when W3 is activated, the root address of the css and js files is changed to whatever is in the "Replace site's hostname with:" field. If I remove the subdirectory designations, how will W3 know to place them in the right subdirectory?

    Thank you once again for your time and attention to this matter.

    With regards to the minify files in my current subdomain, I tried to empty that, and indeed all, caches but the files have failed to recreate in the subdomain. That is why I asked if there is a way to force their re-creation.

  14. rashadow
    Member
    Posted 3 years ago #

    That means that the FTP user doesn't have permissions to upload. So there's an issue with your FTP account.

    Does that mean that the ftp user needs access to both the subdomain folder AND the WP Uploads folder?

    I gave complete access but still get the test failed errors

  15. Frederick Townes
    Member
    Posted 3 years ago #

    No, normally if you can upload with an FTP client and navigate to the path you specified in your W3TC settings you are all set. If you still cannot get things to work submit a bug submission report from the support tab.

  16. InterTrade
    Member
    Posted 3 years ago #

    I'm sorry fredericktownes, I know you have been busy. It seems you may have missed my questions, so I will present them once again to you:

    I'm sorry fredericktownes, I'm going to have to ask you to be patient with me. There is a lot of stuff I am not understanding, and I hope you can clear it up for me.
    
    My idea is to use a subdirectory in another hosted site (omniunlimited.com) to host the self-hosted CDN. Now, I went ahead and followed your suggestions changing both the FTP path and the "Replace site's hostname with:" to remove all instances of reference to the subdirectory I wish to use. The FTP has been set up specifically for that subdirectory and will not allow access to the upper main site. If I open up the user permission to allow access to the main omniunlimited.com site, then won't the CDN files be dumped into the main website directory?
    
    I know from experience that when W3 is activated, the root address of the css and js files is changed to whatever is in the "Replace site's hostname with:" field. If I remove the subdirectory designations, how will W3 know to place them in the right subdirectory?
    
    Thank you once again for your time and attention to this matter.
    
    With regards to the minify files in my current subdomain, I tried to empty that, and indeed all, caches but the files have failed to recreate in the subdomain. That is why I asked if there is a way to force their re-creation.

    Additionally, if you feel this may be a bug in the system, and that I should submit a bug submission report, you should know that I get the following error when I click on the support tab: "Fatal error: Call to undefined function get_user_by() in /home4/sleepama/public_html/wp-content/plugins/w3-total-cache/lib/W3/Plugin/TotalCache.php on line 1238".

    I am adept at php, javascript, jQuery and AJAX. If there are changes that I could make to the plugin to make all this work, please let me know.

  17. Frederick Townes
    Member
    Posted 3 years ago #

    You can use any host you wish so long as FTP is supported. Please try the development version of the plugin also: http://wordpress.org/extend/plugins/w3-total-cache/download/

  18. InterTrade
    Member
    Posted 3 years ago #

    OK fredericktownes, I went ahead and deactivated and uninstalled the plugin and installed and activated the development version. On running the same tests we did before, this version reacts the same way. I still have all the issues (including the problem with the support tab) as I did before.

    Can you think of any other possible solutions?

  19. Frederick Townes
    Member
    Posted 3 years ago #

    so:

    - FTP home directory should be document root of static.domain.com
    - FTP path should be empty
    - Replace domain hosname should be static.domain.com
    * Use of subdirectory is not supported (nor recommended)

    If you're still having trouble please submit a bug submissions report from to support tab of the plugin so I can look at your case.

  20. InterTrade
    Member
    Posted 3 years ago #

    fredericktownes, I do appreciate your help and assistance, but your comments have confused me somewhat.

    In my reply to your first comment I asked you if I MUST use a subdomain (like your example, static.domain.com). Your reply was no. Now you are telling me that the FTP home directory SHOULD be a subdomain, e.g. static.domain.com.

    You are also telling me that the use of subdirectories is not supported, nor recommended. Why does the plugin provide for an FTP path?

    As far as the bug submissions report, it looks like I need to repeat the statement I made several times before, i.e. when I click on the support tab I get the following error, "Fatal error: Call to undefined function get_user_by() in /home4/sleepama/public_html/wp-content/plugins/w3-total-cache/lib/W3/Plugin/TotalCache.php on line 1238".

    How do I fix this?

    I would really, really appreciate some clear answers to my questions. Thanks again for your time and attention to this matter.

  21. Frederick Townes
    Member
    Posted 3 years ago #

    Why does the plugin provide for an FTP path?

    Because not all document root directories are the home directory.

    I cannot help you without access to your server. You can contact me through the site. The FTP functionality has been the same since v0.5 and the FAQ normally helps everyone else.

  22. InterTrade
    Member
    Posted 3 years ago #

    It's OK fredericktownes. I thank you for your help, anyways. I figure that I am simply going to have to bite the bullet and buy one of those (expensive) SSL certificates that handle subdomains if I plan on using your plugin.

    If I have any more issues, I will be in touch.

  23. Frederick Townes
    Member
    Posted 3 years ago #

    Ok.

Topic Closed

This topic has been closed to new replies.

About this Topic