This forum is in READ-ONLY mode.
You can look around, but if you want to ask a new question, please use Stack Overflow.

[resolved] multiple websites on the same symfony2 base ?

This forum is for non code-based questions, best practises, IDEs, version control tools, work opportunities, etc.

[resolved] multiple websites on the same symfony2 base ?

by kalikey » Sat Sep 24, 2011 8:40 am

Hello,

I have a tiny webhost.

So, I was wondering if it would be a bad idea or not, to use a single Symfony2 distrib to run several and distinct websites in separate namespaces/bundles, or with different app/ directories to kepp logs and other things apart ?

With one front controller for each site in different subdirectories in web/, and a vhost pointing on each.

Thanks for your answers.
kalikey
Junior Member
 
Posts: 2
Joined: Sat Sep 24, 2011 8:11 am

Re: multiple websites on the same symfony2 base ?

by zoodler » Wed Sep 28, 2011 6:43 pm

Hello,

it's a good idea.

in my projects I use this structure:
Code: Select all
/path/sites/site1
  app/
  bin/
  web/
  src/
  vendor/ -> /path/vendor/Symfony_2.0.3/vendor (symbolic links)
/path/sites/site2
  app/
  bin/
  web/
  src/
  vendor/ -> /path/vendor/Symfony_2.0.3/vendor (symbolic links)
/path/vendor/Symfony_2.0.3/vendor
zoodler
Junior Member
 
Posts: 1
Joined: Fri Sep 23, 2011 6:36 pm

Re: multiple websites on the same symfony2 base ?

by kalikey » Fri Oct 07, 2011 12:44 pm

Thank you ;)
kalikey
Junior Member
 
Posts: 2
Joined: Sat Sep 24, 2011 8:11 am

Re: [resolved] multiple websites on the same symfony2 base ?

by CantrellOsborn » Mon Nov 07, 2011 8:27 am

This code is really very helpful and does not require any further modification's to use.


transmission flush cost
CantrellOsborn
Junior Member
 
Posts: 1
Joined: Mon Nov 07, 2011 8:19 am
Location: 1945 Sundance Ln #314, Costa Mesa, CA 92627

Re: [resolved] multiple websites on the same symfony2 base ?

by iosfaisal » Tue Nov 05, 2013 5:22 pm

Thanks for the excellent advice. We too were struggling to run multiple instances of Symfony on a single core.
iosfaisal
Junior Member
 
Posts: 11
Joined: Mon Oct 28, 2013 11:31 pm
Location: USA