Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8347741
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T07:27:38+00:00 2026-06-09T07:27:38+00:00

I have a Symfony2 core, which is used for domain A and domain B.

  • 0

I have a Symfony2 core, which is used for domain A and domain B. But, if I update the core, I need to update two times, because I don’t know how to configure only one core, with multiple domains with theirs configs/databases.

Suggestions?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T07:27:39+00:00Added an answer on June 9, 2026 at 7:27 am

    Make a copy of the “web” directory into the “public_html” folder on each domain (assuming you are running Apache on Linux)

    This “web” directory contains the front controllers of your site (app.php and app_dev.php), locate them and edit them on your favorite text editor. Locate this lines:

    require_once __DIR__.'/../app/bootstrap.php.cache';
    require_once __DIR__.'/../app/AppKernel.php';
    

    and change the route to the actual relative path where your core is located. It could be something like this:

    require_once __DIR__.'/../the_core_is_here/app/bootstrap.php.cache';
    require_once __DIR__.'/../the_core_is_here/app/AppKernel.php';
    

    This is flexible, and can be organized as you like, but make sure this two lines have the correct path

    Keep in mind that all the assets (JS, CSS, images …) you include into your HTML are relative to the front controller location, so you will need to link them using the full url of the domain name where they reside or copy them also to the B domain or use assetic

    At the end you will have something like:

    /
    .. home
    .. .. DOMAINA
    .. .. .. public_html
    .. .. .. .. app.php
    .. .. .. .. img
    .. .. .. .. .. image.png
    .. .. DOMAINB
    .. .. .. public_html
    .. .. .. .. app.php
    .. .. .. .. img
    .. .. .. .. .. image.png
    .. .. the_core_is_here
    .. .. .. app
    .. .. .. src
    .. .. .. bin
    .. .. .. vendor
    

    Now you should have 2 entry points for your application. You can even put different CSS and images on each to give them different aspect.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have multiple symfony2 applications which share common entities, but use different database settings.
I have an issue in that a Symfony2 form can pass validation but still
I have a join-table which is created by using @ORM\ManyToMany annotation in Symfony2/Doctrine. It
We have bundles for Facebook & Twitter authorization for a Symfony2 app. But what
I have a Symfony2's form with two fields: A and B. I want to
I have two bundles with two entity’s. I need to create a manyToMany relationship
I have a Symfony2 Web application which requires user login to perform such useful
I have read the symfony2 docs about tagged services But i could not understand
I have a symfony2 project and I would like to create route (prefix) which
I'm using symfony2 and have accessed an entity using a doctrine query, which I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.