As of May 31, 2023, we have updated our Code of Conduct.

Hot answers tagged

6 votes

Nginx/PHP-FPM long log lines get truncated

The limit of 1024 characters is hard-coded in php-fpm not nginx. If you want to go over 2048 characters you need to re-compiled both nginx and php-fpm, else only php-fpm. There is a full solution ...
Daniel Ylitalo's user avatar
5 votes

Serve a fastcgi through nginx

I ran into this same issue when I forgot to convert my CGI to a FastCGI by adding these three lines of output before the CGI's content: print "HTTP/1.0 200 OK" print "Content-type: text/plain" print "...
Thor J. Kooda's user avatar
5 votes

Nginx/PHP-FPM long log lines get truncated

I recommend using php 7.3 From https://www.php.net/ChangeLog-7.php : Fixed bug #69031 (Long messages into stdout/stderr are truncated incorrectly) - added new log related FPM configuration options:...
realization's user avatar
4 votes

Nginx/PHP-FPM long log lines get truncated

I believe you need to have a look at log_errors_max_len From here
Alexandru R's user avatar
3 votes

Using ProxyPassMatch for FastCGI, results in connection refused on port 9000

Per Chris's comment, I just wanted to add if apache/php does support socket connections (looks like if apache > 2.4.10, it can support it), you can also change to use that in your apache config. I ...
armyofda12mnkeys's user avatar
2 votes

Nginx/PHP-FPM long log lines get truncated

Open /etc/php-fpm.conf and update the value of log_limit = 4096 or higher if you like, then systemctl restart php-fpm.
Max S.'s user avatar
  • 140
2 votes

Forwarding PHP requests via ProxyPassMatch as a handler, or only when file exists

Just for the record as a one liner: AddHandler "proxy:unix:/path/to/socket.sock|fcgi://./" .php You'll need a recent Apache 2.4 (RedHat back ported that to 2.4.6) Oliver
Oliver's user avatar
  • 21
1 vote
Accepted

Gitolite 502 when trying to clone/fetch any repo over http

Well, the solution was just 1 step away. GITOLITE_HTTP_HOME parameter just needs to point to /srv/http; instead of /srv/git;. And that's it. Both gitweb and git function perfectly and respect the ...
Anon34623's user avatar
1 vote
Accepted

How to install multiple PHP versions in Virtualmin 6, Debian 9

So first you need to add repository for PHP 5.6, "here are packages directly from a maintainer of Debian's PHP packages, Ondřej Surý." $ apt-get install apt-transport-https $ curl https://packages....
Hayden Thring's user avatar
1 vote

Forwarding PHP requests via ProxyPassMatch as a handler, or only when file exists

I had same issue when file did not existed was showing "File not found." message , this fixed my issue and allowed me to setup a 404 page : <VirtualHost *:80> ---------- content -------- ...
Alin Razvan's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible