Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [Symfony] Konfiguracja Appacha dla symfony 1.4.8
Kraxi
post
Post #1





Grupa: Zarejestrowani
Postów: 2
Pomógł: 0
Dołączył: 24.10.2010

Ostrzeżenie: (0%)
-----


Witam!

Mam SF w wersji 1.4.8, PHP w wersji 5.3.0 oraz Appache'a w wersji 2.2.11. Używam Windows 7.

Udało mi się stworzyć projekt symfony, uzyskałem coś takiego:

(IMG:http://img837.imageshack.us/img837/9681/capturehro.th.jpg)

Uploaded with ImageShack.us

Teraz mam problem z konfiguracją Appache'a

Korzystałem z różnych tutków, ale do starszych wersji symfony i do starszych wersji Appache'a.
Obecnie mój plik httpd-vhosts.conf wygląda tak
CODE
#
# Virtual Hosts
#
# If you want to maintain multiple domains/hostnames on your
# machine you can setup VirtualHost containers for them. Most configurations
# use only name-based virtual hosts so the server doesn't need to worry about
# IP addresses. This is indicated by the asterisks in the directives below.
#
# Please see the documentation at
# <URL:http://httpd.apache.org/docs/2.2/vhosts/>
# for further details before you try to setup virtual hosts.
#
# You may use the command line option '-S' to verify your virtual host
# configuration.

#
# Use name-based virtual hosting.
#
NameVirtualHost *:80

#
# VirtualHost example:
# Almost any Apache directive may go into a VirtualHost container.
# The first VirtualHost section is used for all requests that do not
# match a ServerName or ServerAlias in any <VirtualHost> block.
#
#<VirtualHost *:80>
# ServerAdmin webmaster@dummy-host.localhost
# DocumentRoot "C:/wamp/www"
# ServerName localhost
# ErrorLog "logs/localhost.log"
# CustomLog "logs/localhost-access.log" common
#</VirtualHost>

#<VirtualHost *:80>
# ServerAdmin kraxi@server.pl
# DocumentRoot "C:/wamp/www/testproject/web"
# ServerName testproject.loc
# ErrorLog "logs/testproject.loc.log"
# CustomLog "logs/dummy-host2.localhost-access.log" common
#</VirtualHost>







Zakomentowałem prawie wszystko, bo jak namieszałem to mi nawet nie odpalało tej defaultowej stronki symfony. Tam w tym pliku jest w tej chwili namieszane, potrzebuję pomocy na temat tego co tam muszę wpisać, żeby Appache ogarnął symfony.

potrzebne (moim zdaniem) dane

Projekt Symfony nazywa się testproject
Ścieżka do projektu: C:\wamp\www\testproject
Gdzie zainstalował mi się SF: C:\wamp\bin\php\php5.3.0\PEAR\symfony


Będę baaardzo wdzięczny za każdą możliwą pomoc.

pzdr!

Temat do zamknięcia, udało mi się wywalczyć samemu (IMG:style_emoticons/default/smile.gif)

dla przyszłych pokoleń można zostawić:
wszystko tak jak wcześniej, plik httpd-vhosts.conf:

CODE

#
# Virtual Hosts
#
# If you want to maintain multiple domains/hostnames on your
# machine you can setup VirtualHost containers for them. Most configurations
# use only name-based virtual hosts so the server doesn't need to worry about
# IP addresses. This is indicated by the asterisks in the directives below.
#
# Please see the documentation at
# <URL:http://httpd.apache.org/docs/2.2/vhosts/>
# for further details before you try to setup virtual hosts.
#
# You may use the command line option '-S' to verify your virtual host
# configuration.

#
# Use name-based virtual hosting.
#
NameVirtualHost *:80

Listen 127.0.0.1:80

<VirtualHost 127.0.0.1:80>
ServerName test.localhost
DocumentRoot "C:\wamp\www\testproject\web"
DirectoryIndex index.php
<Directory "C:\wamp\www\testproject\web">
AllowOverride All
Allow from All
</Directory>

Alias /sf "C:\wamp\bin\php\php5.3.0\data\symfony\web\sf"
<Directory "C:\wamp\bin\php\php5.3.0\data\symfony\web\sf">
AllowOverride All
Allow from All
</Directory>
</VirtualHost>



Go to the top of the page
+Quote Post

Posty w temacie


Reply to this topicStart new topic
2 Użytkowników czyta ten temat (2 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 24.08.2025 - 20:21