![]() |
![]() ![]() |
![]() |
![]()
Post
#1
|
|
Grupa: Zarejestrowani Postów: 89 Pomógł: 0 Dołączył: 19.11.2009 Ostrzeżenie: (10%) ![]() ![]() |
Jestem na tej stronie przy instalacji symfony:
http://www.symfony-project.org/getting-sta...r-Configuration Nie działa mi to poleceie: CODE W Windowsie, potrzebujesz zamienić linię Alias na coś takiego: Alias /sf "c:\dev\sfproject\lib\vendor\symfony\data\web\sf" Oraz /home/sfproject/web powinno być zmienione na: c:\dev\sfproject\web Co ja mam zrobić żeby to zadzaiałało ? Po wpisaniu do konsoli wyskakuje mi coś takiego: CODE Nazwa 'alias' nie jest rozpoznawalna jako polecenie wewnętrzne lub zewnętrzne , program wykonywalny lub plik wsadowy Polecenie php w konsoli mi działa |
|
|
![]()
Post
#2
|
|
![]() Grupa: Zarejestrowani Postów: 6 476 Pomógł: 1306 Dołączył: 6.08.2006 Skąd: Kraków Ostrzeżenie: (0%) ![]() ![]() |
Cytat W Windowsie, potrzebujesz zamienić linię Alias na coś takiego: To raczej odnosi się do ustawień serwera HTTP (np. Apache).Alias /sf "c:\dev\sfproject\lib\vendor\symfony\data\web\sf" Widzisz... symfony ma w swoich bebechach trochę kodu HTML/CSS/JS (domyślne strony NOT FOUND, FORBIDDEN, css dla stron generowanych admin-generatorem itp. itd.). W kodzie HTML takiej strony masz potem: Kod <link rel="stylesheet" type="text/css" href="/sf/......" /> Katalog /sf może nie istnieć bezpośrednio w katalogu public_html Twojego serwera, dlatego też tworzysz alias, by poinformować serwer, że to co się odnosi do katalogu /sf (mojastrona.pl/sf/...) było tak naprawdę odniesiem do np.: /home/mojastrona/application/data/web na serwerze (gdzie public_html to np.: /home/mojastrona/public_html)Cytat Polecenie php w konsoli mi działa Powinieneś dodać ścieżkę do folderu zawierającego program php.exe (jak rozumiem mówimy o windowsie) do zmiennej systemowej PATH - jak to zrobić to już sobie wygoogleaj.
|
|
|
![]()
Post
#3
|
|
Grupa: Zarejestrowani Postów: 89 Pomógł: 0 Dołączył: 19.11.2009 Ostrzeżenie: (10%) ![]() ![]() |
Ok dzieki za podpowiedz z tym alias.
teraz znowu mi apach nie chce dzialac. Pracuje na windows xp i chce skonfigurowac plik httpd.conf. Konfiguruje na podstawiej tej strony: http://www.symfony-project.org/getting-sta...r-Configuration mój skonfigurowany plik który nie dziala ![]() CODE # # Based upon the NCSA server configuration files originally by Rob McCool. # # This is the main Apache server configuration file. It contains the # configuration directives that give the server its instructions. # See <URL:http://httpd.apache.org/docs-2.2/> for detailed information about # the directives. # # Do NOT simply read the instructions in here without understanding # what they do. They're here only as hints or reminders. If you are unsure # consult the online docs. You have been warned. # # The configuration directives are grouped into three basic sections: # 1. Directives that control the operation of the Apache server process as a # whole (the 'global environment'). # 2. Directives that define the parameters of the 'main' or 'default' server, # which responds to requests that aren't handled by a virtual host. # These directives also provide default values for the settings # of all virtual hosts. # 3. Settings for virtual hosts, which allow Web requests to be sent to # different IP addresses or hostnames and have them handled by the # same Apache server process. # # Configuration and logfile names: If the filenames you specify for many # of the server's control files begin with "/" (or "drive:/" for Win32), the # server will use that explicit path. If the filenames do *not* begin # with "/", the value of ServerRoot is prepended -- so "logs/foo.log" # with ServerRoot set to "C:/WebServ/apache2" will be interpreted by the # server as "C:/WebServ/apache2/logs/foo.log". # # NOTE: Where filenames are specified, you must use forward slashes # instead of backslashes (e.g., "c:/apache" instead of "c:\apache"). # If a drive letter is omitted, the drive on which Apache.exe is located # will be used by default. It is recommended that you always supply # an explicit drive letter in absolute paths, however, to avoid # confusion. # ### Section 1: Global Environment # # The directives in this section affect the overall operation of Apache, # such as the number of concurrent requests it can handle or where it # can find its configuration files. # # # ServerRoot: The top of the directory tree under which the server's # configuration, error, and log files are kept. # # NOTE! If you intend to place this on an NFS (or otherwise network) # mounted filesystem then please read the LockFile documentation (available # at <URL:http://httpd.apache.org/docs-2.2/mod/mpm_common.html#lockfile>); # you will save yourself a lot of trouble. # # Do NOT add a slash at the end of the directory path. # ServerRoot "C:/WebServ/apache2" # # ScoreBoardFile: File used to store internal server process information. # If unspecified (the default), the scoreboard will be stored in an # anonymous shared memory segment, and will be unavailable to third-party # applications. # If specified, ensure that no two invocations of Apache share the same # scoreboard file. The scoreboard file MUST BE STORED ON A LOCAL DISK. # #ScoreBoardFile logs/apache_runtime_status # # PidFile: The file in which the server should record its process # identification number when it starts. # #PidFile logs/httpd.pid # # Timeout: The number of seconds before receives and sends time out. # Timeout 300 # Be sure to only have this line once in your configuration NameVirtualHost 127.0.0.1:8080 # This is the configuration for your project # This is the configuration for your project #<VirtualHost 127.0.0.1:80> # ServerName www.myproject.com.localhost # #</VirtualHost> # # KeepAlive: Whether or not to allow persistent connections (more than # one request per connection). Set to "Off" to deactivate. # KeepAlive On # # MaxKeepAliveRequests: The maximum number of requests to allow # during a persistent connection. Set to 0 to allow an unlimited amount. # We recommend you leave this number high, for maximum performance. # MaxKeepAliveRequests 100 # # KeepAliveTimeout: Number of seconds to wait for the next request from the # same client on the same connection. # KeepAliveTimeout 15 ## ## Server-Pool Size Regulation (MPM specific) ## # WinNT MPM # ThreadsPerChild: constant number of worker threads in the server process # MaxRequestsPerChild: maximum number of requests a server process serves <IfModule mpm_winnt.c> ThreadsPerChild 250 MaxRequestsPerChild 0 </IfModule> # # Listen: Allows you to bind Apache to specific IP addresses and/or # ports, instead of the default. See also the <VirtualHost> # directive. # # Change this to Listen on specific IP addresses as shown below to # prevent Apache from glomming onto all bound IP addresses (0.0.0.0) # #Listen 12.34.56.78:80 #WebServ:Listen - ODDZIELENIE TEJ LINI OD PONIZSZEJ GROZI ZŁYM DZIAŁANIEM PROGRAMU!!! Listen 127.0.0.1:8080 <VirtualHost 127.0.0.1:8080> DocumentRoot "/home/sfproject/web" DirectoryIndex index.php <Directory "/home/sfproject/web"> AllowOverride All Allow from All </Directory> Alias /sf /sfproject/lib/vendor/symfony/data/web/sf <Directory "/sfproject/lib/vendor/symfony/data/web/sf"> AllowOverride All Allow from All </Directory> </VirtualHost> Mółby mi ktoś skonfigurowac go tak jak powinnien wygladac struktura moich plików jest zrobiona taka jak na stronie instalacyjnej symfony i podesłać ten plik na adres michaldaro@gmail.com. Bardzo proszę |
|
|
![]()
Post
#4
|
|
![]() Grupa: Zarejestrowani Postów: 317 Pomógł: 58 Dołączył: 6.11.2005 Ostrzeżenie: (0%) ![]() ![]() |
Popraw ścieżki na końcu pliku w sekcji <VirtualHost>. Korzystasz z WinXP, a ścieżki zostawiłeś w formacie Unix. Podaj tam lokalizacje katalogów na Twoim dysku, podobnie jak to jest w tym miejscu:
Kod ServerRoot "C:/WebServ/apache2" Inaczej jak to ma zadziałać? -------------------- |
|
|
![]() ![]() |
![]() |
Wersja Lo-Fi | Aktualny czas: 14.08.2025 - 00:52 |