Changeset 2876
- Timestamp:
- 11/30/06 09:05:17 (2 years ago)
- Files:
-
- trunk/doc/book/content/project_creation.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/doc/book/content/project_creation.txt
r1599 r2876 102 102 To be able to access and test the new application, the web server has to be configured. Here is an example for Apache, where a new VirtualHost is added in the `httpd.conf` file: 103 103 104 <Directory "/$data_dir/symfony/web/sf">105 AllowOverride All106 Allow from All107 </Directory>108 104 <VirtualHost *:80> 109 105 ServerName myapp.example.com 110 106 DocumentRoot "/home/steve/myproject/web" 111 107 DirectoryIndex index.php 112 Alias /sf /$data_dir/symfony/web/sf 113 108 Alias /sf /$sf_symfony_data_dir/web/sf 109 <Directory "/$sf_symfony_data_dir/web/sf"> 110 AllowOverride All 111 Allow from All 112 </Directory> 114 113 <Directory "/home/steve/myproject/web"> 115 114 AllowOverride All … … 118 117 </VirtualHost> 119 118 120 >**Note**: In the above configuration, the `$ data_dir` placeholders have to be replaced by your PEAR data directory. For example, for*nix, you should type:119 >**Note**: In the above configuration, the `$sf_symfony_data_dir` placeholders have to be replaced by your symfony data directory. For example, for a PEAR installation on *nix, you should type: 121 120 > 122 121 > Alias /sf /usr/local/lib/php/data/symfony/web/sf 123 122 > 124 >You will find more about the PEAR directories in the [installation chapter](installation.txt).125 123 126 124 Restart Apache, and that's it: the newly created application can now be called and viewed through a standard web browser at the url: