how to enable PHP CLI (command line) on a hosting?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • leejwen
    New Member
    • Jun 2007
    • 50

    how to enable PHP CLI (command line) on a hosting?

    I applied for a hosting service recently. But I dont know how to enable the PHP CLI (command line) on a hosting. Is there a parameter in PHP.ini? or have alternative method to do that. Thank you!
  • Niheel
    Recognized Expert Moderator Top Contributor
    • Jul 2005
    • 2432

    #2
    According to the PHP documentation on CLI


    The CLI SAPI is enabled by default using --enable-cli , but may be disabled using the --disable-cli option when running ./configure.

    Most likely it's already available to you. Do you have shell access to test it?
    niheel @ bytes

    Comment

    • Dormilich
      Recognized Expert Expert
      • Aug 2008
      • 8694

      #3
      you should ask that your hoster. some simply disable that functionality on their servers.

      Comment

      • leejwen
        New Member
        • Jun 2007
        • 50

        #4
        I got answers for the hosters

        There were two answers from two different person, one told me to add a php.ini, another just simply pointed me to the link: www.php-cli.com. Anybody once experienced this? Thank you!

        Comment

        Working...