2017-07-27 84 views
0

我買了一個新的VPS,並嘗試轉移我工作的ZendApp(以前用DirectAdmin託管)。現在我nginx的安裝與PHP5和MySQL我,這是我的PHP配置 - 行之有效轉移Zend應用程序到新的VPS顯示空白頁

http://178.216.200.85/info.php

我在php.ini中打開顯示的錯誤,它顯示了我的錯誤中寫入/ _cache /文件夾洙我將它設置到777許可。錯誤解決,但我仍然有錯誤,並沒有看到任何東西在我的網站http://178.216.200.85/index.php

我沒有任何的.htaccess文件

這裏是我的/ etc/nginx的/網站-avaible /默認內容

server { 
    listen 80 default_server; 
    listen [::]:80 default_server; 

    # SSL configuration 
    # 
    # listen 443 ssl default_server; 
    # listen [::]:443 ssl default_server; 
    # 
    # Self signed certs generated by the ssl-cert package 
    # Don't use them in a production server! 
    # 
    # include snippets/snakeoil.conf; 

    root /var/www/html; 

    # Add index.php to the list if you are using PHP 
    index index.php index.html index.htm index.nginx-debian.html; 

    server_name 178.216.200.85; 

    location/{ 
     # First attempt to serve request as file, then 
     # as directory, then fall back to displaying a 404. 
     try_files $uri $uri/ =404; 
    } 


    location ~ \.php$ { 
     include snippets/fastcgi-php.conf; 
     fastcgi_pass unix:/var/run/php5-fpm.sock; 
    } 

    location ~ /\.ht { 
     deny all; 
    } 
} 

什麼我應該添加或someting在新的服務器上運行我的應用程序?

任何意見將是非常有價值的

+0

您可以添加錯誤本身與'的error_reporting(-1);'? –

+0

不知道你能分享目錄結構嗎?可能這是由於位置嘗試像這樣改變:'location/{try_files $ uri $ uri//index.php$is_args$args; } location〜\ .php $ { fastcgi_pass unix:/usr/local/zend/tmp/php-fastcgi.socket; fastcgi_param SCRIPT_FILENAME $ document_root $ fastcgi_script_name; 包括fastcgi_params; }' –

+0

@mim在哪裏我應該添加你的代碼? –

回答

0

的問題(一般錯誤:1449)當您訪問視圖的過程,例如,當你移動一個數據庫,當一個新的位置的連接發生時,觸發器,或代表另一個用戶。

您已經在某個用戶('bunga'@'localhost')下創建了一些數據,它目前不在MySQL的新服務器上。最簡單的方法是創建這個用戶。

瞭解更多 - MySQL error 1449: The user specified as a definer does not exist