aws beanstalk phalcon installation error

I am trying to install phalcon in aws beanstalk with 64bit Amazon Linux 2016.03 v2.1.4 running PHP 5.5.

deployed code with .ebbeanstalk which has following code

commands: 01phalconinstall: # run this command from /tmp directory cwd: /tmp # don't run the command if phalcon is already installed (file /etc/php.d/phalcon.ini exists) test: '[ ! -f /etc/php.d/phalcon.ini ] && echo "phalcon not installed"' # executed only if test command succeeds command: | git clone --depth=1 git:// \ && cd cphalcon/build \ && ./install \ && echo > /etc/php.d/phalcon.ini \ && rm -rf ./cphalcon

It gave following error

[Instance: i-5693e58b] Command failed on instance. Return code: 128 Output: fatal: destination path 'cphalcon' already exists and is not an empty directory. command 01phalconinstall in tpk/.ebextensions/02_phalcon.config failed. For more detail, check /var/log/eb-activity.log using console or EB CLI.

any one can help me with this error

  • check permissions
  • clear directories.
  • execute install script with sudo


ok thank you , i published phalcon project in Layershift Jelastic PAAS , instead of AWS