Development

Documentation/de_DE/getting_started/1_2/04-Symfony-Installation (diff)

You must first sign up to be able to contribute.

Changes from Version 1 of Documentation/de_DE/getting_started/1_2/04-Symfony-Installation

Show
Ignore:
Author:
Think (IP: 213.209.76.200)
Timestamp:
08/06/09 18:05:56 (8 years ago)
Comment:

Seite erstellt

Legend:

Unmodified
Added
Removed
Modified
  • Documentation/de_DE/getting_started/1_2/04-Symfony-Installation

    v0 v1  
     1Übersetzung von [http://www.symfony-project.org/getting-started/1_2/en/04-Symfony-Installation Getting Started with symfony] 
     2 
     3{{{ 
     4#!WikiMarkdown 
     5# Der Start mit symfony 
     6 
     7## Symfony Installation 
     8 
     9Project Directory 
     10Before installing symfony, you first need to create a directory that will host all the files related to your project: 
     11 
     12$ mkdir -p /home/sfproject 
     13$ cd /home/sfproject 
     14Or on Windows: 
     15 
     16c:\> mkdir c:\dev\sfproject 
     17c:\> cd c:\dev\sfproject 
     18Windows users are advised to run symfony and to setup their new project in a path which contains no spaces. Avoid using the Documents and Settings directory, including anywhere under My Documents. 
     19 
     20If you create the symfony project directory under the web root directory, you won't need to configure your web server. Of course, for production environments, we strongly advise you to configure your web server as explained in the web server configuration section. 
     21 
     22Symfony Installation 
     23Create a directory to host the symfony framework library files: 
     24 
     25$ mkdir -p lib/vendor 
     26Now, you need to install symfony. As the symfony framework has several stable branches, you need to choose the one you want to install by reading the installation page on the symfony website. 
     27 
     28Go to the installation page for the version you have just chosen, symfony 1.2 for instance. 
     29 
     30Under the "Source Download" section, you will find the archive in .tgz or in .zip format. Download the archive, put it under the freshly created lib/vendor/ directory and un-archive it: 
     31 
     32$ cd lib/vendor 
     33$ tar zxpf symfony-1.2.2.tgz 
     34$ mv symfony-1.2.2 symfony 
     35$ rm symfony-1.2.2.tgz 
     36Under Windows, unzipping the zip file can be achieved using Windows Explorer. After you rename the directory to symfony, there should be a directory structure similar to c:\dev\sfproject\lib\vendor\symfony. 
     37 
     38If you use Subversion, it is even better to use the svn:externals property to embed symfony into your project in the lib/vendor/ directory, which benefits from the bug fixes made in the stable branch automatically: 
     39 
     40http://svn.symfony-project.com/branches/1.2/ 
     41Check that symfony is correctly installed by using the symfony command line to display the symfony version (note the capital V): 
     42 
     43$ cd ../.. 
     44$ php lib/vendor/symfony/data/bin/symfony -V 
     45On Windows: 
     46 
     47c:\> cd ..\.. 
     48c:\> php lib\vendor\symfony\data\bin\symfony -V 
     49If you are curious about what this command line tool can do for you, type symfony to list the available options and tasks: 
     50 
     51$ php lib/vendor/symfony/data/bin/symfony 
     52On Windows: 
     53 
     54c:\> php lib\vendor\symfony\data\bin\symfony 
     55The symfony command line is the developer's best friend. It provides a lot of utilities that improve your productivity for day-to-day activities like cleaning the cache, generating code, and much more. 
     56}}} 
     57 
     58zurück zu: [wiki:Documentation/de_DE/getting_started/1_2 Übersicht "Der Start mit symfony"][[BR]] 
     59zurück zu: [wiki:Documentation/de_DE Deutsche Startseite]