php – Laravel Image Upload (504 Gateway Timeout Ubuntu, Nginx)-ThrowExceptions

Exception or error:

Before deploying my laravel project on Vultr Ubuntu Ngix i was able to upload images locally but any time i try uploading picture on my liveserver, it takes time to load and end up giving 504 Gateway Timeour nginx/1.16.1 (Ubuntu)

Even when the image size is less than 1MB

this is usually the link generated https://monstajams.net/image//tmp/phpScQbKd

What am i doing wrong?

Did this in my php.ini

memory_limit = 32M upload_max_filesize = 16M post_max_size = 16M max_execution_time = 30 max_input_time = -1

Still did not work

i have this in nginx

fastcgi_read_timeout 600; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; fastcgi_intercept_errors off; fastcgi_buffer_size 16k; fastcgi_buffers 4 16k; fastcgi_connect_timeout 600; fastcgi_send_timeout 600;

How to solve:

Leave a Reply

Your email address will not be published. Required fields are marked *