CakePHP:安装后出现空白页面
CakePHP: blank page after installation
我按照以下说明全新安装了 CakePHP:http://book.cakephp.org/3.0/en/installation.html
一切正常,除了我转到页面时:localhost/myCakeProject我得到一个没有错误的空白页面。
我已经有了此 psot 中建议的所需 PHP 版本 (7):Blank page after installing CakePHP 3
控制台中未显示任何错误。
有什么想法吗?
我遇到过同样的问题。我 运行 我的 cakephp 应用程序在 ubuntu 服务器上,带有 apache2 和 php7。我用
解决了我的问题
使用sudo a2enmod rewrite
启用mod_rewrite,然后在
中进行更改
/var/apache2/sites-available/000-default.conf
在 DocumentRoot /var/www/html
行下方添加
<Directory /var/www/html>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order Allow,Deny
Allow from all
</Directory>
为了ssl/https我做了一些上面的改动
/var/apache2/sites-available/default-ssl.conf
下行
<Directory /usr/lib/cgi-bin>
SSLOptions +StdEnvVars
</Directory>
我按照以下说明全新安装了 CakePHP:http://book.cakephp.org/3.0/en/installation.html
一切正常,除了我转到页面时:localhost/myCakeProject我得到一个没有错误的空白页面。
我已经有了此 psot 中建议的所需 PHP 版本 (7):Blank page after installing CakePHP 3
控制台中未显示任何错误。
有什么想法吗?
我遇到过同样的问题。我 运行 我的 cakephp 应用程序在 ubuntu 服务器上,带有 apache2 和 php7。我用
解决了我的问题使用sudo a2enmod rewrite
启用mod_rewrite,然后在
/var/apache2/sites-available/000-default.conf
在 DocumentRoot /var/www/html
行下方添加<Directory /var/www/html>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order Allow,Deny
Allow from all
</Directory>
为了ssl/https我做了一些上面的改动
/var/apache2/sites-available/default-ssl.conf
下行
<Directory /usr/lib/cgi-bin>
SSLOptions +StdEnvVars
</Directory>