Visual Arts Press Blog

The all knowing, ever present VAP knowledge base

Archive for September, 2013

Installing Symfony2

without comments

  1. In Terminal, navigate to the location of your current sva.local directory.  Backup one level and create a new directory for the new site (“sva_v2”).
  2. cd sva_v2
  3. git init
  4. git remote add origin https://funnygarbage.unfuddle.com/git/funnygarbage_sva2/
  5. git config remote.unfuddle.push refs/heads/master:refs/heads/master
  6. git pull origin master
  7. Follow Symfony2 Install Instructions
  8. curl -s https://getcomposer.org/installer | php
  9. php ./composer.phar update
  10. Update Apache httpd.conf
  11. <VirtualHost *>
        ServerName sva2.local
    
        DocumentRoot /Users/ec/Sites/sf/sva_v2/web
        <Directory /Users/ec/Sites/sf/sva_v2/web>
            # enable the .htaccess rewrites
            AllowOverride All
            Order allow,deny
            Allow from All
        </Directory>
    
        ErrorLog /opt/local/apache2/logs/sva2.log
        CustomLog /opt/local/apache2/logs/sva2.custom.log combined
    </VirtualHost>
  12. Update /etc/hosts
  13. from http://symfony.com/doc/current/book/installation.html
  14. 1
    2
    3
    4
    5
    6
    $ rm -rf app/cache/*
    $ rm -rf app/logs/*
    
    $ APACHEUSER=`ps aux | grep -E '[a]pache|[h]ttpd|[_]www|[w]ww-data' | grep -v root | head -1 | cut -d\  -f1`
    $ sudo chmod +a "$APACHEUSER allow delete,write,append,file_inherit,directory_inherit" app/cache app/logs
    $ sudo chmod +a "`whoami` allow delete,write,append,file_inherit,directory_inherit" app/cache app/logs
  15. from http://stackoverflow.com/questions/9931127/symfony-2-working-with-assets
  16. app/console assets:install web --symlink
  17. 10.103.0.4  sva2.local
  18. restart apache
  19. http://sva2.local/

Written by ecorriel

September 18th, 2013 at 4:04 pm

Posted in web