安装Wampserver,composer和Symfony之后。看来我无法让它发挥作用。 config.php文件显示了我无法在任何地方找到帮助的内容:
Major problems
Major problems have been detected and must be fixed before continuing:
getHelpHtml() ?>
Recommendations
Additionally, toTo enhance your Symfony experience, it’s recommended that you fix the following:
getHelpHtml() ?>
hasPhpIniConfigIssue()): ?>
* getPhpIniConfigPath()): ?> Changes to the php.ini file must be done in "getPhpIniConfigPath() ?>". To change settings, create a "php.ini".
当绕过配置并转到欢迎页面时,我得到一个空白页面:
loadClassCache(); $request = Request::createFromGlobals(); $response = $kernel->handle($request); $response->send(); $kernel->terminate($request, $response);
任何反馈都会受到高度赞赏。我被卡住了。
答案 0 :(得分:0)
以防它可以帮助其他人: 我通过绝对路径(C:/ wamp / www / Symfony ....)打开config.php文件,而不是使用localhost / Symfony .... 一个新手问题终于解决了。希望它对某人有所帮助。
答案 1 :(得分:0)
你的Apache服务器不解释PHP代码! (在浏览器中查看页面的html代码)
在Arch Linux中,请按照以下说明https://wiki.archlinux.org/index.php/Apache_HTTP_Server#PHP编辑 /etc/httpd/conf/httpd.conf
LoadModule php5_module modules/libphp5.so
Include conf/extra/php5_module.conf
PS :更改mpm
以避免线程安全错误
#LoadModule mpm_event_module modules/mod_mpm_event.so
LoadModule mpm_prefork_module modules/mod_mpm_prefork.so