Deploying Laravel 4 on shared hosting server (hostgator)

旧时模样 提交于 2019-12-04 21:59:59

Turns out I had not installed Composer properly. I solved this by:

adding alias to php 5.3 in .bashrc:

alias php53='/opt/php53/bin/php'

installing Composer:

curl -sS https://getcomposer.org/installer | php53

in composer.json, in the "scripts" replacing php with: /opt/php53/bin/php (alias is not accepted, do not know why)

running

php53 composer.phar install

adding to .htaccess:

AddType application/x-httpd-php53 .php

I created a repository to simplify the installation process(mostly for future visitors) after struggling with it several times.

You can find the repository at https://github.com/ralphowino/laravel-for-hostgator-users or download it via https://github.com/ralphowino/laravel-for-hostgator-users/archive/master.zip

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!