Quantcast
Viewing all articles
Browse latest Browse all 2

How to Create Symfony project on linux box

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

Image may be NSFW.
Clik here to view.
How to Create Symfony project on linux box

How to Create Symfony project on linux box

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>

Image may be NSFW.
Clik here to view.

The post How to Create Symfony project on linux box appeared first on DIG into CMS.


Viewing all articles
Browse latest Browse all 2

Trending Articles