It’s certainly not an nginx issue. Do you have php error logging enabled? Can you paste in some logs when performing the upload?
Yup, the error log is enabled, but not much information show.
The most relevant is this
2016/07/14 17:06:44 [warn] 4995#4995: *487 an upstream response is buffered to a temporary file /var/cache/nginx/fastcgi_temp/6/03/0000000036 while reading upstream, client: 10.109.248.181, server: www.hermes-ottoint.com, request: "GET /<server root>/wp-admin/upload.php HTTP/1.1", upstream: "fastcgi://unix:/var/run/php-fpm/php-fpm-scarp01.sock:", host: "mydomain", referrer: "<server root>/wp-admin/media-new.php"
My server is within intranet able to access Internet but unable to being access from public. Is it the reason behind? Is there any response or connection is needed from S3 back to my server?
No need for a connection back.
That log is from nginx, we need the one from PHP. Check your php.ini and add these lines:
log_errors = On
error_log = /var/log/php-errors.log
Make sure /var/log/php-errors.log exists and your web process has write access to it.
sudo touch /var/log/php-errors.log
sudo chown www-data:www-data /var/log/php-errors.log
You may need to restart nginx and/or php-fpm.
I haven’t tested this with Multisite, btw, but if we can’t produce something useful from the log I will test it later tonight.
It should be the PHP log already.
That’s 100% an nginx log entry. 🙂
Alright, I got the PHP one, but there is nothing show.
If there was an error communicating with S3, there’d definitely be error messages in the log.
What other plugins are you using? Which version of Media Tools?
Yup, so I said there is not error message from either front end and backend.
Not much plugins installed, just a few one mainly for woocommerce.
I believe there is error when saving my credential if it is failed to communicate with S3, right?
Hi interfacelab,
I tested with another S3 plugin (WP Offload S3 Lite) and I can able to upload images to S3, so I believe there is no networking, security, permission, communication…etc issues.
There is no error message prompt out in the php error log file.