Wordpress / NGINX-Konfigurationsproblem

396
Emmanuel

Wordpress kann nicht mit meiner NGINX-Konfiguration verwendet werden. PhpMyAdmin (Fast-Cgi-Gateway) ist ok, aber beim Versuch, auf http: //junon/wordpress/wp-admin/install.php zuzugreifen, wird ein Fehlercode für HTTP 404 angezeigt, aber junon / phpmyadmin ist in Ordnung

Der Installationspfad für Worpress ist / var / www / wordpress.

Unten meine NGINX-Konfiguration

 user www-data; 

Arbeiter_Prozesse 1; pid /var/run/nginx.pid; # muss mit dem in den /etc/init.d/file.pid -Ereignissen definierten Ort übereinstimmen

http {

include /etc/nginx/mime.types;  server_tokens off; sendfile on; tcp_nopush on; server_names_hash_bucket_size 128; # this seems to be required for some vhosts  gzip on; gzip_http_version 1.1; gzip_comp_level 9; gzip_proxied any; gzip_min_length 500; gzip_disable "MSIE [1-6]\."; gzip_types text/plain text/xml text/css text/comma-separated-values text/javascript application/x-javascript application/atom+xml;  ssl_session_cache shared:SSL:10m; ssl_session_timeout 10m; 

Server{

 listen 80; server_name junon;  location / { root /var/www; }  location ~* \.(engine|inc|info|install|make|module|profile|test|po|sh|.*sql|theme|tpl(\.php)?|xtmpl)$|^(\..*|Entries.*|Repository|Root|Tag|Template)$|\.php_ { deny all; }    location /phpmyadmin {  root /usr/share/; index index.php index.html index.htm; location ~ ^/phpmyadmin/(.+\.php)$ { try_files $uri =404; root /usr/share/; fastcgi_pass 127.0.0.1:3000; fastcgi_index index.php; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; include /etc/nginx/fastcgi_params; }  location ~* ^/phpmyadmin/(.+\.(jpg|jpeg|gif|css|png|js|ico|html|xml|txt))$ { root /usr/share/; } }  location /phpMyAdmin { rewrite ^/* /phpmyadmin last; }   location /wordpress {  try_files $uri $uri/ /index.php?$args; root /var/www/wordpress/; index index.php index.html index.htm; location ~ ^/wordpress/(.+\.php)$ {  root /var/www/wordpress/; fastcgi_pass 127.0.0.1:3000; fastcgi_index index.php; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; include /etc/nginx/fastcgi_params; } } 

}

1
Ich stimme dafür, diese Frage als Off-Topic zu schließen, da Fragen zur Installation von WordPress auf die Website von WordPress.se gehören. fixer1234 vor 8 Jahren 0
Ben alors ici, auf discute de quoi ^^ !!!! pas de pb techniken der installation informatique? Emmanuel vor 8 Jahren 0

0 Antworten auf die Frage