Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
165 views
in Technique[技术] by (71.8m points)

symfony - symfony2 installation instruction help please

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

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

Configure your HTTPD. Apache example: DocumentRoot "/opt/webapps/Symfony/web

Or

Put it anywhere and symlink /Symfony/web to /your/www/path/something


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...