Good evening everybody,
I'm currently migrating my instance of Dokuwiki ("Weatherwax") from Apache and "classic" PHP5 to Nginx and PHP-fpm.
After some minor problems that needed to be fixed the Installation went smoothly, and now everything is set up. I only have one problem, that is - no images are shown. No icons in the editor, no icons in the interface. I checked the folder where the files should be and they are there, the access rights are fine too.
Searching for the problem on the Internet did not bring up much except some older bugs and this
link:
I have seen PHP settings cause DokuWiki to stop displaying images. For example, if we turn on FastCGI PHP here, the images top displaying. Has anything changed with the hosting environment recently?
My nginx configuration looks like this:
server {
listen 443;
server_name censored;
ssl on;
ssl_certificate /usr/local/etc/nginx/server.crt;
ssl_certificate_key /usr/local/etc/nginx/server.key;
ssl_session_timeout 5m;
ssl_protocols SSLv2 SSLv3 TLSv1;
ssl_ciphers HIGH:!aNULL:!MD5;
ssl_prefer_server_ciphers on;
location / {
index /doku.php index.html index.htm index.php;
auth_basic "Restricted";
auth_basic_user_file /usr/local/www/nginx/wiki/.htpasswd;
}
location ~ \.php$ {
try_files $uri =404;
fastcgi_split_path_info ^(.+\.php)(/.+)$;
root /usr/local/www/nginx/wiki;
index doku.php;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME /usr/local/www/nginx/wiki$fastcgi_script_name;
include fastcgi_params;
}
# serve static files
location ~ ^/dokuwiki/lib/ {
root /usr/local/www/nginx/wiki/lib; #adapt if needed
expires 30d;
}
location ~ ^/dokuwiki/conf/ { deny all; }
location ~ ^/dokuwiki/data/ { deny all; }
location ~ /\.ht { deny all; }
}
Has anybody got any idea, what the problem could be?