Moin,
Ich versuche im Moment mediawiki mit nginx zum laufen zu kriegen.
MySQL steht und funktioniert. PHP ist ebenfalls installiert.
Allerdings scheitert es im Moment an der richtigen Konfiguration von Nginx. Anscheinend sind die configs im Wiki nicht mehr aktuell.
Hier der Auszug fuer das mediawiki aus meiner nginx.conf:
server {
listen 80;
server_name mediawiki;
root /usr/share/webapps/mediawiki;
index index.php;
charset utf-8;
# For correct file uploads
client_max_body_size 200m; # Equal or more than upload_max_filesize in /etc/php/php.ini
client_body_timeout 60;
include mediawiki.conf;
}
Und hier meine mediawiki.conf:
location / {
index index.php;
try_files $uri $uri/ @mediawiki;
}
location @mediawiki {
rewrite ^/(.*)$ /index.php?title=$1&$args;
}
location ~ \.php5?$ {
include fastcgi.conf;
fastcgi_pass php;
}
location ~* \.(js|css|png|jpg|jpeg|gif|ico)$ {
try_files $uri /index.php;
expires max;
log_not_found off;
}
# Restrictions based on the .htaccess files
location ^~ ^/(cache|includes|maintenance|languages|serialized|tests|images/deleted)/ {
deny all;
}
location ^~ ^/(bin|docs|extensions|includes|maintenance|mw-config|resources|serialized|tests)/ {
internal;
}
location ^~ /images/ {
try_files $uri /index.php;
}
location ~ /\. {
access_log off;
log_not_found off;
deny all;
}
Als Fehler bei nginx kriege ich das hier:
nginx[16823]: 2015/01/22 13:41:35 [emerg] 16823#0: no port in upstream "php" in /etc/nginx/mediawiki.conf:10
systemd[1]: nginx.service: control process exited, code=exited status=1
systemd[1]: Failed to start A high performance web server and a reverse proxy server.