2017-07-27 80 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