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$ { location ~ \.php$ {
fastcgi_split_path_info ^(.+\.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; fastcgi_index index.php;
include fastcgi_params; include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $request_filename; fastcgi_param SCRIPT_FILENAME $request_filename;

View File

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

View File

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

View File

@ -574,6 +574,13 @@
version. Unless explicitly noticed there is no need to install an version. Unless explicitly noticed there is no need to install an
intermediate release.</para> 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> <section>
<title>5.7 -&gt; 6.0</title> <title>5.7 -&gt; 6.0</title>