Ubuntu升级PHP不工作了,也没有错误日志

我运行apt-get update ,然后在我的Ubuntu(Homestead VM)上进行apt-get upgrade 。 从那时起,我无法访问我的PHP应用程序了。

我试图从我的应用程序访问一个txt文件,这个工程(http //…../ test.txt),但是当试图访问一个PHP文件,我得到一个空白的屏幕。 testingphp文件的内容是

 <?php echo phpinfo(); 

我不太确定在哪里看,因为我找不到任何错误消息。

我到现在为止所做的:

  • find使用的PHP.INI:find使用的PHP.INI: php -i | grep 'php.ini' php -i | grep 'php.ini'
  • 编辑PHP.INI以显示错误:

display_errors = On

display_startup_errors =开

log_errors =开

  • 检查nginxconfiguration/etc/nginx/sites-enabled/mysite.conf

     server { listen 80; server_name mysite.dev; root /home/vagrant/mysite.com/www/mysite.com/public; index index.html index.htm index.php; charset utf-8; location / { try_files $uri $uri/ /index.php?$query_string; } location = /favicon.ico { access_log off; log_not_found off; } location = /robots.txt { access_log off; log_not_found off; } access_log on; error_log /var/log/nginx/mysite.dev-error.log error; error_page 404 /index.php; sendfile off; location ~ \.php$ { fastcgi_split_path_info ^(.+\.php)(/.+)$; fastcgi_pass unix:/var/run/php5-fpm.sock; fastcgi_index index.php; include fastcgi_params; } location ~ /\.ht { deny all; } } 
    • 重新启动nginx
    • 检入/var/log/nginx/mysite.dev-error.log,但文件为空