1 個回答
- 最新
- 最多得票
- 最多評論
0
To solve the issue of writing files from WordPress to the S3 bucket mounted via File Gateway, here are a few things you can try:
- Check the IAM role and policies assigned to the EC2 instance. The instance needs permissions to write objects to the S3 bucket.
- Verify network connectivity from the instance to S3. Ensure no firewall rules are blocking access.
- Instead of writing directly to the mounted S3 path, write files locally first then copy them over using cp command. This avoids any permission issues.
- After copying, the file can be deleted from local to avoid duplicating storage. It will remain accessible via the S3 mount point.
- The symlink from WordPress to the S3 mount will allow reading files smoothly as before without needing to change WordPress configuration.
相關內容
- 已提問 6 個月前
- AWS 官方已更新 1 年前
- AWS 官方已更新 2 年前
- AWS 官方已更新 1 年前
That's nice, but I need to split the write and read directories of uploads in WordPress. I need to have one directory for reading and another for writing. When I create a symlink as the uploads directory in wp with a link to /S3, which I have mounted through file gateway, it doesn't allow me to write a file there, but it reads the files correctly. I need to split it so that writing files from wp goes to a different directory and reading for wp is from a different directory.