在hostgator共享主机上安装laravel


install laravel on hostgator shared hosting

如何在hostgator共享主机上安装laravel-php框架?-PHP 5.2版-在.htaccess文件中添加类型application/x-httpd-php53.php

我的问题:无法使用SSH安装composer:$curl-sShttps://getcomposer.org/installer|php获取错误:缺少phar扩展安装它或重新编译php而不使用--disable phar

你的Php(5.2.17)太旧了,你必须升级到Php 5.3.2或更高版本。

Hostgator支持PHP 5.4+。请尝试使用它。

请参阅:http://support.hostgator.com/articles/hosting-guide/hardware-software/php-5-4

PHP 5.4在5月之后提供的共享托管帐户上可用2013年1月1日使用,方法是将以下代码添加到.htaccess文件中。

AddType application/x-httpd-php54 .php

Laravel 4在这里有服务器需求:

  • PHP>=5.3.7
  • MCrypt PHP扩展

由于您的主机有PHP 5.2,因此您不能使用Laravel 4。考虑更换主机,或使用Laravel 3。