- Make sure to run PHP 5.3 and have corresponding php.ini
- 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
- Log into account via SSH
- cd public_html
- php -r "readfile('https://getcomposer.org/installer');" | php -c php.ini
- cd ~
- nano .bashrc
- add - alias composer="php -c ~/public_html/php.ini /home/cPanel_username/public_html/composer.phar" underneath "# User specific aliases and functions"
- Save Changes with CTRL + X >> Y
- source ~/.bashrc
- check with composer -V
0 comments:
Post a Comment