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:
- I used this tutorial to get Symfony working in Windows XP (later I upgraded to Vista with no problem)
- Navigate to the root directory where you will store the website
- Run
symfony init-project [project name]using the command prompt. - Run
symfony init-app [name of front end application] - Defined the database schema in the file
config/schema.yml. - Run
symfony propel-build-model. - Created DB in MySQL and created the user account for access.
- Run
symfony propel-build-model. - Run
symfony propel-build-sql. - Run
symfony propel-generate-crud frontend [phpName specified in schema.xml with lowercases] [phpName specified in schema.xml,but with first letter capitalized] - Updated
httpd.conflocally by adding a new virtual host. - Updated the
hostsfile to support a custom local url. Here is how to do that in Vista. - Restarted apache and made sure the Symfony install worked.
- Copied
batch/load_data.phpfrom ThemBid.com. - Created
data/fixtures/test.ymland populated with test data. - Added function
setPassword()tolib/model/Auth.php. - Run
mysql -u [username] -p [db name] < data/sql/lib.model.schema.sql - Run
php batch/load_data.phpfrom the command prompt. - Run
symfony init-module frontend homepageto setup the framework for the homepage. - Changed
apps/frontend/config/routing.ymlto point to the correct homepage. - Started EasyEclipse for PHP.
- Created new PHP Project using the wizard.
- Used this tutorial to create the login form.
- Used this tutorial to secure and implement the login form.
- Migrated to Media Temple using the article here.
- Make sure to take care of the pre-requisites.
- I had to hard copy the files from
~/pear/data/symfony/web/sftoweb/sf. - 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.
You must be logged in to post a comment.

Leave a Reply