Koozali.org: home of the SME Server

Has PHP CGI. But I also need PHP CLI (php-cli)

Offline Tillebeck

  • ****
  • 76
  • +0/-0
Has PHP CGI. But I also need PHP CLI (php-cli)
« on: May 31, 2007, 11:20:40 AM »
Hi
I have installed a web application that needs access to php-cli...

Since my SME 7.3 is running more or less out-of-the-box I only have the CGI running and no CLI

[root@ronja ~]# php -v
PHP 4.3.9 (cgi) (built: Feb 21 2007 06:35:52)
Copyright (c) 1997-2004 The PHP Group
Zend Engine v1.3.0, Copyright (c) 1998-2004 Zend Technologies
[root@ronja ~]#

Can anyone please help me in adding the CLI support for php to my SME installation?

BR. Anders

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: Has PHP CGI. But I also need PHP CLI (php-cli)
« Reply #1 on: May 31, 2007, 04:23:17 PM »
Quote from: "Tillebeck"
Hi
I have installed a web application that needs access to php-cli...

Since my SME 7.3 is running more or less out-of-the-box I only have the CGI running and no CLI

[root@ronja ~]# php -v
PHP 4.3.9 (cgi) (built: Feb 21 2007 06:35:52)
Copyright (c) 1997-2004 The PHP Group
Zend Engine v1.3.0, Copyright (c) 1998-2004 Zend Technologies
[root@ronja ~]#

Can anyone please help me in adding the CLI support for php to my SME installation?

BR. Anders
Why do you need both? For command line execution you can also use php if I am correct.
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)

Offline Tillebeck

  • ****
  • 76
  • +0/-0
Has PHP CGI. But I also need PHP CLI (php-cli)
« Reply #2 on: June 01, 2007, 10:00:43 AM »
I am running a CMS called Typo3. An extension, TC Directmail, for sending out emails need the php-cli. In the config it says:
Quote
[path_to_php]
Path to PHP-CLI. In order to adjust PHP-CLI-programs, TC Directmail needs to know the location of your PHP-CLI. On Linux this is normally /usr/bin/php. BSD often uses /usr/local/bin/php. If neither works, please contact you systems manual or your administrator.

I have tried the /usr/bin/php but that path is not accepted. I read in another forum that the php could run as cgi, cli or both. The command should tell how the php was installed.
Code: [Select]
# php -v
The sme server comes with cgi only. But from other forum posts (linux forums) it sounded like it was no a big hassle to install (build?) php with cli support. So.... I hoped that would be the case with SME Server as well and someone could tell me how to do it ;-)

I shall say: IF it is recommended not to have CLI support on a production server then I can use another Typo3 mailsender. But the one that need the php-cli is the one to choose if possible.

Offline kruhm

  • *
  • 680
  • +0/-0
Has PHP CGI. But I also need PHP CLI (php-cli)
« Reply #3 on: June 10, 2007, 05:42:26 PM »
<deleted>

Offline Tillebeck

  • ****
  • 76
  • +0/-0
Has PHP CGI. But I also need PHP CLI (php-cli)
« Reply #4 on: June 11, 2007, 12:14:02 PM »
I was just about to install php-cli after the the great how-to that was posted here last night :-) I guess there was some issues with it since it has now been deleted.

It was something with enabeling the repo from CentOS and update the php using yum. But I am not going to try that since there probably was a reason to remoce the how-to.

I hope an update will be posted later on ;-) Since SME Server is the only linux system I have been working on I am not to familiar with installing and removing rpm's from other distributions.