Installation of Laravel

-2

Is it possible to install Laravel on any shared hosting? Or the requirements for installation are very specific.

    
asked by anonymous 27.02.2014 / 14:28

3 answers

1

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.

    
27.02.2014 / 14:32
1

Yes, it is possible.

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:

  • I maintain an updated remote repository,
  • and have the site updated automatically.

Beanstalk deploy uploads the modified files, automatically, via FTP. Jewelry!

    
27.02.2014 / 19:01
-2

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.

    
27.02.2014 / 14:32