亚洲精品久久久中文字幕-亚洲精品久久片久久-亚洲精品久久青草-亚洲精品久久婷婷爱久久婷婷-亚洲精品久久午夜香蕉

您的位置:首頁技術文章
文章詳情頁

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

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

問題描述

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

wordpress 也是最新版,是在官網下載的tar包解壓的

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

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

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

#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/*;}

我額外設置的word_press.conf

server { listen 8081; server_name console.word-press.local; #綁定域名 location ~ .php$ {root /Users/lights/easyops/wordpress; #網站根目錄index index.php index.html index.htm; #默認文件# 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相關server配置的內容

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

回答2:

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

標簽: word
相關文章:
主站蜘蛛池模板: 故意坐公交忘穿内裤被挺进小说 | 永久在线观看www免费视频 | 国产精品亚洲第一区广西莫菁 | 久久久久久网站 | 免费一级毛片在线播放放视频 | 国产换爱交换乱理伦片的功能 | 亚洲黄色官网 | 国产91在线|亚洲 | 国产女主播真实视频在线观看 | 国精产品一区一区三区 | 亚洲综合18p | 欧美一级淫片吊带丝袜 | 国产精品麻豆综合在线 | 国产人成精品香港三级在 | 91黄视频| 色精品一区二区三区 | 色综合天天色 | 婷婷六月丁香午夜爱爱 | 成人久久久久久 | 亚洲午夜精品aaa级久久久久 | 中文字幕在线观看不卡 | 欧美一级视频免费看 | 欧美成人亚洲国产精品 | 免费在线观看黄 | 青青草这里只有精品 | 亚洲欧美一级视频 | 日韩欧美一中字暮 | 日本亚洲一区二区 | 亚洲精品国产成人99久久 | 国产精品成人影院 | 一级黄色斤 | 一级做一级爱a做片性视频视频 | 五月天丁香花婷婷视频网 | 国产拍拍视频 | 国产成人精品福利色多多 | 色播亚洲精品网站 亚洲第一 | 成人a大片高清在线观看 | 日韩中文字幕视频在线 | 日本一级毛片在线看 | www.91视频.com | 国产高清免费在线观看 |