I want to host multiple Symfony2 based websites under one root (server). Would it be possible to share the symfony own files? (vendors etc.). Does someone know a tutorial? Is it hard to manage? AFAIK a Symfony installation has about 600MB and I don't want to save this in a redundant manner ..
Is it possible to share an Symfony2 installation (multiple websites [domains] on one server)
3.8k Views Asked by NaN At
2
There are 2 best solutions below
2
Benjamin Dubois
On
Are you talking about the framework ? If yes, you just can move the folder anywhere on your server (let's say '/usr/local/symfony') and from your sites, just load the autoloader from this directory.
Check out this page of the documentation for more info (in the "Installation Verification" part).
If you want to use the same application for all your websites, it has to be design for that...
Related Questions in PHP
- How to add the dynamic new rows from my registration form in my database?
- Issue in payment form gateway
- How to create a facet for WP gridbuilder that displays both parent and child custom fields?
- Function in anonymous Laravel Blade component
- How to change woocomerce or full wordpress currency with value from USD to AUD
- General questions about creating a custom theme Moodle CMS
- How to add logging to an abstract class in php
- error 500 on IIS FastCGI but no clue despite multiple error loggings activated
- Composer installation fails and reverts ./composer.json and ./composer.lock to original content
- How to isolate PHP apps from each other on a local machine(Windows or Linux)?
- Laravel: Using belongsToMany relationship with MongoDB
- window.location.href redirects but is causing problems on the webpage
- Key provided is shorter than 256 bits, only 64 bits provided
- Laravel's whereBetween method not working with two timestamps
- Implementing UUID as primary key in Laravel intermediate table
Related Questions in SYMFONY
- Key provided is shorter than 256 bits, only 64 bits provided
- Troubleshooting form submission in PrestaShop's hookDisplayAdminProductsExtra module
- Symfony Framework - Route cannot be found even if it is defined in Controller
- Opening modal through Update button with specified ID using ajax
- Can't revert a Loggable entity because of a Doctrine repository error
- Symfony form type option issues
- How to redirect all shopware logs (monolog) including plugins (bundles) to single target like a file or stderr
- Serialization Symfony return empty array
- scheb/2fa not detected/working on my project
- Dynamically Adding Serialization Groups to Properties in Symfony 6.4 Using Traits
- symfony No identifier/primary key specified for Entity "App\Entity\Etablissement"
- Symfony basic auth doesn't work specifically in test
- Laravel 11 upgrade with Laravel Nova v.26.4 and Symfony/finder 7
- Does Symfony need the user to be online inorder to handle messages in the messenger queue?
- How to temporary disable Xdebug for cache/container building code, but that it remains enabled for the rest of the execution?
Related Questions in MULTIPLE-DOMAINS
- How config action cable on rails app with multiple domains?
- Wordpress wp-login.php block with multiple domains
- How do I add another domain but not to the public_html folder in cpanel?
- Apache completely ignores ServerName directive when choosing VirtualHost configured for SSL (port 443)
- How to setup multiple domains on AEM as a cloud service on dispatcher
- nginx as reverse proxy for multiple domains and multiple containers
- Trying to have multiple domains direct to one domain; homepage works, but internal pages don't
- Is there anyway to deploy 2 django projects using docker having different domain?
- Htaccess Maintenance Mode Exlude 1 Domain
- typo3 multiple domains for one site
- Not redirecting properly the https when changing domain
- Is it possible to map full Uris to different services?
- Nginx Multiple Domains Same IP Not Working
- Multiple domains for one website with multiple languages
- Assign different Domains to different nodes in one Umbraco instance
Related Questions in VENDORS
- Pass variables to shortcode from the url in Wordpress
- WooCommerce Product Vendors: Send notification to vendor for new order received
- Woocommerce Vendors Set Selling Locations and Manipulate Product Query Loop
- npm - managing vendors for distribution
- PHP league/csv Reader How to know which delimiter was used?
- How to install vendor bundle WITHOUT composer (corporate network)
- woocommerce generate producer-orderlists
- Is there a place to get the laravel `vendor` folder in one spot?
- How hide the resources created by other vendors? (wordpress)
- Set requirements for custom bundle
- Yii: Want to separate the vendor folder from the application folder
- Re-install vendors from composer.lock (not composer.json)
- Cakephp 3.x How to set up with 3rd parties?
- How to checkout old Symfony 2.0.23 version with Vendors
- How do I make Symfony2 autoload my routing.yml for my bundles that I create in vendors folder?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular # Hahtags
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
I certainly looks possible. A few things to remember:
Symfony/vendorsfolder contains all the Symfony related code. This can easily be shared between applications.Symfony/appfolder contains application related files like the config and cache, and shouldn't be shared between applications.Symfony/webfolder contains the public folder from which the application will be served, and shouldn't be shared.Symfony/srcfolder contains your bundles, and can be shared, depending on your needsSo at the very least, do the following:
webandappfolders. Keep the copies in theSymfonyfolder. AFAIK, there's no easy way to have these folders in different locations.appfolder, edit bothapp.phpandapp_dev.php. Replace all references to theappfolder with the name of your new / second app folder.php newapp/console assets:install newappon your command line to install the bundled assets.I'm sure you can also copy the
srcfolder, although I haven't experimented with that. Reusing your bundles is probably a good idea in any way.