PHP version : 8.2.33 php.ini file: /opt/cpanel/ea-php82/root/etc/php.ini ------------------------------------------------------------ post_max_size = 64M # Max size of the whole POST (must be >= upload_max_filesize) upload_max_filesize = 64M # Max size of a single uploaded file max_file_uploads = 20 # Max number of files in one POST max_execution_time = 300 # Seconds PHP will run before it kills the script (0 = unlimited) max_input_time = 300 # Seconds PHP will spend parsing input/receiving the upload memory_limit = 256M # Max RAM per request (PDF merge/OCR needs headroom) ------------------------------------------------------------ NOTE: a 504 Gateway Timeout is usually a WEB-SERVER limit, not one of the above. Check Apache (FcgidIOTimeout / ProxyTimeout / TimeOut) or nginx (fastcgi_read_timeout) as well.