nginx PHP 7 config

This commit is contained in:
Roland Gruber 2017-09-08 21:10:11 +02:00
parent fb25095248
commit 29d3e2560f
4 changed files with 14 additions and 9 deletions

View File

@ -5,7 +5,7 @@ location /lam {
location ~ \.php$ {
fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_pass unix:/var/run/php5-fpm.sock;
fastcgi_pass unix:/var/run/php7-fpm.sock;
fastcgi_index index.php;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $request_filename;

View File

@ -4,10 +4,8 @@ location /lam {
autoindex off;
location ~ \.php$ {
fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_pass unix:/var/run/php5-fpm.sock;
fastcgi_index index.php;
include fastcgi_params;
include snippets/fastcgi-php.conf;
fastcgi_pass unix:/var/run/php/php7.0-fpm.sock;
fastcgi_param SCRIPT_FILENAME $request_filename;
}

View File

@ -403,14 +403,14 @@ semodule -i httpdlocal.pp</programlisting>
<programlisting>server {
...
include /etc/ldap-account-manager/lam.nginx.conf;
include /etc/ldap-account-manager/nginx.conf;
...
}</programlisting>
<para>The included config file uses PHP 5. In case you run with PHP 7
please update the parameter "fastcgi_pass" to
"/var/run/php7-fpm.sock".</para>
<para>The included config file uses PHP 7.0. In case you run with PHP
7.1 or PHP 5 please update the parameter "fastcgi_pass" to
"/var/run/php/php7.1-fpm.sock".</para>
</section>
<section>

View File

@ -574,6 +574,13 @@
version. Unless explicitly noticed there is no need to install an
intermediate release.</para>
<section>
<title>6.0 -&gt; 6.1</title>
<para>DEB+RPM configuration for nginx uses PHP 7 by default. Please
see /etc/ldap-account-manager/nginx.conf if you use PHP 5.</para>
</section>
<section>
<title>5.7 -&gt; 6.0</title>