2012-09-05 53 views
0

我嘗試將一臺服務器上的apache從一臺服務器遷移到另一臺服務器上的nginx。wp-admin頁面只輸出部分html

首頁和文章都很好(使用固定鏈接)。 wp-login.php很好。但是,/可溼性粉劑管理員只在

這裏後的部分輸出部分HTML,停止的地方就是我的nginx的配置:

server { 
     listen 80; ## listen for ipv4; this line is default and implied 
     listen [::]:80; ## listen for ipv6 

     root /home/someblog/www; 
     index index.php index.html index.htm; 

     #this isn't really example.com ;) 
     server_name example.com; 

location = /favicon.ico { 
       log_not_found off; 
       access_log off; 
     } 

     location = /robots.txt { 
       allow all; 
       log_not_found off; 
       access_log off; 
     } 

     location/{ 
       # This is cool because no php is touched for static content. 
       # include the "?$args" part so non-default permalinks doesn't break when using query string 
       try_files $uri $uri/ /index.php?$args; 
     } 

     location ~* \.(js|css|png|jpg|jpeg|gif|ico)$ { 
       expires max; 
       log_not_found off; 
     } 

     # I tried commenting this as well 
     rewrite /wp-admin$ $scheme://$host$uri/ permanent; 

     # pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000 
     # 
     location ~ \.php$ { 
       try_files $uri =404; 
       fastcgi_split_path_info ^(.+\.php)(/.+)$; 
       fastcgi_pass unix:/tmp/php5-fpm.sock; 
       fastcgi_index index.php; 
       include fastcgi_params; 
     } 
     # deny access to .htaccess files, if Apache's document root 
     # concurs with nginx's one 
     # 
     location ~ /\.ht { 
       deny all; 
     } 
} 

回答

0

是因爲沒有安裝PHP5捲曲...的apt-get安裝php5-curl修復了它;)