我在 Ubuntu 14.04 LTS 上安装 Symfony 1.4。
我对apache配置不是很熟悉。
我放了一个这样的符号链接: /var/www/symfony1_test -> /home/user/dev/symfony1_test
现在我想用 localhost:9494/frontend_dev.php 访问我的网站
所以我的虚拟主机是:
listen 127.0.0.1:9494
<VirtualHost *:9494>
DocumentRoot "/var/www/symfony1_test/web"
<Directory "/var/www/symfony1_test/web">
AllowOverride All
Require all granted
Allow from 127.0.0.1
Allow from localhost
</Directory>
Alias /sf /var/www/symfony1_test/web/lib/vendor/symfony/data/web/sf
<Directory "/var/www/symfony1_test/web/lib/vendor/symfony/data/web/sf">
AllowOverride All
Require all granted
Allow from 127.0.0.1
Allow from localhost
</Directory>
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>
但是当我进入 localhost:9494/frontend_dev.php 我有这个错误:
Unable to open the log file "/var/www/log/frontend_dev.log" for writing.
为什么 symfony 试图在 /var/www/log 而不是 /var/www/symfony1_test/log 中创建日志?
谢谢