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 ...
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 "...
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:...
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
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 ...
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.
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
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 ...
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....
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 --------
...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
fcgi × 54php × 21
nginx × 18
apache-2.2 × 9
apache-2.4 × 8
php-fpm × 7
fastcgi × 7
lighttpd × 5
mod-fcgid × 5
git × 4
500-error × 4
httpd × 3
django × 3
centos × 2
debian × 2
docker × 2
web-server × 2
cgi × 2
gentoo × 2
gitolite × 2
windows × 1
ubuntu × 1
ssl × 1
email × 1
permissions × 1