PhpDig.net

Go Back   PhpDig.net > PhpDig Forums > Troubleshooting

Reply
 
Thread Tools
Old 07-06-2004, 01:09 PM   #1
lucyoop
Green Mole
 
Join Date: Mar 2004
Posts: 10
Blowfish,

When I use your way to autoindex my site, I got the following error message:

/bin/bash: php: command not found

I have tried all kinds of ways, no luck at all.

Any ideas about my problem? Thanks in advance.
lucyoop is offline   Reply With Quote
Old 07-06-2004, 01:35 PM   #2
Charter
Head Mole
 
Charter's Avatar
 
Join Date: May 2003
Posts: 2,539
Hi. Use the full path to PHP in the command.
__________________
Responses are offered on a voluntary if/as time is available basis, no guarantees. Double posting or bumping threads will not get your question answered any faster. No support via PM or email, responses not guaranteed. Thank you for your comprehension.
Charter is offline   Reply With Quote
Old 07-06-2004, 01:38 PM   #3
lucyoop
Green Mole
 
Join Date: Mar 2004
Posts: 10
When I use the full path for the php, I got the follow error message.

/bin/bash: /usr/local/lib/php: is a directory
lucyoop is offline   Reply With Quote
Old 07-08-2004, 08:34 AM   #4
Charter
Head Mole
 
Charter's Avatar
 
Join Date: May 2003
Posts: 2,539
Hi. What about using /usr/local/bin/php instead?
__________________
Responses are offered on a voluntary if/as time is available basis, no guarantees. Double posting or bumping threads will not get your question answered any faster. No support via PM or email, responses not guaranteed. Thank you for your comprehension.
Charter is offline   Reply With Quote
Old 07-08-2004, 09:05 AM   #5
lucyoop
Green Mole
 
Join Date: Mar 2004
Posts: 10
When I type the command whereis php. It gave me /usr/local/lib/php. I checked directory /usr/local/bin/, nothing under that.
lucyoop is offline   Reply With Quote
Old 07-08-2004, 09:08 AM   #6
lucyoop
Green Mole
 
Join Date: Mar 2004
Posts: 10
When I type the command which php, it give the following message: which: no php in (/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin:/usr/X11R6/bin)
lucyoop is offline   Reply With Quote
Old 07-08-2004, 09:11 AM   #7
Charter
Head Mole
 
Charter's Avatar
 
Join Date: May 2003
Posts: 2,539
Hmm, as 'which' shows the full path of (shell) commands, it looks like PHP itself may not be installed correctly.
__________________
Responses are offered on a voluntary if/as time is available basis, no guarantees. Double posting or bumping threads will not get your question answered any faster. No support via PM or email, responses not guaranteed. Thank you for your comprehension.
Charter is offline   Reply With Quote
Old 07-08-2004, 09:22 AM   #8
lucyoop
Green Mole
 
Join Date: Mar 2004
Posts: 10
Do you mean I need reinstall PHP? But, our web site is hosting by other company!

Do we have any way to correct it instead of reinstalling PHP?

Thank you very much, Charter.
lucyoop is offline   Reply With Quote
Old 07-10-2004, 06:37 AM   #9
Charter
Head Mole
 
Charter's Avatar
 
Join Date: May 2003
Posts: 2,539
Hi. As you are hosted, just ask your host how they have PHP installed, and whether they support PHP via shell.
__________________
Responses are offered on a voluntary if/as time is available basis, no guarantees. Double posting or bumping threads will not get your question answered any faster. No support via PM or email, responses not guaranteed. Thank you for your comprehension.
Charter is offline   Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to add a site from the command line or with a php script ciaran@clissman How-to Forum 1 07-18-2005 03:59 PM
command line exec() pulls wrong file (php as cgi?) kzant Troubleshooting 2 02-01-2005 07:14 AM
Spider.php is killed at the command line bforsyth Troubleshooting 2 12-05-2004 01:09 PM
Links found: 1 CafeenMan Troubleshooting 10 05-12-2004 08:35 PM
Using Spider.php in command Lines bazarin How-to Forum 1 02-20-2004 01:21 AM


All times are GMT -8. The time now is 01:00 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright © 2001 - 2005, ThinkDing LLC. All Rights Reserved.