午夜剧场伦理_日本一道高清_国产又黄又硬_91黄色网战_女同久久另类69精品国产_妹妹的朋友在线

您的位置:首頁技術(shù)文章
文章詳情頁

mac本地基于nginx搭建wordPress的一些問題

瀏覽:206日期:2022-06-25 13:00:59

問題描述

nginx是用brew安裝的,nginx version: nginx/1.10.2

wordpress 也是最新版,是在官網(wǎng)下載的tar包解壓的

在nginx的server文件夾下設(shè)置好root、index文件之后,通過瀏覽器訪問wordpress的wp-admin/install.php,

然后出現(xiàn)了奇葩的問題,訪問的結(jié)果不是正常打開網(wǎng)頁,而是將install.php文件重新下載了一遍!!!!求教是可能的那個地方有問題。主要是沒有報錯,也不知道如何下手去搜索這種情況,于是來提問了,謝謝!

nginx.conf 配置(是默認(rèn)的沒有修改過)

#user nobody;worker_processes 1;#error_log logs/error.log;#error_log logs/error.log notice;#error_log logs/error.log info;#pidlogs/nginx.pid;events { worker_connections 1024;}http { include mime.types; default_type application/octet-stream; #log_format main ’$remote_addr - $remote_user [$time_local] '$request' ’ # ’$status $body_bytes_sent '$http_referer' ’ # ’'$http_user_agent' '$http_x_forwarded_for'’; #access_log logs/access.log main; sendfileon; #tcp_nopush on; #keepalive_timeout 0; keepalive_timeout 65; #gzip on; server {listen 8080;server_name localhost;#charset koi8-r;#access_log logs/host.access.log main;location / { root html; index index.html index.htm;}#error_page 404 /404.html;# redirect server error pages to the static page /50x.html#error_page 500 502 503 504 /50x.html;location = /50x.html { root html;}# proxy the PHP scripts to Apache listening on 127.0.0.1:80##location ~ .php$ {# proxy_pass http://127.0.0.1;#}# pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000##location ~ .php$ {# root html;# fastcgi_pass 127.0.0.1:9000;# fastcgi_index index.php;# fastcgi_param SCRIPT_FILENAME /scripts$fastcgi_script_name;# includefastcgi_params;#}# deny access to .htaccess files, if Apache’s document root# concurs with nginx’s one##location ~ /.ht {# deny all;#} } # another virtual host using mix of IP-, name-, and port-based configuration # #server { # listen 8000; # listen somename:8080; # server_name somename alias another.alias; # location / { #root html; #index index.html index.htm; # } #} # HTTPS server # #server { # listen 443 ssl; # server_name localhost; # ssl_certificate cert.pem; # ssl_certificate_key cert.key; # ssl_session_cache shared:SSL:1m; # ssl_session_timeout 5m; # ssl_ciphers HIGH:!aNULL:!MD5; # ssl_prefer_server_ciphers on; # location / { #root html; #index index.html index.htm; # } #} include servers/*;}

我額外設(shè)置的word_press.conf

server { listen 8081; server_name console.word-press.local; #綁定域名 location ~ .php$ {root /Users/lights/easyops/wordpress; #網(wǎng)站根目錄index index.php index.html index.htm; #默認(rèn)文件# root html;fastcgi_pass 127.0.0.1:9000;fastcgi_index index.php;fastcgi_param SCRIPT_FILENAME /scripts$fastcgi_script_name;includefastcgi_params; }}

問題解答

回答1:

請貼一下你的nginx相關(guān)server配置的內(nèi)容

這個問題要么是php-fpm沒有設(shè)置,要么是try_files設(shè)置錯誤

回答2:

你的PHP在Nginx里配置有問題,也就是說你本地的WEB服務(wù)器環(huán)境配置沒有配置好,Nginx根本就無法解析.php文件!建議你搭建好Mac本地的Web環(huán)境后再安裝 WordPress !

標(biāo)簽: word
相關(guān)文章:
主站蜘蛛池模板: 国产又大又粗又爽 | 老地方在线高清观看动漫 | 久久久二区| 中文字幕h | 国产精品99久久久久久成人 | 国产性―交―乱―色―情人 | 日韩欧美一区二区三区四区 | 国产免费一区二区三区四在线播放 | 亚洲日本视频在线观看 | 国产在线一二区 | 在线播放国产一区 | 成人a在线观看 | 伊人爱爱| 久久久久99精品国产片 | 国产天堂第一区 | 中文字幕一区二区不卡 | 久久久久久在线观看 | 97在线国产 | 69国产精品| 91传媒在线观看 | 国产精品免费一区二区 | 毛片在线免费播放 | 午夜激情视频在线观看 | 日韩一区二区三区四区五区六区 | 1级黄色大片儿 | 羞羞在线观看视频 | 欧美日韩精品国产 | 欧美日韩国产麻豆 | 99亚洲国产精品 | 在线免费中文字幕 | 成人免费视频一区二区三区 | 国产探花视频在线观看 | 欧美性猛交 xxxx | 日韩第六页| 久草a在线 | 免费观看黄色一级视频 | 四虎地址 | 婷婷亚洲天堂 | 狠狠干中文字幕 | 久久精品99| 午夜777|