Answers.Body: <p>Use either <code>php civix.phar</code> or <code>./civix.phar</code> or first update your PATH:</p>
  
  <p><code>set PATH=$PATH:/path/to/folder/where/you/downloaded/it</code></p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-09-13T16:27:09.153Z
Answers.Text: When I use php civix.phar or ./civix.phar, I get : "Failed loading /usr/local/ioncube/ioncube_loader_lin_7.1.so:  /usr/local/ioncube/ioncube_loader_lin_7.1.so: undefined symbol: zend_interrupt_function" ;
Answers.UserDisplayName: Jacques-Marie Moranne
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-09-13T16:28:09.850Z
Answers.Text: try php71 or php72 instead of php. There might be multiple versions installed.
Answers.UserDisplayName: Demerit
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-09-13T16:29:08.907Z
Answers.Text: Why should I update my PATH, since I run civix from where I downloaded it ? I did however, but no change.
Answers.UserDisplayName: Jacques-Marie Moranne
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-09-13T16:32:53.170Z
Answers.Text: Usually your extensions go in files/civicrm/ext so you usually run it from there but setting path is optional.
Answers.UserDisplayName: Demerit
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-09-13T17:08:37.760Z
Answers.Text: php71 or php 72 do not change anything ; my extensions are in www/www/sites/default/files/civicrm/ext ; should I set the PATH there (while civix.phar is in www/www) ? My current php.ini file is as follows :zend_extension = /usr/local/ioncube/ioncube_loader_lin_7.1.so
  post_max_size = 20M
  memory_limit = 500M
  upload_max_filesize = 20M
  max_execution_time = 120
  expose_php = Off
  session.save_path = /tmp
  error_reporting = E_ALL & ~E_STRICT & ~E_NOTICE & ~E_DEPRECATED
  date.timezone = "Europe/Sofia"
Answers.UserDisplayName: Jacques-Marie Moranne
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-09-13T19:50:16.777Z
Answers.Text: I'm assuming you're doing this on the server directly. That might be fine if it's a test site just often people do development offline on their workstation and then it's easier to control the environment. Are you open to doing this on your computer since then you could use a pre-built setup to get started such as https://github.com/civicrm/civicrm-buildkit-vagrant or https://github.com/michaelmcandrew/civicrm-buildkit-docker.
Answers.UserDisplayName: Demerit
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-09-14T15:01:57.657Z
Answers.Text: If you can edit your php.ini, you can probably get things working by removing the line about ioncube.  You don't need that for CiviCRM.
Answers.UserDisplayName: Jon G - Megaphone Tech
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-09-13T16:13:21.240Z
Answers.LastActivityDate: 2019-09-13T16:13:21.240Z
Answers.UserDisplayName: Demerit
Answers.Body: <p>It was a php configuration issue, now solved by my hoster ; I must use php civix.phar command, and it works now.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-09-16T12:45:32.577Z
Answers.LastActivityDate: 2019-09-16T12:45:32.577Z
Answers.UserDisplayName: Jacques-Marie Moranne
Body: <p>I have downloaded, then uploaded civix.phar to my www/www directory (where Drupal is installed).</p>
  
  <p>Now, if I run civix civicrm:ping (from this www/www directory), the answer is :</p>
  
  <p>-bash civix: command not found</p>
  
  <p>(I also tried civix.phar civicrm:ping : I get the same answer)
  (I also tried from other directories : I get the same answer)</p>
  
  <p>I am not a linux expert ; what am I missing ? (permission is 775)</p>
  
Tags: <drupal><civix>
Title: Civix: command not found
ThreadText: # Civix: command not found
  
  (Asked by: username_0 on 2019-09-13)
  
  I have downloaded, then uploaded civix.phar to my www/www directory (where Drupal is installed).
  
  Now, if I run civix civicrm:ping (from this www/www directory), the answer is :
  
  -bash civix: command not found
  
  (I also tried civix.phar civicrm:ping : I get the same answer)
  (I also tried from other directories : I get the same answer)
  
  I am not a linux expert ; what am I missing ? (permission is 775)
  
  **Tags:** drupal, civix
  
  
  ---
  
  ## 2 answers
  
  ### Answer by username_1 on 2019-09-13. Score: 0 | Accepted answer
  
  Use either `php civix.phar` or `./civix.phar` or first update your PATH:
  
  `set PATH=$PATH:/path/to/folder/where/you/downloaded/it`
  
  > **Comments:**
  > **username_0**: When I use php civix.phar or ./civix.phar, I get : "Failed loading /usr/local/ioncube/ioncube_loader_lin_7.1.so:  /usr/local/ioncube/ioncube_loader_lin_7.1.so: undefined symbol: zend_interrupt_function" ;  
  > **username_1**: try php71 or php72 instead of php. There might be multiple versions installed.  
  > **username_0**: Why should I update my PATH, since I run civix from where I downloaded it ? I did however, but no change.  
  > **username_1**: Usually your extensions go in files/civicrm/ext so you usually run it from there but setting path is optional.  
  > **username_0**: php71 or php 72 do not change anything ; my extensions are in www/www/sites/default/files/civicrm/ext ; should I set the PATH there (while civix.phar is in www/www) ? My current php.ini file is as follows :zend_extension = /usr/local/ioncube/ioncube_loader_lin_7.1.so post_max_size = 20M memory_limit = 500M upload_max_filesize = 20M max_execution_time = 120 expose_php = Off session.save_path = /tmp error_reporting = E_ALL & ~E_STRICT & ~E_NOTICE & ~E_DEPRECATED date.timezone = "Europe/Sofia"  
  > **username_1**: I'm assuming you're doing this on the server directly. That might be fine if it's a test site just often people do development offline on their workstation and then it's easier to control the environment. Are you open to doing this on your computer since then you could use a pre-built setup to get started such as https://github.com/civicrm/civicrm-buildkit-vagrant or https://github.com/michaelmcandrew/civicrm-buildkit-docker.  
  > **username_2**: If you can edit your php.ini, you can probably get things working by removing the line about ioncube.  You don't need that for CiviCRM.  
  
  ---
  
  ### Answer by username_0 on 2019-09-16. Score: 0
  
  It was a php configuration issue, now solved by my hoster ; I must use php civix.phar command, and it works now.
  
  
  ---
  
  