Join the community today
Register Now

Sysadmin Path to php-cli

Discussion in 'System Administration' started by steph40, Mar 22, 2019.

  1. steph40

    steph40 Member

    84
    17
    8
    Jan 28, 2019
    Ratings:
    +34
    Local Time:
    6:54 PM
    1.1.5
    mariadb 10
    I am setting up akkeba solo pro for backups and I need the path for php-cli for cron backup.
    I am a little confuse with all the php folder in /usr/local is it php, bin, lib?


    Thank you
     
  2. eva2000

    eva2000 Administrator Staff Member

    58,893
    12,490
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +19,122
    Local Time:
    8:54 AM
    Nginx 1.31.x
    MariaDB 10.x/11.4+/12.3+
    use which command to find path to binary
    Code (Text):
    which php
    /usr/local/bin/php
    
    which php-fpm
    /usr/local/sbin/php-fpm
    
    which php-cgi
    /usr/local/bin/php-cgi
    
     
  3. steph40

    steph40 Member

    84
    17
    8
    Jan 28, 2019
    Ratings:
    +34
    Local Time:
    6:54 PM
    1.1.5
    mariadb 10
    Thank you