Page 1 of 1

executing PHP script in bash

PostPosted: 15. October 2006 17:42
by rrodrigueznt
Hi all.

Running two XAMPP releases in Suse Linux Enterprise Server 9.0 boxes.

Xampp for Linux 1.5.2-beta8

I can execute php scripts in the bash command line, for instance, maxtla:/opt/lampp/htdocs/wikitcp/maintenance # php stats.php works without a glitch

Xampp for Linux 1.5.4a

I can not execute the same script...

mire:/opt/lampp/htdocs/mediawiki/maintenance # php stats.php
-bash: php: command not found

Please, could you point me in the right direction to work out this problem? Thanks!

Best,

Ricardo

PostPosted: 15. October 2006 18:30
by Wiedmann
"/opt/lampp/bin" is not in your $PATH. (or use the complete path for the script execution)

PostPosted: 15. October 2006 18:53
by rrodrigueznt
Wiedmann wrote:"/opt/lampp/bin" is not in your $PATH. (or use the complete path for the script execution)


Thanks. Now I am able to run the required script.

Best,

Ricardo