New user's registration have been closed due to high spamming and low trafic on this forum. Please contact forum admins directly if you need an account. Thanks !

Where is PHP executable?

Got problems with Bubba? Then this forum is for you.
Locked
Filip
Posts: 30
Joined: 06 Feb 2007, 12:27
Location: Lund, Sweden

Where is PHP executable?

Post by Filip »

I try to execute a php-file from the command line on my Bubba.
But what is path to PHP?
Isn't it usually /usr/bin/php? I can't find it!
tor
Posts: 703
Joined: 06 Dec 2006, 12:24
Contact:

Post by tor »

Hi Filip,

The binary is not installed by default, only the apache-module. To get the binary you have to install the package php4-cli

/Tor
Co-founder OpenProducts and Ex Excito Developer
Filip
Posts: 30
Joined: 06 Feb 2007, 12:27
Location: Lund, Sweden

Post by Filip »

Perfect!
Just used:
# apt-get install php4-cli
And now it works perfect and I can execute PHP-files with the command
# /usr/bin/php /home/user/filetoexecute.php

Thank you for your help!
Locked