简体   繁体   English

Apache上的空白PHP页面

[英]Blank PHP page on Apache

I am trying to migrate an OpenX adserver to a new server. 我正在尝试将OpenX广告服务器迁移到新服务器。 Apache, MySQL and PHP are all installed, but when accessing the site from any browser, a blank white page is displayed. Apache,MySQL和PHP均已安装,但是从任何浏览器访问该站点时,将显示空白页面。

I have tried putting a one-line .html file and a PHP file with phpinfo(); 我试过用phpinfo()将单行.html文件和PHP文件放入; in it - both work just fine, the PHP file displays all relevant information, but the default administration login page doesn't load. 其中-两者都可以正常工作,PHP文件显示所有相关信息,但是不会加载默认的管理登录页面。

The file structure and the database were copied over from the previous server (where everything worked perfectly) and I have modified the Apache Virtual Server settings to have it show to the current directory where the files are located. 文件结构和数据库是从以前的服务器(一切正常运行)复制过来的,并且我已经修改了Apache Virtual Server的设置,使其可以显示到文件所在的当前目录。

The OS on the new server is Ubuntu 14.04 LTS. 新服务器上的操作系统是Ubuntu 14.04 LTS。

Any ideas what could be going wrong? 任何想法可能出什么问题吗?

By default, PHP displays a blank page when an error occurs. 默认情况下,发生错误时,PHP将显示空白页。 Check your error.log or add the following to your PHP: 检查您的error.log或将以下内容添加到您的PHP:

error_reporting(E_ALL);
ini_set('display_errors', 1);

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM