Saturday, October 11, 2014

How to quickly install composer on a Shared Server

  1. Make sure to run PHP 5.3 and have corresponding php.ini
  2. Adjust the following values inside php.ini:

max_execution_time = 300
max_input_time = 300
memory_limit = 512M
suhosin.executor.include.whitelist = phar
detect_unicode = Off

  1. Log into account via SSH
  2. cd public_html
  3. php -r "readfile('https://getcomposer.org/installer');" | php -c php.ini
  4. cd ~
  5. nano .bashrc
  6. add - alias composer="php -c ~/public_html/php.ini /home/cPanel_username/public_html/composer.phar" underneath "# User specific aliases and functions"
  7. Save Changes with CTRL + X >> Y
  8. source ~/.bashrc
  9. check with composer -V

0 comments:

Post a Comment

    Blogger news

    Blogroll

    About