3
votes
How to set up CloudFront for a Craft site
I wrote up an article that might be helpful for future-people looking for step by step instructions on setting this up: Setting Up AWS S3 Buckets + CloudFront CDN for your Assets
3
votes
Craft CMS, Amazon EC2 & Load balancers
I don't know if anything on AWS can be considered simple, but there is a good writeup on getting Craft up and running with EC2: https://solspace.com/blog/spinning-up-a-craft-cms-development-site-on-...
3
votes
Accepted
How does Craft handle uploading assets to AWS?
They are uploaded to Craft first to a temporary file, then Assets uses the Asset Source to work out where to send them next - either the local file system or a remote one.
For handling large uploads ...
3
votes
CraftCMS with Cloudfront Full Page Delivery
That's the dream, isn't it? CDN everywhere, no database hits, etc. How "static" is your site? Unlike other CMS, the great thing about Craft is that you can store information everywhere and pull it out ...
2
votes
Accepted
500 Error on AWS bitnami instance
So, turns out the issue was with the $app = require 'bootstrap.php'; line in app/index.php. There was another directory for smarty template engine that was getting pulled from for the bootstrap file. ...
2
votes
Accepted
How to deploy website from dev to staging from localhost to remote server using composer
There is a course on CraftQuest regarding deployment of Craft CMS you might want to check out: https://craftquest.io/courses/deploying-craft-cms-3
For my personal workflow, I develop locally then ...
2
votes
MySQL "Access denied for user" after moving to new server
Seems this is not a Craft issue at all, but an issue with MySQL connections over PDO. Not sure of the precise environmental conditions that cause this, but I was experiencing the issue on both an AWS ...
2
votes
Image path is broken after updating site from Craft version 3 to 4
In case, anyone is facing the same issue, I finally figured it out. Craft 4 has introduced Filesystems which basically takes all the file storage settings out of Volumes. When I ran the craft ...
2
votes
Accepted
Image Transforms and AWS
Most likely you have AWS policy issue. Never seen the problem you've described
Craft still will save images copy locally to improve speed. You can disable it using maxCachedCloudImageSize config and ...
1
vote
Accepted
Issues uploading and transforming images
Looking through my image volume settings I noticed the value expires: ' seconds' which did not appear on my other volumes. I changed that to expires: '' ran ddev craft up and my images volume ...
1
vote
Thumbnails broken in CP after migrating images to AWS S3
It actually turns out to be an oversight on my part. It was confusing (after I manually replaced the missing assets), but in control panel > admin > settings > assets > volumes, I did not ...
1
vote
Thumbnails broken in CP after migrating images to AWS S3
My first guess would have been that the asset indexes stored in the database are out of sync since it was recently migrated to a new Volume.
A way to fix that would be to run the "Update Asset ...
1
vote
Accepted
1
vote
How to deploy website from dev to staging from localhost to remote server using composer
I use https://deployer.org/ which is a php package you can run from the command line.
It's great if you're looking for a free, zero-downtime solution to deploy your sites. The downside however is that ...
1
vote
How to deploy website from dev to staging from localhost to remote server using composer
I think this deploy-bot / buddy stuff is a bit overkill.
I love to use Laravel Forge and for this u have to pay, when u want to build your business on it (for many clients).
Like I do with my statamic ...
1
vote
Uploading assets to different locations based on environment
It’s possible to do this using Yii’s dependency injection container.
See the Using Local Volumes for Development knowledge base article to learn how.
1
vote
Uploading assets to different locations based on environment
AFAIK, you can't change the type of your volume based on your environment. But if having a separate S3 account/bucket for dev could work for you, you can configure this with a volume.php config file. ...
1
vote
Can't install Craft 3 when deploying to AWS EC2 instance - Template not found: install Template not found: install
I suggest you to read the documentation about how to install Craft there is no such install process anymore. You just need to follow these steps, install it via composer, run the setup ./craft setup ...
1
vote
Accepted
Craft cacheMethod setting is being overridden
The craft/config/memcache.php file has nothing to do with where PHP sessions are stored. It is for Craft's general purpose data caching.
If you want to save PHP session in memcache, you'll need to ...
1
vote
How does Craft handle uploading assets to AWS?
A simple but inelegant workaround for very large files is to upload them directly to the AWS bucket and then update the Asset Index in the Craft CP
1
vote
Craft 2.6 Asset Upload 500 Error (EC2 and Amazon S3)
Apparently PHP hadn't installed the XML Parser appropriately. The amazing Craft team provided this link. Which solved my issue.
sudo apt-get install php-xml
https://stackoverflow.com/a/35604148/...
1
vote
Deploying Craft on AWS
I was able to deploy Craft CMS to an AWS Lightsail + LAMP instance roughly following the installation documentation with the following steps:
Create a new instance using LAMP (PHP8)
Create a new ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
aws × 31assets × 10
s3 × 9
craft3 × 7
deployment × 4
database × 3
load-balancer × 3
php × 2
config × 2
mysql × 2
upload × 2
session × 2
apache × 2
amazon × 2
craft4 × 2
templating × 1
localization × 1
error-message × 1
image-transforms × 1
image × 1
install × 1
migration × 1
routing × 1
multi-environment × 1
updates × 1