Page 1 of 1

How to increase FastCGI limits?

Posted: Wed 20. Mar 2024, 10:05
by boka003
Hello there,


Problem 1. My WP website is not able to update or install new plugins: https://prnt.sc/teNLweSkqitC
I have not found any error about this in my error logs.


Problem 2. But I have found this log when I try to save changes at some plugin configuration:

Code: Select all

(104)Connection reset by peer: [client 192.168.111.50:52441] AH01075: Error dispatching request to : (reading input brigade),
 
 400	POST /wp-admin/admin-ajax.php HTTP/1.1
 
https://prnt.sc/_OoZBrlMBX0X

Then I have found how to do it at Plesk;

https://support.plesk.com/hc/en-us/arti ... request-to
https://bobcares.com/blog/plesk-ah01075 ... equest-to/


Can this be a solution to my problem?
And how I can increase these values at KeyHelp?

I was not able to find fcgid.conf file.


Regards

Re: How to increase FastCGI limits?

Posted: Wed 20. Mar 2024, 10:08
by Florian
Hallo,

this has nothing to do with timeouts. You see the error in your screenshot:

"wordpress could not establish a secure connection to wordpress.org"

So check your outgoing connections and name resolution on your system

Re: How to increase FastCGI limits?

Posted: Wed 20. Mar 2024, 10:12
by boka003
Hello,

Thank you for your reply.
I have updated my topic (problem 1 and problem 2).

Problem 1 is a possible network issue, as the server is in the internal network.


But, can problem 2 be solved by editing these values?



Here is my keyhelp.conf file

Code: Select all

listen = /run/php/keyhelp_keyhelp.socket
listen.owner = keyhelp
listen.group = keyhelp
listen.mode = 0666
user = keyhelp
group = keyhelp
pm = ondemand
pm.max_children = 20
pm.max_requests = 20
env[TMP] = /tmp/keyhelp/
env[TMPDIR] = /tmp/keyhelp/
env[TEMP] = /tmp/keyhelp/
php_admin_value[sendmail_path] = /usr/sbin/sendmail -t -i -f boris@po1111111.org
php_admin_value[open_basedir] = /
php_admin_value[session.save_path] = /tmp/keyhelp/
php_admin_value[upload_tmp_dir] = /tmp/keyhelp/
php_admin_value[memory_limit] = 17777M
php_admin_value[post_max_size] = 17777M
php_admin_value[upload_max_filesize] = 17777M
php_admin_value[max_execution_time] = 340
php_admin_value[max_input_vars] = 8000



Re: How to increase FastCGI limits?

Posted: Wed 20. Mar 2024, 10:30
by Florian
Hello,

fix the connection errors and check if the other error occurs again. It seems that is is simply a follow-up error

Re: How to increase FastCGI limits?

Posted: Wed 20. Mar 2024, 12:22
by boka003
Hello,


This is a database connection plugin, and that database is inside our internal network too.
I can access it using Postman.



The database is big, and maybe increasing FastCGI limits can help?
Because, database connection is successful, but the import shows that error.
Can you please tell me where I can increase those limits?



Regards

Re: How to increase FastCGI limits?

Posted: Wed 20. Mar 2024, 13:58
by Florian
Hello,

in /etc/apache2/mods-enabled/fcgid.conf

Re: How to increase FastCGI limits?

Posted: Wed 20. Mar 2024, 16:42
by Ralph
Florian wrote: Wed 20. Mar 2024, 13:58 in /etc/apache2/mods-enabled/fcgid.conf
hmm... is fcgid really (still) required when using FPM with mpm-event?
just deactivated (a2dismod fcgid) it for a check & restarted apache and my default PHP interpreter - so everything works much faster w/o fcgid ... or is it needed for the compiled PHP interpreters?

Re: How to increase FastCGI limits?

Posted: Wed 20. Mar 2024, 16:50
by Florian
Hello,

I just answered the question where to adjust the values for FastCGI. I have not answered the question of meaning.

Re: How to increase FastCGI limits?

Posted: Wed 20. Mar 2024, 17:16
by Ralph
Florian wrote: Wed 20. Mar 2024, 16:50 I just answered the question where to adjust the values for FastCGI. I have not answered the question of meaning.
agreed ;-)
since KH uses fpm w/ mpm-event (as default) wouldn't it be better when fcgid is set disabled then?
It seems to me that apache perform a little better ...
after disabling it shows

Code: Select all

~# apachectl -M | grep 'proxy'
 proxy_module (shared)
 proxy_fcgi_module (shared)
just like before

Re: How to increase FastCGI limits?

Posted: Mon 25. Mar 2024, 15:31
by boka003
Hello,

Can you please help me debug this error at my website: https://prnt.sc/F590rSKF4uOG

It shows up when I try to update plugins.


Regards

Re: How to increase FastCGI limits?

Posted: Mon 25. Mar 2024, 16:10
by Jolinar
Moderator Notice:

Please attach screenshots as files to your posts in the future.