Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Flegma

Pages: [1]
1
Apache / Re: Apache 2.4.23 (and .25) Timeout hardcoded?
« on: June 11, 2017, 08:34:44 AM »
Yes, Apache only.
I tried on 2 VPS-es, both with latest CWP. Every time, after 120 seconds the process timeouts with the same error.
I doubt that it has something to do with fcgi (since in phpinfo it says that server api is cgi/fastcgi) but afaik CWP compiles Apache with suPHP 0.7.2?
Also, i dont see fcgi in loaded modules, but it still keeps timing out after 120 seconds.

Any other ideas?

2
Apache / Apache 2.4.23 (and .25) Timeout hardcoded?
« on: June 10, 2017, 07:45:02 AM »
Hello,
i have a long running php script that imports CSV files (it runs about 5-7 minutes).
In php.ini there is

max_execution_time = 900
max_input_time = 900
memory_limit = 1024M
default_socket_timeout = 900

and in httpd.conf there is
Timeout 60 (default setting)

But every time script times out exactly 120 seconds after start. I tried putting Timeout 300 in httpd-default.conf, but nothing happens, still throwing error 500 (script timed out before returning headers) every time.

Somewhere i have read that apache has hardcoded timeout for php-fpm, but im using suPHP (cwp default apache installation) and i cannot find the problem.

Anyone knows the solution?


Best regards

3
PHP Selector / Re: Upgrade buildconf 2.63
« on: March 02, 2017, 01:57:34 PM »
Hello,
i have found the solution.
You need to download and install manually new version of m4 autom4te and autoconf.
You can do so by doing:

cd /usr/local/src
wget https://ftp.gnu.org/pub/gnu/autoconf/autoconf-2.69.tar.gz
tar zxvf autoconf-2.69.tar.gz
cd autoconf-2.69*
./configure
make && make install
mv /usr/bin/autoconf /usr/bin/autoconf.bak
cp /usr/local/bin/autoconf /usr/bin/autoconf

same thing with autom4te and m4 (extract, configure, make, make install and than copy it from /usr/local/bin/xxx to /usr/bin/xxx
download links are:
https://ftp.gnu.org/pub/gnu/automake/automake-1.15.tar.gz
https://ftp.gnu.org/pub/gnu/m4/m4-1.4.18.tar.gz

After this i was able to compile php7.

4
PHP Selector / Re: Upgrade buildconf 2.63
« on: February 28, 2017, 04:32:24 PM »
Same problem here.
I even updated autoconf to 2.69, and still not working.
CentOS 6.8 x64.


5
FTP / Re: Pure-ftp Unable to switch capabilities
« on: January 21, 2016, 05:25:23 PM »
Yes it is probably a kernel issuse, but you should know which of the kernel modules should be enabled for it to work. Also, it can be done by compiling pure-ftpd with --without-capabilities option. Or if you could make it possible to choose between pure-ftp/proftp/vsftp in a panel.

6
Apache / Apache without suPHP / with DSO
« on: April 16, 2015, 10:09:59 AM »
Hello,
i would like to rebuild Apache to use DSO as PHP handler. I need it for APC to work properly, but in CWP i can rebuild only with mod_suphp.
Is there a workaround for this?
Thanks.


7
Apache / Re: APC
« on: April 16, 2015, 10:09:06 AM »
For APC to actually collect cache you need to setup Apache to use DSO as PHP handler. It will not work with either suPHP or DSO with mod_ruid2.

Pages: [1]