Is it possible to install Laravel on any shared hosting? Or the requirements for installation are very specific.
Is it possible to install Laravel on any shared hosting? Or the requirements for installation are very specific.
According to documentation you just have the 5.3.7
of php version and the MCrypt
extension enabled
The Laravel framework has a few system requirements:
PHP > = 5.3.7
MCrypt PHP Extension
As of PHP 5.5, some OS distributions may require you to manually install the PHP JSON extension. When using Ubuntu, this can be done via apt-get install php5-json.
At the moment, I'm developing an application with Laravel 4, and the client has provided me access to shared hosting in "HostGator".
I had to enable the correct version of PHP in the provider (the default is 5.2) - this was done via .htaccess
I'm developing locally using Git and Composer , typically. I created a Git repository on the free plane of Beanstalk (and named it local remote beanstalk), and set there a deploy via FTP.
Locally, I created a branch named "deploy", where I removed the vendor
directory from .gitignore
, so that the vendor
folders enter the repository.
Then, after testing my code well, and doing the commit , with a simple command ...
git push beanstalk deploy
... Here's what:
Beanstalk deploy uploads the modified files, automatically, via FTP. Jewelry!
You can install Laravel on any machine using the command:
composer create-project laravel/laravel --prefer-dist
If composer
is not globally available, you can download it to the current folder to install by composer.phar
, like this:
curl -sS https://getcomposer.org/installer | php
Or, in case you do not have curl
:
php -r "readfile('https://getcomposer.org/installer');" | php
If you still can not install, you can build on your local machine and deploy to another machine through Capifony (which can transfer files via rsync
), for example.