简体   繁体   English

WordPress没有运行index.php

[英]Wordpress not running index.php

When going to my server IP it displays a blank page. 转到我的服务器IP时,它将显示一个空白页。 If I log onto the server try: php index.php I get the full site content printed in the console. 如果我登录到服务器,请尝试:php index.php,我将在控制台中看到完整的网站内容。 Adding phpinfo(); 添加phpinfo(); to the top of index.php still displays the the full php information sheet. 到index.php顶部仍然显示完整的php信息表。 All files and directories are available in a web browser to the degree you would expect. 所有文件和目录都可以在Web浏览器中以您期望的程度使用。

The possible root cause recursively changing the group of the file holding all the site content. 可能的根本原因是递归更改包含所有站点内容的文件组。

How does one get the server to display the full site content again? 如何使服务器再次显示完整的网站内容?

Have you looked into the Webserver Error-Log? 您是否查看过Web服务器错误日志? For Apache2 its /var/log/apache2/error.log if not specified in vHost-Config. 对于Apache2,如果未在vHost-Config中指定,则其为/var/log/apache2/error.log。 Normaly if there is an Error which will not be shown in cause of PHP-Configuration you will see there. 通常,如果出现错误,而该错误不会在PHP配置中显示,则您将在此看到。

Also be aware that php-cli which is the "php" Command on the shell and the php-module for Webserver have to sperate Config-Files so if you have changed something to fit the requirements of Wordpress you have to do it for (on Debian) /etc/php5/cli/ (for shell) and /etc/php5/apache2/ (for http - via apache) as well! 另请注意,php-cli(这是外壳程序上的“ php”命令)和Webserver的php-module必须分配Config-Files,因此,如果您进行了一些更改以符合Wordpress的要求,则必须这样做(在Debian)/ etc / php5 / cli /(用于shell)和/ etc / php5 / apache2 /(用于http-通过apache)!

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

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