symfony2安装说明请帮忙
文档根:
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>
谢谢
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#
AND:
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>
thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
配置您的 HTTPD。 Apache 示例:
DocumentRoot "/opt/webapps/Symfony/web
或
将其放在任何位置并将 /Symfony/web 符号链接到 /your/www/path/something
Configure your HTTPD. Apache example:
DocumentRoot "/opt/webapps/Symfony/web
Or
Put it anywhere and symlink /Symfony/web to /your/www/path/something