Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/dart/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
symfony2安装说明请提供帮助_Symfony - Fatal编程技术网

symfony2安装说明请提供帮助

symfony2安装说明请提供帮助,symfony,Symfony,文档根目录: root@helloise:/var/www/symfony2# ls -lah total 8.0K drwxr-xr-x 2 root root 4.0K 2012-01-11 10:04 . drwxr-xr-x 6 root root 4.0K 2012-01-11 09:52 .. lrwxrwxrwx 1 root root 36 2012-01-11 10:04 web -> /home/helloises/symfony2/Symfony/web root

文档根目录:

root@helloise:/var/www/symfony2# ls -lah
total 8.0K
drwxr-xr-x 2 root root 4.0K 2012-01-11 10:04 .
drwxr-xr-x 6 root root 4.0K 2012-01-11 09:52 ..
lrwxrwxrwx 1 root root   36 2012-01-11 10:04 web -> /home/helloises/symfony2/Symfony/web
root@helloise:/var/www/symfony2# 
以及:

/etc/apache2/httpd.conf:

<VirtualHost *:80>
DocumentRoot "/home/helloises/symfony2/Symfony/web"
DirectoryIndex index.php
<Directory "/home/helloises/symfony2/Symfony/web">
  AllowOverride All
  Allow from All
</Directory>

Alias /sf /home/helloises/symfony2/Symfony/...
<Directory "/home/helloises/symfony2/Symfony/....">
  AllowOverride All
  Allow from All
</Directory>
</VirtualHost>

DocumentRoot“/home/helloises/symfony2/Symfony/web”
DirectoryIndex.php
允许超越所有
通融
别名/sf/home/helloises/symfony2/Symfony/。。。
允许超越所有
通融

谢谢

配置您的HTTPD。Apache示例:
DocumentRoot”/opt/webapps/Symfony/web


把它放在任何地方,然后symlink/Symfony/web到/your/www/path/something

我已经安装了git,因此将打开“无供应商”的包装“下载:)我把它拆开,制作了符号链接。我正在阅读自述文件,可以在线检查我的配置:。我安装了一个404,但我现在不明白你的问题。如果您可以访问config.php,那么就可以了。试试看,我做不到!我在这两个方面都遇到404错误:在这台服务器上找不到请求的URL/symfony/symfony/web/apps_dev.php。我有一个子目录symfony,我在其中创建并解压缩:(
$ls-lah
您的文档根目录请回答这是个问题吗?:/i编辑了这篇文章..起初是个问题
<VirtualHost *:80>
DocumentRoot "/home/helloises/symfony2/Symfony/web"
DirectoryIndex index.php
<Directory "/home/helloises/symfony2/Symfony/web">
  AllowOverride All
  Allow from All
</Directory>

Alias /sf /home/helloises/symfony2/Symfony/...
<Directory "/home/helloises/symfony2/Symfony/....">
  AllowOverride All
  Allow from All
</Directory>
</VirtualHost>