symfony2安装说明请帮忙

时间:2012-01-11 06:51:58

标签: symfony

doc 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# 

helloises@helloise:~/symfony2/Symfony$ ls -lah
total 48K
drwxr-xr-x  7 helloises helloises 4.0K 2012-01-11 11:09 .
drwxr-xr-x  3 helloises helloises 4.0K 2012-01-11 10:01 ..
drwxr-xr-x  2 helloises helloises 4.0K 2012-01-06 08:56 app
drwxr-xr-x  2 helloises helloises 4.0K 2012-01-06 08:56 bin
-rw-r--r--  1 helloises helloises 1.6K 2012-01-06 08:56 deps
-rw-r--r--  1 helloises helloises  830 2012-01-06 08:56 deps.lock
-rw-r--r--  1 helloises helloises 1.1K 2012-01-06 08:56 LICENSE
-rw-r--r--  1 helloises helloises 6.3K 2012-01-06 08:56 README.md
drwxr-xr-x  2 helloises helloises 4.0K 2012-01-06 08:57 src
drwxr-xr-x 13 helloises helloises 4.0K 2012-01-11 10:01 vendor
drwxr-xr-x  3 helloises helloises 4.0K 2012-01-11 11:13 web

/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>

感谢

1 个答案:

答案 0 :(得分:0)

配置HTTPD。 Apache示例:DocumentRoot "/opt/webapps/Symfony/web

或者

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