我按照以下说明新安装了CakePHP:http://book.cakephp.org/3.0/en/installation.html
一切顺利,除非我去页面:localhost / myCakeProject我得到一个没有错误的空白页。
我已经在此psot中建议了所需的PHP版本(7):Blank page after installing CakePHP 3
显示控制台中没有错误。
有什么想法吗?
答案 0 :(得分:1)
我遇到过同样的问题。我用apache2和php7在ubuntu服务器上运行我的cakephp应用程序。我用
解决了我的问题使用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>