lmalves
lmalves

Reputation: 169

Install Symfony on a server with no internet connection

Is it possible to install symfony and all it's components on a server without internet connection?

I hope that I can download the required files and copy and install on the server.

I intend to create an application to run on the intranet of the company. I'm already using XAMPP and the PHP version is 5.3.8.

Thanks

Upvotes: 1

Views: 1209

Answers (1)

tftd
tftd

Reputation: 17032

Of course you can install symfony on a server with no internet connection. What you would need to do is have your project up and running with all the vendors already installed and then you would copy the project into your network share.

In other words:

  1. Go to a computer with an internet connection
  2. Run composer install so it will download all necessary dependencies
  3. Copy the project to the machine with no internet access.
  4. Make sure to clean your cache folder on the server (i.e rm -rf app/cache/{prod,dev,test})

And everything should be working just fine. I've done this in multiple cases when composer was not available on a shared hosting, which is pretty much the same as "not having internet". :)

Upvotes: 2

Related Questions