• Resolved lilap

    (@lilap)


    Hello, I upload all my galleries via FTP and manually click on the “Scan for images” in the gallery section.

    Depending how many images I have, if I have over 100 images that are 100kb each with a max longest side of 1024px, it gives me a 504 Gateway error, and I have to always reset PHP7.2. This used to happen with PHP7.1 and Mysql5.6

    What are the server side settings that are required to prevent this? Such as PHP timeouts, php limits, or maxvars etc.

    Thanks

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Contributor Imagely

    (@imagely)

    @lilap – Most standard server environment settings by default would be fine, can you share the ones you are currently using on your site (look under Gallery > Overview | Site Details)?

    Thanks!

    – Cais.

    Thread Starter lilap

    (@lilap)

    Hello,

    These are my Site Details:

    Server Settings

    Operating System : Linux (64 Bit)
    Server : nginx/1.13.9
    Memory usage : 33.56 MByte
    MYSQL Version : 10.2.7-MariaDB-10.2.7+maria~xenial-log
    SQL Mode : ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION
    PHP Version : 7.2.2-3+ubuntu16.04.1+deb.sury.org+1
    PHP Safe Mode : Off
    PHP Allow URL fopen : On
    PHP Memory Limit : 2048
    PHP Max Upload Size : 256M
    PHP Max Post Size : 256M
    PCRE Backtracking Limit : 1000000
    PHP Max Script Execute Time : 30s
    PHP Exif support : Yes (V7.2.)
    PHP IPTC support : Yes
    PHP XML support : Yes
    Graphic Library

    GD Version : 2.2.5
    FreeType Support : Yes
    FreeType Linkage : with freetype
    GIF Read Support : Yes
    GIF Create Support : Yes
    JPEG Support : Yes
    PNG Support : Yes
    WBMP Support : Yes
    XPM Support : Yes
    XBM Support : Yes
    WebP Support : Yes
    BMP Support : Yes
    JIS-mapped Japanese Font Support : No

    Every time I scan folder for more images, it just crashes…. Any suggestions?

    Plugin Contributor Imagely

    (@imagely)

    @lilap – Those environment settings look fine. Are you seeing any entries in your server’s error_log files?

    – Cais.

    Thread Starter lilap

    (@lilap)

    Hi Cais,

    I will be looking into the error_logs when I scan a new folder. There are no errors that I can see, would it be linked to “PHP Max Script Execute Time : 30s” should I increase this?

    Plugin Contributor Imagely

    (@imagely)

    @lilap – That might be part of the issue, I would suggest at least a value of 60 seconds although you may need to work with your web hosting service to ensure you get the most correct value.

    Thanks!

    – Cais.

    Thread Starter lilap

    (@lilap)

    Hello Cais,

    I have tried and tested by increasing the Execute time to 600s to make sure if it is.

    Still getting 504 errors upon scanning folders. No errors on log files, or php logs. Do you have any other suggestion?

    Also will you consider adding .mp4 files as an acceptable file to me managed in NGG? Just to add to the gallery just like GIFs, and our lightboxes will do the rest like load the .mp4 file?

    Plugin Contributor Imagely

    (@imagely)

    @lilap – Please send us a Bug Report (https://imagely.com/report-bug/ … please reference this topic) so we can get a better look under the page at your site.

    Please include as many details as you can about your site and the issue at hand so we can move on this as fast as possible.

    Thanks!

    – Cais.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Recommended service side settings’ is closed to new replies.