Running php as cli (mod_php)

Discussion in 'Site & Server Administration' started by ASTRAPI, Jul 15, 2009.

  1. #1
    Hello

    What i must do to run php as cli (mod_php) ?

    I havve Direct admin as panel.


    Thank you
     
    ASTRAPI, Jul 15, 2009 IP
  2. vasyl

    vasyl Peon

    Messages:
    138
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #2
    this mode is default in the most cases - opposite to php-fcgi
     
    vasyl, Jul 15, 2009 IP
  3. ASTRAPI

    ASTRAPI Guest

    Messages:
    500
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Maybe i did a mistake how can i check in wich mode i run it now?
     
    ASTRAPI, Jul 15, 2009 IP
  4. RoseHosting

    RoseHosting Well-Known Member

    Messages:
    230
    Likes Received:
    11
    Best Answers:
    11
    Trophy Points:
    138
    #4
    From a shell, typing php -v will tell you whether php is CGI or CLI.
     
    RoseHosting, Jul 15, 2009 IP