• Resolved kornerss

    (@kornerss)


    My WordPress website is hosted on AWS EC2 instance. I installed w3 total cashe and linked the instance through a Cloudfront distribution. This setup was created successfully.

    Later I enabled CDN and Minified CSS, html etc. and continued optimizing with W3 total cache.

    During this setup, although I created a S3 bucket in AWS I had no idea how cloudfront will link with the S3 storage. I assumed that cloudfront will automatically create a bucket and setup the link (silly right)

    Afterwards I happed to check where the files were offloaded to AWS.
    Found that there was no S3 bucket created.
    Cloudfront distribution was created by W3TC.
    As the data is not in the S3 bucket, it should be stored in the EC2 storage right?

    If so, can you please guide me how to link Cloudfront distribution with S3 storage?

    ————————————————————-

    After about 2 months I got a “Database connection” issue. (even when I have increased EC2 storage from 10GiB to 16GiB)
    I think the above issue has resulted the database issue.

    Looking forward to get a solution as a customer who keep trust in your Services @pluginsupport

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @kornerss

    Thank you for your inquiry and I am happy to assist you with this.
    You need to create an S3 bucket.
    Please check our FAQ for a more detailed explanation on how to configure Amazon CloudFront as my CDN.
    Thanks!

    Thread Starter kornerss

    (@kornerss)

    Thanks for the reply @vmarko
    I’ll refer to this doc.

    As a s3 storage was not linked to Cloudfront, does that mean all the website data was loaded to EC2 storage?
    And does that have any relationship with maxing out iNode usage?

    Filesystem Size Used Avail Use% Mounted on
    /dev/xvda1 16G 11G 4.1G 73% /

    Filesystem Inodes IUsed IFree IUse% Mounted on
    /dev/xvda1 1040384 1040384 0 100% /

    As you see storage is not maxed out. But Inodes are used 100%

    Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @kornerss

    Thank you for the information.
    Yes, that is most likely so you need to create an S3 Bucket.
    Inodes are not specifically related to storage size. An inode is a data structure. It defines a file or a directory on the file system and is stored in the directory entry. Inodes point to blocks that make up a file.
    So if the limit is set to the number of inodes, it does not matter if the storage limit is reached or not. These are just limitations on the server.
    Thanks!

    Thread Starter kornerss

    (@kornerss)

    Thanks again @vmarko

    apologies for the back and forth. I’m not a tech expert or coder.

    1. Can you please suggest me a method to delete these data stored on EC2 loaded from CDN.
    So that I can reinstall W3tc and direct those files to S3 storage?

    2. Can you please suggest me a method to restore my website? Still it’s not loading.

    These are the service status of the website at the moment:
    php-fpm already running
    apache already running
    mysql already running

    I have increased the EC2 storage from 16 to 25
    Renamed plugin folder in wp-content to deactivate the plugins
    But still the site is not loading.

    Can you please suggest a solution for this. Really appreciate your time.

    • This reply was modified 3 years, 1 month ago by kornerss.
    Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @kornerss

    Thank you for the information.
    1. you should delete the instance on the AWS. Please reach out to CF for assistance.
    2. Try to completely remove W3TC:
    1. Purge Cache
    2. Deactivate and Delete Plugin
    3. Check .htaccess File (make backup)
    W3TC will create many directives in .htaccess file to control the caching behavior. Each section will start and end with comments like “#BEGIN W3TC Page Cache core” and “#END W3TC Page Cache core”.
    Ensure that no residual entries are left over in your .htaccess file after deleting the plugin.
    4. Delete wp-content files and folders
    – cache folder
    – w3tc-config folder
    – object-cache.php (if exists)
    – advanced-cache.php (if exists)
    – dbcache.php (if exists)
    – upgrade folder
    – delete w3-total-cache folder in wp-content (if exists)
    5. Delete Cached Files from CDN (if using CDN)
    Besides deleting all the relevant files, if you use CDN then ensure to purge the cached content from your CDN. This is necessary when you enabled minify option in W3TC settings. You should delete the minified and combined scripts and CSS files from your CDN server to avoid the site breaking on the browser.

    If the issue is still there then it’s not related to W3TC and you should reach out to your hosting provider.
    Thanks!

    Thread Starter kornerss

    (@kornerss)

    Wow. I didn’t think it would be this serious.
    Anyway thanks for the support and quick replies. I’ll try those out

    • This reply was modified 3 years, 1 month ago by kornerss.
    Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @kornerss

    You are most welcome!

    Thread Starter kornerss

    (@kornerss)

    Hello @vmarko

    Can you please specify what type of access should be given to IAM user Group (which is linked to W3TC) inorder to setup CDN
    Is it a must to provide Administrative Access inorder to crate cloudfront destribution and s3 bucket access?

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘to where does w3 total cahe load data from wordpress to aws through Cloudfront’ is closed to new replies.