Jump to content
php.lv forumi

Recommended Posts

Posted

Sveiki!
Varbūt kāds var izpalīdzēt - īsti netieku skaidrībā.

Ir:
Ubuntu 20.04.3 LTS
nginx/1.18.0
php7.4-fpm

Gan iekš poola, gan iekš php.ini ir ielikts:

php_admin_value[memory_limit] = 1024M
php_admin_value[upload_max_filesize] = 256M
php_admin_value[post_max_size] = 256M
php_admin_value[max_execution_time] = 600
php_admin_value[max_input_time] = 600
php_admin_value[default_socket_timeout] = 600

Tomēr - PHP scripti, kuri izpildās ilgāk par 60 sekundēm - mirst nost:

[04-Nov-2021 12:18:36] WARNING: [pool www] child 204435, script '/xxx/xxx.php' (request: "POST /xxx/xxx.php") executing too slow (66.125165 sec), logging
[04-Nov-2021 12:18:36] NOTICE: child 204435 stopped for tracing
[04-Nov-2021 12:18:36] NOTICE: about to trace 204435
[04-Nov-2021 12:18:36] NOTICE: finished trace of 204435

Tas ir kaut kāds bags, ka nevar uzlikt ilgāku izpildes laiku, vai kā ???

Ir kādas idejas?

Paldies!

Posted

Tā - izskatās, ka pie vainas bija, ka aizmirsts ielikts pašam nginx:

fastcgi_read_timeout 600;

Liek vainu iekš paša vhosta, vai iekš http {

Paldies par uzmanību ;)

Turam buras!

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...