Results 1 to 7 of 7
Thread: php path
-
01-30-2007, 09:24 PM #1Web Hosting Master
- Join Date
- Jan 2005
- Posts
- 623
php path
Hello
i'm novice in SSH language, just know the commands that i use often.
my hoster, as he said did upgrade 2 days ago, [had an upgrade to apache 2], and some SSH command that i use before this, now don't work
for example, i had php script, which i run from ssh
[php go.php]
which don't work now ... got an error:
Code:-bash: php: command not found
Code:$ whereis php
Code:
Code:php: /usr/src/php-5.2.0/php5.spec /usr/src/php-5.2.0/php.ini-dist /usr/src/php-5.2.0/php.ini-recommended /usr/src/php-5.2.0/php.gif /usr/local/bin/php /usr/local/lib/php.ini /usr/local/lib/php
after this try to type
Code:/usr/local/lib/php go.php
Code:/usr/local/lib/php: is a directory
when i type
echo $PATH
get
Code:/usr/kerberos/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/X11R6/bin:/home/MYUSERNAME/bin
any advise?
thank youYour Health Encyclopedia
Medical and health consumer information resources containing comprehensive and unbiased information in patient-friendly language
-
01-30-2007, 09:41 PM #2Blue, Furry and Comfortable
- Join Date
- Aug 2003
- Location
- Vancouver, BC
- Posts
- 1,894
I believe if you do a page with <?php phpinfo(); ?> in it that will show the php path. Check the include_path.
-
01-30-2007, 09:59 PM #3Web Hosting Master
- Join Date
- Jan 2005
- Posts
- 623
ok . do phpinfo, regarding this file
Configuration File (php.ini) Path /usr/local/lib/php.ini
after this try
Code:/usr/local/lib/php go.php
output
Code:/usr/local/lib/php: is a directory
Your Health Encyclopedia
Medical and health consumer information resources containing comprehensive and unbiased information in patient-friendly language
-
01-30-2007, 11:21 PM #4Web Hosting Master
- Join Date
- Jul 2004
- Location
- Texas
- Posts
- 688
/usr/local/bin/php seems to be the path
Hello
-
01-30-2007, 11:38 PM #5Disabled
- Join Date
- Oct 2005
- Posts
- 515
Run
/usr/local/bin/php go.php
and paste the output.
-
01-31-2007, 06:49 AM #6Web Hosting Master
- Join Date
- Jan 2005
- Posts
- 623
output
Code:sh: php: command not found sh: php: command not found sh: php: command not found sh: php: command not found sh: php: command not found sh: php: command not found sh: php: command not found sh: php: command not found sh: php: command not found sh: php: command not found sh: php: command not found sh: php: command not found sh: php: command not found sh: php: command not found sh: php: command not found sh: php: command not found sh: php: command not found sh: php: command not found sh: php: command not found sh: php: command not found sh: php: command not found sh: php: command not found sh: php: command not found sh: php: command not found sh: php: command not found sh: php: command not found sh: php: command not found sh: php: command not found sh: php: command not found sh: php: command not found sh: php: command not found sh: php: command not found sh: php: command not found sh: php: command not found sh: php: command not found
Your Health Encyclopedia
Medical and health consumer information resources containing comprehensive and unbiased information in patient-friendly language
-
01-31-2007, 07:32 AM #7Web Hosting Master
- Join Date
- Jan 2005
- Posts
- 623
Originally Posted by Tailseh
very odd
don't understandYour Health Encyclopedia
Medical and health consumer information resources containing comprehensive and unbiased information in patient-friendly language