Hi Anoop
Its working fine now :)
Here's my final config:
location /wiki {
try_files $uri $uri /wiki/index.php;
location ~ \.php$ {
fastcgi_param HTTP_PROXY "";
try_files $uri =404;
fastcgi_index index.php;
include fastcgi_params;
Hi Anoop,
What value should i set cgi.fix_pathinfo in php.ini ?
E
Le 2017-09-17 à 09:36, Anoop Alias a écrit :
Hi Etienne,
Assuming you want mediawiki to be served from /wiki/
##
server{
root /path/to/directory/excluding/wiki;
..
..
...
location /wiki/ {
try_files
Hi Etienne,
Assuming you want mediawiki to be served from /wiki/
##
server{
root /path/to/directory/excluding/wiki;
..
..
...
location /wiki/ {
try_files $uri $uri /wiki/index.php?query_string;
location ~ \.php$ {
try_files $uri =404;
fastcgi_index inde
Hi Anoop,
Not sure why, but php-fpm now returns a blank page.
Here's my error_log:
2017/09/17 09:16:02 [debug] 21872#21872: epoll add event: fd:7 op:1 ev:2001
2017/09/17 09:16:02 [debug] 21874#21874: epoll add event: fd:7 op:1 ev:2001
2017/09/17 09:16:02 [debug] 21873#21873: epoll add e
try changing
##
location = /wiki {
root /home/www/isotoperesearch.ca/wiki;
fastcgi_index index.php;
index index.php;
include fastcgi_params;
fastcgi_pass unix:/var/run/php/php7.0-fpm.sock;
}
##
to
###
Hi,
I'm trying to configure nginx with php-fpm to run mediawiki in a
distinct location (/wiki).
Here's my config:
# configuration file /etc/nginx/nginx.conf:
user www-data;
worker_processes 4;
pid /run/nginx.pid;
events {
worker_connections 512;
multi_accept on;
use epoll;
}
htt