Symfony on Media Temple for Life 2.0 Framework

Symfony on Media Temple for Life 2.0 Framework

One of my goals is to build the heart of the Life 2.0 System using the Symfony framework. I now have a bare bones Symfony framework up and running locally and on on Media Temple. Here are the steps I took:

  1. I used this tutorial to get Symfony working in Windows XP (later I upgraded to Vista with no problem)
  2. Navigate to the root directory where you will store the website
  3. Run symfony init-project [project name] using the command prompt.
  4. Run symfony init-app [name of front end application]
  5. Defined the database schema in the file config/schema.yml.
  6. Run symfony propel-build-model.
  7. Created DB in MySQL and created the user account for access.
  8. Run symfony propel-build-model.
  9. Run symfony propel-build-sql.
  10. Run symfony propel-generate-crud frontend [phpName specified in schema.xml with lowercases] [phpName specified in schema.xml,but with first letter capitalized]
  11. Updated httpd.conf locally by adding a new virtual host.
  12. Updated the hosts file to support a custom local url. Here is how to do that in Vista.
  13. Restarted apache and made sure the Symfony install worked.
  14. Copied batch/load_data.php from ThemBid.com.
  15. Created data/fixtures/test.yml and populated with test data.
  16. Added function setPassword() to lib/model/Auth.php.
  17. Run mysql -u [username] -p [db name] < data/sql/lib.model.schema.sql
  18. Run php batch/load_data.php from the command prompt.
  19. Run symfony init-module frontend homepage to setup the framework for the homepage.
  20. Changed apps/frontend/config/routing.yml to point to the correct homepage.
  21. Started EasyEclipse for PHP.
  22. Created new PHP Project using the wizard.
  23. Used this tutorial to create the login form.
  24. Used this tutorial to secure and implement the login form.
  25. Migrated to Media Temple using the article here.
    • Make sure to take care of the pre-requisites.
  26. I had to hard copy the files from ~/pear/data/symfony/web/sf to web/sf.
  27. My config/database.yml gave me problems because I was missing a space.

These steps are derived from notes I took while working on this project. there may be steps or information missing that I did not catch. Please let me know in the comments if you have any questions.

Leave a Reply

You must be logged in to post a comment.