Error "can't find php executable path"

11 replies [Last post]
Joined: 07/25/2009
Points: 2

Hi,
I have a standard Debain installation and tried to install Kaltura, but getting to last point of the installation and inserting my Servers PHP executable path (I filled in "/usr/bin/php") I keep getting this error (on two different Debian servers): "can't find php executable path" - what can I do?

Thanks for your help!

Joined: 07/25/2009
Points: 2

I cannot, for the life of me, figure this one out. PHP is installed on the system and working for every single PHP based application on the system except for Kaltura:

PHP 5.2.6-3ubuntu4.1 with Suhosin-Patch 0.9.6.2 (cli) (built: Apr 23 2009 14:37:14)
Copyright (c) 1997-2008 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2008 Zend Technologies

When I am asked for the absolute path to the PHP binary, I provide /usr/bin/php, which is the result of `which php`. Nonetheless, I keep getting the error "can't find php executable path". This is incredibly frustrating. This is my first time trying Kaltura and we're testing it for use with a client. I've been developing web applications and administrating servers for many years and know what I'm doing yet I have absolutely no idea why Kaltura cannot "find" the PHP executable. Short of going into the code and trying to figure this out myself, I'm at a loss.

To this point I've had a couple major problems with the install. First, the FFMPEG binary that was even bundled with Kaltura wasn't run-able. It is the weirdest thing. You guys have a link, pointing to a link, to another link. That is bound to cause issues. What I had to do was install FFMPEG onto the system myself and link it to my own install for it to work. Now, the PHP issue isn't a bit out of my hands because I have no idea why it just wont work.

Please, anyone, thoughts? This is an important trial for our client and if I cannot get this fixed ASAP, we'll be looking for other solutions such as Panda. Thanks!

Joined: 07/25/2009
Points: 2

I fund this in my Apache error.log:

sh: /Applications/XAMPP/xamppfiles/bin/php: No such file or directory
sh: /opt/lampp/bin/php: No such file or directory
sh: C:xamppphpphp: command not found
sh: C:Progra~1xamppphpphp: command not found

so maybe a symbolic link from /usr/bin/php to one of these locations may fix this error?

Joined: 02/22/2009
Points: 97

Hi,

the installation is searching for php executable in the following locations:

  • /Applications/XAMPP/xamppfiles/bin/php (common mac xampp installation)
  • /opt/lampp/bin/php (common linux xampp installation)
  • C:\xampp\php\php (common windows xampp)
  • C:\Progra~1\xampp\php\php (another common windows xampp)
  • php (assumes in environment PATH variable)

This should be located in the requirements step (and basically should not be asked for in later steps).

Please try adding php to the PATH variable
- linux / mac - either by adding a symbolic link in a path that is already in PATH variable, or adding real php executable path to PATH variable (restart apache)
- windows - adding real php executable path to PATH variable (restart computer)

Gonen

Joined: 07/28/2009
Points: 5

I am getting the same error and I added a symbolic link to /bin/ which is in my PATH variable and the error is still persisting.

I'm on a mac and I've got XAMPP running and php is in both /usr/bin/php and Applications/XAMPP/xamppfiles/bin/php

Is there anything else I could try?

Joined: 01/05/2009
Points: 1697

Hi Alan,

Please try - /Applications/xampp/xamppfiles/bin (notice no php at the end)

This is how you add it to the path (in case other members don't know) -

  • Open the Terminal application. It can be found in the Utilities directory inside the Applications directory.
  • Type the following: echo 'export PATH=YOURPATHHERE:$PATH' >> ~/.profile, replacing "YOURPATHHERE" with the name of the directory you want to add. Make certain that you use ">>" instead of one ">".
  • Hit Enter.
  • Close the Terminal and reopen. Your new Terminal session should now use the new PATH.
Joined: 07/28/2009
Points: 5

Kalturian,

Thanks for the help. I updated my $PATH and it even updated the result for 'which php' but I was still getting the same error in the install process.

I was installing it from localhost and using my local IP address in the top box, and when I setup a dyndns name and went to that url for the install instead of localhost, it didnt even give me the box asking for the path to PHP and it all installed perfectly well. Hope that helps everyone else with this problem.

I'm off to go and play with my new Kaltura install!!

thanks,
alan

Joined: 08/17/2009
Points: 7

I am getting the same error ("can't find php executable path") during installation of kaltura,
on Ubuntu 9.04 , during the configure step (3).
I added a link to php5 at /opt/lampp/bin/php
do you have any idea ?
running php --version using the apache user from command line works and outputs:
php --version
PHP 5.2.6-3ubuntu4 with Suhosin-Patch 0.9.6.2 (cli) (built: Mar 31 2009 02:11:31)
Copyright (c) 1997-2008 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2008 Zend Technologies

I am already using a url so Alan's solution does not work for me... :-(
thanks in advance.

Boaz.

Joined: 01/05/2009
Points: 1697

Hi Boaz,

This might happen when making changes while installing... try using firefox and making a clean install.

Joined: 08/17/2009
Points: 7

downloaded again, installed and it works,
thanks.

Joined: 01/05/2009
Points: 1697

Good to hear that - waiting to hear what you do with Kaltura !

Joined: 07/29/2010
Points: 2

I like having a lot of different programs on my computer and my biggest problem is that I can not find a good antivirus because there are a lot of people trying to get information from computers.