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
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:
Go to a computer with an internet connection
Run composer install so it will download all necessary dependencies
Copy the project to the machine with no internet access.
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". :)
Related
I have a Git repository on my local computer, that is cloned onto a shared server. On my local computer everything works fine, but on the shared server I have a blank page.
I see all the code in my FTP client and I get the git status:
On branch master
Your branch is up-to-date with 'origin/master'.
On my local computer I have the same message, so the source are up-to-date.
Now the strange thing: On my local computer I can see my website. But on my server it is just a blank page. How is this possible? Could this have something to do with the htaccess? The code should be exactly the same.
Technical information: Local computer is Mac OSX. Shared Server is Linux System. I have installed Symfony framework
You are using Symfony framework, but as it was said in comments on your shared server you don't have Composer to install dependencies.
The Symfony's .gitignore ignores the vendor/ directory because usually the dependencies during the deployment process by executing composer install.
In your case, if you haven't Composer on your shared server, you can copy/paste your vendor/ directory from your PC onto your server.
Do not forget to copy/paste it again when you update your dependencies.
The easier approach would be to have Composer on your server to execute composer install each time you push your project onto your server.
I'm in a trouble trying to install phpBB on openshift.
I have created a php5.3 cartridge with PostgreSQL: I unpack phpbb on a folder of my app, I push the change, then I run the installation form the browser.
The forum installation is successful.
In the end I need to delete the "install" folder in order to enable the forum.
I tried it on my standalone wampp server and it works.
So I delete it in my repo, and I commit and push the change.
When the app restarts it automatically tries to go back to the installation: everything is broken.
It seems the push breaks the configuration on the server side.
I also have tried to change the name of the directory using ssh connection, and move the install directory name: this is uneffective.
What's the problem here?
The problem is that if you deploy the phpBB package as downloaded from official website app the files will go on app-deployments with are not persistent on git changes and can not be pull to local. You can try using the OpenShift quickdeply version of phpBB (https://github.com/openshift-quickstart/phpbb-example) that deploys the files to app-root/data (I think :S) and this reamins untouched on git changes.
The "install" folder is at app-root/runtime/repo/php
No more cowboy coding! I'm trying to develop on my local machine, but I'm no Ubuntu expert!
I've got it to the point where when I browse to "localhost" in my browser, it pulls up my Wordpress install and runs the site. It's trying to update, and showing this prompt:
So it's trying to run FTP as what? I'm new to Ubuntu, on my shared Bluehost server space Wordpress has no trouble FTPing out. How do I configure this on my local Ubuntu machine so that Wordpress can update. It's a fresh Ubuntu install from ISO disk. Do I need to configure FTP somehow? This is probably a very basic question - I think I'm looking for a few shell commands as the answer.
Here is a way in which you can disable the FTP Credentials for installing Plugins and Themes from backend
Just Add the following Code in wp-config.php
define('FS_METHOD','direct');
I want to install intervention/image package on my web server i had installed on my localhost , and i want to install it on my web server , Can I Install Laravel 4 package without using Composer? because i don't have acces to use command prompt on my web server.
How are you installing Laravel and the other dependencies already?
Just install it locally like normal then copy your vendor directory along with the rest of your project to your host.
it's possible for you to just upload your vendor directory with ftp, but I wouldn't advise it to you.
Couple of reasons:
You don't want to upload your dev-dependencies, so you would have to handpick which folder to upload - everytime you want to update your dependencies
Uploading over ftp is very slow, so that might take a long time
You don't get the latest versions of the dependencies (which could resolve some security issues)
You wouldn't get any warning if some package isn't compatible with your environment.
I suggest you to use a host that gives you CLI, or even better that can directly run composer when you push up your files, as hannesvdvreken said, fortrabbit (Disclosure: i work there).
If you are running PHP on a shared host without composer you still have some options left:
Install composer on the server in the same folder as your project,
Upload composer.phar to your server,
Change your hosting provider (try fortrabbit),
Upload your vendor folder from your local computer to your server. (Last resort)
Yes you can download it via LaraPack. It provide you ready-to-use Laravel instalation, so you don't have install it with Composer. It also gets weekly update.
I'd like to know if I can install or use the Laravel PHP framework on any web server without using Composer (PHP package/dependency manager) every time?
I would like to be able to drop my app on to any web server (like a shared server without access to the command line).
If I run composer install the first time (locally), then all the dependencies should be present, correct?
Then, I should be able to drop it onto any server with all of the files (including the vendor directory)?
If you really wanted to, you could do all the work that Composer does manually, but you definitely should not. Installing Composer is easy, it's just a matter of getting the composer.phar file and running commands on it.
You do not need to run Composer on your server as well as locally, once you run composer install or composer update your project will have all its dependencies available and you can just upload it straight to your server.
You cannot install laravel local without composer in your project.
On this site you can download everything what you can download also with the composer build tool. But you do not need a composer installation. Of course laravel is also present there: https://php-download.com/package/laravel/laravel
If you have shared server and you are not able to install composer and run cmd to install a new package or update an existing package.
You can one thing by installing composer on your local machine and install(ex composer require package/name) or update(ex composer update package/name) all the packages, then upload your vendor directory on the server with your code. it will work for you same as in your local environment.
NOTE: I strongly recommend that you should use the Laravel with the composer, it is an important part of laravel and you can try to convince your client to provide a server that supports laravel. Please check the link below and you can find the server requirements. https://laravel.com/docs/5.5#installation
If you don't want to use composer on server then you will have to run composer install/update and download all the libraries locally and then manually upload all those files on the server i.e. Vendor Directory.
In-Case of shared hosting where you can't connect to server with shh there you might have to do that but it will take lot of time to upload all the files on server so I would recommend that you should composer and then download the libraries through composer install/update.
Yes, you can install all project dependencies via composer in your localhost first, and then transfer all the files via FTP to your actual website.
Just download the zip file from github and upload to your htdoc and voilĂ it will work for you