Pomoc - Szukaj - Użytkownicy - Kalendarz
Pełna wersja: [Symfony]KONFIGURACJA APACHE w WAMP DLA SYMFONY(biała strona)
Forum PHP.pl > Forum > Przedszkole
webmaster1989
Witam czytałem tą instrukcje :
http://www.poetryofprogramming.com/pl/symf...ebsf-directory/
zrobiłem wszystko jak trzeba ,pozamieszczałem własne ścieżki do projektu i ukazuje mi się biała strona :-(

macie jakąś rade?

żółte światełko w wampie
mortus
Czyli na końcu pliku konfiguracyjnego apacha dodałeś kod ze wspomnianej strony? Chodzi o ten poniżej:
Kod
NameVirtualHost *:80

Listen 127.0.0.2:80

<VirtualHost 127.0.0.2:80>

ServerName your_application_name
DocumentRoot “c:\wamp\www\your_project\web”
DirectoryIndex index.php

<Directory “c:\wamp\www\your_project\web”>

AllowOverride All
Allow from All

</Directory>

Alias /sf “c:\wamp\bin\php\php5.2.5\PEAR\data\symfony\web\sf”

<Directory “c:\wamp\bin\php\php5.2.5\PEAR\data\symfony\web\sf”>

AllowOverride All
Allow from All

</Directory>

</VirtualHost>
Jeśli tak, to usuń linijkę z dyrektywą Listen, ponieważ taka na pewno już w którymś pliku konfiguracji istnieje, a dwóch takich nie może być. Jeżeli nie pomoże, to poszukaj katalogu logów (zazwyczaj logs) w katalogu wampa i apacha usuń plik error.log i spróbuj ponownie uruchomić wampa. Na pewno nie zadziała, ale w pliku error.log pojawią się odpowiednie informacje, które wklej tutaj.
webmaster1989
Usunełem plik error.log w folderze apache2.2.11\logs
I po zresetowaniu nie pokazuje mi się plik error.log:-(

ale mam coś takiego w wamp\logs\apache_error.log:
[Tue Aug 31 21:42:28 2010] [notice] Apache/2.2.11 (Win32) PHP/5.3.0 configured -- resuming normal operations
[Tue Aug 31 21:42:28 2010] [notice] Server built: Dec 10 2008 00:10:06
[Tue Aug 31 21:42:28 2010] [notice] Parent: Created child process 2556
[Tue Aug 31 21:42:29 2010] [notice] Child 2556: Child process is running
[Tue Aug 31 21:42:29 2010] [notice] Child 2556: Acquired the start mutex.
[Tue Aug 31 21:42:29 2010] [notice] Child 2556: Starting 64 worker threads.
[Tue Aug 31 21:42:29 2010] [notice] Child 2556: Starting thread to listen on port 80.
[Tue Aug 31 21:43:34 2010] [notice] Parent: Received shutdown signal -- Shutting down the server.
[Tue Aug 31 21:43:34 2010] [notice] Child 2556: Exit event signaled. Child process is ending.
[Tue Aug 31 21:43:35 2010] [notice] Child 2556: Released the start mutex
[Tue Aug 31 21:43:36 2010] [notice] Child 2556: All worker threads have exited.
[Tue Aug 31 21:43:36 2010] [notice] Child 2556: Child process is exiting
[Tue Aug 31 21:43:36 2010] [notice] Parent: Child process exited successfully.
[Tue Aug 31 21:43:36 2010] [notice] Apache/2.2.11 (Win32) PHP/5.3.0 configured -- resuming normal operations
[Tue Aug 31 21:43:36 2010] [notice] Server built: Dec 10 2008 00:10:06
[Tue Aug 31 21:43:36 2010] [notice] Parent: Created child process 3060
[Tue Aug 31 21:43:36 2010] [notice] Child 3060: Child process is running
[Tue Aug 31 21:43:36 2010] [notice] Child 3060: Acquired the start mutex.
[Tue Aug 31 21:43:36 2010] [notice] Child 3060: Starting 64 worker threads.
[Tue Aug 31 21:43:36 2010] [notice] Child 3060: Starting thread to listen on port 80.
[Tue Aug 31 21:43:53 2010] [notice] Parent: Received shutdown signal -- Shutting down the server.
[Tue Aug 31 21:43:53 2010] [notice] Child 3060: Exit event signaled. Child process is ending.
[Tue Aug 31 21:43:54 2010] [notice] Child 3060: Released the start mutex
[Tue Aug 31 21:43:55 2010] [notice] Child 3060: All worker threads have exited.
[Tue Aug 31 21:43:55 2010] [notice] Child 3060: Child process is exiting
[Tue Aug 31 21:43:55 2010] [notice] Parent: Child process exited successfully.
[Tue Aug 31 21:43:55 2010] [notice] Apache/2.2.11 (Win32) PHP/5.3.0 configured -- resuming normal operations
[Tue Aug 31 21:43:55 2010] [notice] Server built: Dec 10 2008 00:10:06
[Tue Aug 31 21:43:55 2010] [notice] Parent: Created child process 3472
[Tue Aug 31 21:43:55 2010] [notice] Child 3472: Child process is running
[Tue Aug 31 21:43:55 2010] [notice] Child 3472: Acquired the start mutex.
[Tue Aug 31 21:43:55 2010] [notice] Child 3472: Starting 64 worker threads.
[Tue Aug 31 21:43:55 2010] [notice] Child 3472: Starting thread to listen on port 80.
[Tue Aug 31 21:46:55 2010] [notice] Parent: Received shutdown signal -- Shutting down the server.
[Tue Aug 31 21:46:55 2010] [notice] Child 3472: Exit event signaled. Child process is ending.
[Tue Aug 31 21:46:56 2010] [notice] Child 3472: Released the start mutex
[Tue Aug 31 21:46:57 2010] [notice] Child 3472: All worker threads have exited.
[Tue Aug 31 21:46:57 2010] [notice] Child 3472: Child process is exiting
[Tue Aug 31 21:46:57 2010] [notice] Parent: Child process exited successfully.
[Tue Aug 31 22:36:47 2010] [notice] Apache/2.2.11 (Win32) PHP/5.3.0 configured -- resuming normal operations
[Tue Aug 31 22:36:47 2010] [notice] Server built: Dec 10 2008 00:10:06
[Tue Aug 31 22:36:47 2010] [notice] Parent: Created child process 1000
[Tue Aug 31 22:36:48 2010] [notice] Child 1000: Child process is running
[Tue Aug 31 22:36:48 2010] [notice] Child 1000: Acquired the start mutex.
[Tue Aug 31 22:36:48 2010] [notice] Child 1000: Starting 64 worker threads.
[Tue Aug 31 22:36:48 2010] [notice] Child 1000: Starting thread to listen on port 80.
[Thu Sep 02 19:16:26 2010] [warn] pid file C:/wamp/bin/apache/Apache2.2.11/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run?
[Thu Sep 02 19:16:26 2010] [notice] Apache/2.2.11 (Win32) PHP/5.3.0 configured -- resuming normal operations
[Thu Sep 02 19:16:26 2010] [notice] Server built: Dec 10 2008 00:10:06
[Thu Sep 02 19:16:26 2010] [notice] Parent: Created child process 3644
[Thu Sep 02 19:16:26 2010] [notice] Child 3644: Child process is running
[Thu Sep 02 19:16:26 2010] [notice] Child 3644: Acquired the start mutex.
[Thu Sep 02 19:16:26 2010] [notice] Child 3644: Starting 64 worker threads.
[Thu Sep 02 19:16:26 2010] [notice] Child 3644: Starting thread to listen on port 80.
[Thu Sep 02 19:16:35 2010] [error] [client 127.0.0.1] File does not exist: C:/wamp/www/mojprojekt
[Thu Sep 02 19:16:43 2010] [error] [client 127.0.0.1] File does not exist: C:/wamp/www/mojprojekt
[Thu Sep 02 19:16:44 2010] [error] [client 127.0.0.1] File does not exist: C:/wamp/www/mojprojekt




//no bo ja mam projekty symfony na e:\document and setting\administrator\
itd...
co mam teraz zrobić?
jak nie moze odnaleźć pliku?
mortus
No cóż... proponuję trzymać wszystkie projekty w katalogu głównym serwera apache (czyli w C:\wamp\www) i tworzyć regularnie ich kopie na dysku E:. Może warto byłoby się również zainteresować systemem kontroli wersji (np. Subversion). Natomiast jeśli chodzi o symfony, to chyba najlepiej zacząć od podstaw, czyli Getting Started with symfony.
webmaster1989
mi nie generuje na bierząco:-( niewiem czemu
spróbuje lepiej zainstalować na krasnalu....wszystko przez to że mam system na E.
:-(
destroyerr
Przecież nic nie trzeba zmieniać, symfony generuje projekt w bieżącym katalogu.
webmaster1989
mi nie generuje na bierząco:-( niewiem czemu
spróbuje lepiej zainstalować na krasnalu....wszystko przez to że mam system na E.
:-(

macie może instrukcje jak zainstalować na krasnalu symfony?

dlaczego symfony mi generuje pliki na e:\document_and_settings\Moje dokumenty\
skoro mam go zainstalowanego na c:\
destroyerr
Cytat
spróbuje lepiej zainstalować na krasnalu

symfony instaluje się na komputerze nie na krasnalu.
Cytat
wszystko przez to że mam system na E.

Partycja na której masz system nie ma znaczenia.
Cytat
macie może instrukcje jak zainstalować na krasnalu symfony?

Jeśli bierzesz się za symfony to porzuć krasnala.
Cytat
dlaczego symfony mi generuje pliki na e:\document_and_settings\Moje dokumenty\
skoro mam go zainstalowanego na c:\

Zobacz w jakim katalogu jesteś w konsoli kiedy generujesz projekt. Jeśli jest ten: e:\document_and_settings\Moje dokumenty\ to znaczy, że jednak generuje w katalogu bieżącym - czyli w tym w którym się znajdujesz.

Zacznij bardziej przykładać się do postów, które piszesz.
webmaster1989
ok dzieki.ale funkcja na konsoli CD mi nie chce przejsc do c:\ niewiem czemu:-(

dobra juz wszystko wiem : tylko mam taki błąd? gdy generuje project w symfony

Task "init-project" is not defined
destroyerr
Pewnie korzystasz z wersji 1.4 a opis masz do wersji niższych. W wersji 1.4 usunięto aliasy które zachowywały kompatybilność.
webmaster1989
dobra jest juz ok w wiekszosci sprawach.ale skonfigurowałem wszystko jak trzeba.i nadal niechce mi się wyświetlić strona.
W wampie jest brązowy-biały kolor na trayu.korzystałem z instrukcji różnych.posprawdzałem pliki i nic.Co może znaczyć ten brązowy kolor na trayu?
destroyerr
Ale to już nie jest problem z symfony a z WAMPem. Nie znam WAMPa ale być może zła konfiguracja serwera, na pewno wszystko będzie w logach.
webmaster1989
niewiem..wiem że napewno ze to problem z plikiem httpd-vhosts.conf .Ponieważ jak podmieniem ten plik na orginalny świeci mi się żółte światełko. a jak zmieniam to brązowe...mam w tym pliku takie dane:
<VirtualHost *:80>
ServerAdmin webmaster@dummy-host.localhost
DocumentRoot "C:/Program Files/Apache Software Foundation/Apache2.2/docs/dummy-host.localhost"
ServerName dummy-host.localhost
ServerAlias www.dummy-host.localhost
ErrorLog "logs/dummy-host.localhost-error.log"
CustomLog "logs/dummy-host.localhost-access.log" common
</VirtualHost>

<VirtualHost *:80>
ServerAdmin webmaster@dummy-host2.localhost
DocumentRoot "C:/Program Files/Apache Software Foundation/Apache2.2/docs/dummy-host2.localhost"
ServerName dummy-host2.localhost
ErrorLog "logs/dummy-host2.localhost-error.log"
CustomLog "logs/dummy-host2.localhost-access.log" common
</VirtualHost>

NameVirtualHost 127.0.0.2:80



<VirtualHost 127.0.0.2:80>

ServerName your_server_name
DocumentRoot “C:/wamp/www/mojproject/web”
DirectoryIndex index.php

<Directory “C:/wamp/www/mojproject/web”>

AllowOverride All
Allow from All

</Directory>

Alias /sf “c:/wamp/bin/php/php5.3.0/PEAR/data/symfony/web/sf”

<Directory “c:/wamp/bin/php/php5.3.0/PEAR/data/symfony/web/sf”>

AllowOverride All
Allow from All

</Directory>

</VirtualHost>


może wy coś tu widzicie źe napisanego?
ścieżki napewno mam dobrze ustawione

Kit z tym.POdajcie mi dobrą instrukcje jak zainstalować symfony.nie ważne na jakim serwerze.Byle żeby chodziło
Cysiaczek
Z tego, co widzę, Twój vhost ma źle ustawione ścieżki. Tak powinna wyglądać poprawna konfiguracja vhosta. Pierwsz wpis ma wskazywać na DOCUMENT ROOT serwera.
Jeśli pali się na żółto, sprawdź logi PHP, bo czasem nie startuje poprawnie ze względu na złą kolejność inicjalizacji rozszerzeń php. Powyłączaj co dziwniejsze i restartuj.

Kod
#
# 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-host2.localhost
    DocumentRoot "E:/wamp/www"
    ServerName localhost
    ErrorLog "logs/localhost.log"
    CustomLog "logs/localhost-access.log" common
</VirtualHost>

<VirtualHost *:80>
    ServerAdmin admin@server.pl
    DocumentRoot "E:\wamp\www\projekt\web"
    ServerName projekt.loc
    ErrorLog "logs/projekt.loc.log"
    CustomLog "logs/projekt.loc.log" common
</VirtualHost>



Poprawna kolejność
Kod
;extension=php_bz2.dll
extension=php_curl.dll
;extension=php_dba.dll
;extension=php_dbase.dll
;extension=php_exif.dll
;extension=php_fdf.dll
extension=php_gd2.dll
;extension=php_gettext.dll
;extension=php_gmp.dll
;extension=php_ifx.dll
;extension=php_imap.dll
;extension=php_interbase.dll
;extension=php_ldap.dll
extension=php_mbstring.dll
;extension=php_mcrypt.dll
;extension=php_mhash.dll
;extension=php_mime_magic.dll
;extension=php_ming.dll
;extension=php_msql.dll
;extension=php_mssql.dll
extension=php_mysql.dll
extension=php_mysqli.dll
;extension=php_oci8.dll
extension=php_openssl.dll
extension=php_pdo.dll
;extension=php_pdo_firebird.dll
;extension=php_pdo_mssql.dll
extension=php_pdo_mysql.dll
;extension=php_pdo_oci.dll
;extension=php_pdo_oci8.dll
;extension=php_pdo_odbc.dll
;extension=php_pdo_pgsql.dll
extension=php_pdo_sqlite.dll
;extension=php_pgsql.dll
;extension=php_pspell.dll
;extension=php_shmop.dll
;extension=php_snmp.dll
extension=php_soap.dll
extension=php_sockets.dll
;extension=php_sqlite.dll
;extension=php_sybase_ct.dll
;extension=php_tidy.dll
extension=php_xmlrpc.dll
extension=php_xsl.dll
;extension=php_zip.dll



btw. - Przenoszę na Przedszkole
To jest wersja lo-fi głównej zawartości. Aby zobaczyć pełną wersję z większą zawartością, obrazkami i formatowaniem proszę kliknij tutaj.
Invision Power Board © 2001-2025 Invision Power Services, Inc.