Wednesday, December 26, 2012

How to Create Symfony project on linux box

install symfony on linux box
pear channel-discover pear.symfony-project.com
pear install symfony/symfony

Create
#mkdir -p lib/vendor
cd lib/vendor
$wget http://pear.symfony-project.com/get/symfony-1.4.20.tgz
$ tar zxpf symfony-1.4.20.tgz
$ mv symfony-1.4.20 symfony
$ rm symfony-1.4.20.tgz
$ php lib/vendor/symfony/data/bin/symfony generate:project solrtest

php symfony configure:database “mysql:host=localhost;dbname=symfony” root password
php symfony generate:app frontend

./symfony lucene:initialize frontend
./symfony lucene:create-solr-config frontend

./symfony lucene:service frontend stop
./symfony lucene:service frontend start

add entry in hosts
127.0.0.1    symfony.digcms.com

Add entry in httpd.conf
#symfony.digcms.com
<VirtualHost *:80>
ServerAdmin digcms@test.com
Servername symfony.digcms.com

DocumentRoot “/var/www/html/phptest/sfproject/web”
DirectoryIndex index.php
<Directory “/var/www/html/phptest/sfproject/web”>
AllowOverride All
Allow from All
</Directory>

Alias /sf /var/www/html/phptest/sfproject/lib/vendor/symfony/data/web/sf
<Directory “/var/www/html/phptest/sfproject/lib/vendor/symfony/data/web/sf”>
AllowOverride All
Allow from All
</Directory>
</VirtualHost>


Source : digcms[dot]com

0 comments:

Post a Comment