Problem installation on PHP 7.x Version

Get help with installation and running phpBB 3.1.x here. Please do not post bug reports, feature requests, or extension related questions here.
Ideas Centre
sioc
Registered User
Posts: 1
Joined: Thu Oct 12, 2017 9:34 pm

Re: Problem installation on PHP 7.x Version

Post by sioc » Thu Oct 12, 2017 9:38 pm

hello,

here my setting for a forum in a sub folder :

location /forums {
# phpBB uses index.htm
index index.php index.html index.htm;
try_files $uri $uri/ @rewriteapp;

location ~ \.php(/|$) {
include fastcgi_params;
fastcgi_split_path_info ^(.+\.php)(/.*)$;
fastcgi_param PATH_INFO $fastcgi_path_info;
fastcgi_param SCRIPT_FILENAME $realpath_root$fastcgi_script_name;
fastcgi_param DOCUMENT_ROOT $realpath_root;
try_files $uri $uri/ /app.php$is_args$args;
fastcgi_pass unix:/var/run/php/php7.0-fpm.sock;
}
}

location @rewriteapp {
rewrite ^(.*)$ /app.php/$1 last;
}

location /forums/install/ {
try_files $uri $uri/ @rewrite_installapp;

location ~ \.php(/|$) {
include fastcgi_params;
fastcgi_split_path_info ^(.+\.php)(/.*)$;
fastcgi_param PATH_INFO $fastcgi_path_info;
fastcgi_param SCRIPT_FILENAME $realpath_root$fastcgi_script_name;
fastcgi_param DOCUMENT_ROOT $realpath_root;
try_files $uri $uri/ /forums/install/app.php$is_args$args;
fastcgi_pass unix:/var/run/php/php7.0-fpm.sock;
}
}

location @rewrite_installapp {
rewrite ^(.*)$ /forums/install/app.php/$1 last;
}

#outside forums so the try_files is ok
location ~ \.php(/|$) {
include fastcgi_params;
fastcgi_split_path_info ^(.+\.php)(/.*)$;
fastcgi_param PATH_INFO $fastcgi_path_info;
fastcgi_param SCRIPT_FILENAME $realpath_root$fastcgi_script_name;
fastcgi_param DOCUMENT_ROOT $realpath_root;
try_files $uri $uri/ index.php$is_args$args;
fastcgi_pass unix:/var/run/php/php7.0-fpm.sock;
}

User avatar
stevemaury
Support Team Member
Support Team Member
Posts: 47782
Joined: Thu Nov 02, 2006 12:21 am
Location: The U.P.
Name: Steve
Contact:

Re: Problem installation on PHP 7.x Version

Post by stevemaury » Thu Oct 12, 2017 11:23 pm

Please start your own topic and Please fill out the Support Request Template and post it back here to enable us to assist you better.
For REALLY good and VERY inexpensive hosting CLICK HERE

All unsolicited PMs will be ignored.

Post Reply

Return to “[3.1.x] Support Forum”

Who is online

Users browsing this forum: No registered users and 25 guests