laravel 5.3 - Php version setting on hostgator -


i deploy laravel 3 project on hostgator shared hosting. minimum php needed laravel 3 php56. default php in hostgator php54 lower needed version.

i followed instruction locate php56 in hg found it. edited ~/.bashrc.

    [ -z "$ps1" ] && return # .bashrc  # source global definitions if [ -f /etc/bashrc ];         . /etc/bashrc fi  # user specific aliases , functions  alias php='/opt/php56/bin/php' alias composer='/usr/bin/php-cli ~/bin/composer/composer.phar' export drush_php='/opt/php56/bin/php' 

now when check php --version says it's php 5.6.30

php 5.6.30 (cli) (built: mar 27 2017 11:42:52) copyright (c) 1997-2016 php group zend engine v2.6.0, copyright (c) 1998-2016 zend technologies ioncube php loader (enabled) + intrusion protection ioncube24.com (unconfigured) v6.0.5, copyright (c) 2002-2016, ioncube ltd.

however when tried run composer install on project root said installed php version 5.4.45 hence not satisfy requirements.

  • symfony/yaml v3.3.4 requires php >=5.5.9 -> php version (5.4.45) not satisfy requirement. problem 35
    • nikic/php-parser v3.0.6 requires php >=5.5 -> php version (5.4.45) not satisfy requirement.
    • psy/psysh v0.8.9 requires nikic/php-parser ~1.3|~2.0|~3.0 -> satisfiable nikic/php-parser[v3.0.6].
    • installation request psy/psysh v0.8.9 -> satisfiable psy/psysh[v0.8.9].

how can correctly configure system in shared hosting use correct php version ?

according hostgator, laravel compatible shared platforms. several posts related installation of laravel on hg available. helpful this one.

in looking on question, appears have neglected add php handler .htaccess file in application root directory. suggest start there.

please aware can contact hg live support , request assistance installation. may willing perform installation you; however, not support direct development work have.


Comments

Popular posts from this blog

Is there a better way to structure post methods in Class Based Views -

performance - Why is XCHG reg, reg a 3 micro-op instruction on modern Intel architectures? -

jquery - Responsive Navbar with Sub Navbar -