1-33
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
Symfony2 – Franz Jordán 2011<br />
src/<br />
...<br />
vendor/<br />
...<br />
web/<br />
app.php<br />
...<br />
Updating Vendors<br />
Finally, if you downloaded the archive "without vendors", install the vendors by running the<br />
following command from the command line:<br />
php bin/vendors install<br />
This command downloads all of the necessary vendor libraries - including Symfony itself - into<br />
thevendor/ directory.<br />
Configuration and Setup<br />
At this point, all of the needed third-party libraries now live in the vendor/ directory. You also<br />
have a default application setup in app/ and some sample code inside the src/ directory.<br />
Symfony2 comes with a visual server configuration tester to help make sure your Web server and<br />
PHP are configured to use Symfony. Use the following URL to check your configuration:<br />
http://localhost/Symfony/web/config.php<br />
If there are any issues, correct them now before moving on.<br />
Setting up Permissions<br />
One common issue is that the app/cache and app/logs directories must be writable both by the<br />
web server and the command line user. On a UNIX system, if your web server user is different<br />
from your command line user, you can run the following commands just once in your project to<br />
ensure that permissions will be setup properly. Change www-data to the web server user<br />
and yourname to your command line user:<br />
1. Using ACL on a system that supports chmod +a<br />
Many systems allow you to use the chmod +a command. Try this first, and if you get an error -<br />
try the next method:<br />
rm -rf app/cache/*<br />
rm -rf app/logs/*<br />
sudo chmod +a "www-data allow<br />
delete,write,append,file_inherit,directory_inherit" app/cache app/logs<br />
31