【发布时间】:2018-05-20 09:22:35
【问题描述】:
我想在线托管我的 symfony 4 应用程序,我将 appache 服务器配置为重定向到 index.php 文件
当我转到服务器地址时,这是我的错误 ( ! ) 解析错误:语法错误,意外的 '?'在第 18 行的 C:\wamp64\www\test\public\index.php 中
配置虚拟主机
<VirtualHost *:80>
ServerName domain.tld
ServerAlias www.domain.tld
DocumentRoot C:/wamp64/www/test/public
<Directory C:/wamp64/www/test/public>
AllowOverride All
Order Allow,Deny
Allow from All
</Directory>
index.php 文件是 symfony 生成的基本文件 谢谢
【问题讨论】:
-
服务器上至少需要 php 7.1.3。您的版本较旧。
标签: symfony deployment hosting