简体   繁体   中英

Fresh Install of cakephp3.x gives blank page with PHP code of index.php

I am currently trying to install a fresh production installation of CakePHP 3.x. However, for some reason, when I run my localhost, it only gives me "dispatch( Request::createFromGlobals(), new Response() );". When I run the development version using 'bin/cake server', everything runs however.

I have set the webroot of my apache2 in both apache2/apache2.conf and apache2/sites-available/000-default.conf to the webroot directory of my application. Also, I am using ubuntu 14.04.

Does anybody have a clue what causes this? All i can think of, is that it is something with CakePHP itself, but I already redownloaded it using the composer they suggested in the book: http://book.cakephp.org/3.0/en/installation.html

Thanks in advance

找到它,缺少php mbstring扩展名:sudo apt-get install libapache2-mod-php5

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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