Title: Nginx compatibility
Last modified: September 1, 2016

---

# Nginx compatibility

 *  [anfieldleung](https://wordpress.org/support/users/anfieldleung/)
 * (@anfieldleung)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/nginx-compatibility-4/)
 * Hi,
 * I got WP multisite running on php version 7.0.8 , WP 4.5.3, ILAB Media Tools 
   1.0.4. The plugin was activated on a subsite with S3 credential configurated.
   The images failed to upload to S3 no matter “Automatically uploads” checked or
   using the S3 importer. However, there is no error message, the images still on
   local server. May I know the reason why? Thank you.
 * [https://wordpress.org/plugins/ilab-media-tools/](https://wordpress.org/plugins/ilab-media-tools/)

Viewing 9 replies - 1 through 9 (of 9 total)

 *  Plugin Author [interfacelab](https://wordpress.org/support/users/interfacelab/)
 * (@interfacelab)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/nginx-compatibility-4/#post-7571285)
 * It’s certainly not an nginx issue. Do you have php error logging enabled? Can
   you paste in some logs when performing the upload?
 *  Thread Starter [anfieldleung](https://wordpress.org/support/users/anfieldleung/)
 * (@anfieldleung)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/nginx-compatibility-4/#post-7571289)
 * 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?
 *  Plugin Author [interfacelab](https://wordpress.org/support/users/interfacelab/)
 * (@interfacelab)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/nginx-compatibility-4/#post-7571296)
 * 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.
 *  Thread Starter [anfieldleung](https://wordpress.org/support/users/anfieldleung/)
 * (@anfieldleung)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/nginx-compatibility-4/#post-7571315)
 * It should be the PHP log already.
 *  Plugin Author [interfacelab](https://wordpress.org/support/users/interfacelab/)
 * (@interfacelab)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/nginx-compatibility-4/#post-7571316)
 * That’s 100% an nginx log entry. 🙂
 *  Thread Starter [anfieldleung](https://wordpress.org/support/users/anfieldleung/)
 * (@anfieldleung)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/nginx-compatibility-4/#post-7571321)
 * Alright, I got the PHP one, but there is nothing show.
 *  Plugin Author [interfacelab](https://wordpress.org/support/users/interfacelab/)
 * (@interfacelab)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/nginx-compatibility-4/#post-7571323)
 * 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?
 *  Thread Starter [anfieldleung](https://wordpress.org/support/users/anfieldleung/)
 * (@anfieldleung)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/nginx-compatibility-4/#post-7571327)
 * 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?
 *  Thread Starter [anfieldleung](https://wordpress.org/support/users/anfieldleung/)
 * (@anfieldleung)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/nginx-compatibility-4/#post-7571413)
 * 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.

Viewing 9 replies - 1 through 9 (of 9 total)

The topic ‘Nginx compatibility’ is closed to new replies.

 * ![](https://ps.w.org/ilab-media-tools/assets/icon.svg?rev=2795439)
 * [Media Cloud for Bunny CDN, Amazon S3, Cloudflare R2, Google Cloud Storage, DigitalOcean and more](https://wordpress.org/plugins/ilab-media-tools/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/ilab-media-tools/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/ilab-media-tools/)
 * [Active Topics](https://wordpress.org/support/plugin/ilab-media-tools/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/ilab-media-tools/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/ilab-media-tools/reviews/)

## Tags

 * [nginx](https://wordpress.org/support/topic-tag/nginx/)
 * [s3](https://wordpress.org/support/topic-tag/s3/)

 * 9 replies
 * 2 participants
 * Last reply from: [anfieldleung](https://wordpress.org/support/users/anfieldleung/)
 * Last activity: [9 years, 10 months ago](https://wordpress.org/support/topic/nginx-compatibility-4/#post-7571413)
 * Status: not resolved