![]() |
|
![]() |
#1 |
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. |
![]() |
![]() |
![]() |
#2 |
Head Mole
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. |
![]() |
![]() |
![]() |
#3 |
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 |
![]() |
![]() |
![]() |
#4 |
Head Mole
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. |
![]() |
![]() |
![]() |
#5 |
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.
|
![]() |
![]() |
![]() |
#6 |
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)
|
![]() |
![]() |
![]() |
#7 |
Head Mole
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. |
![]() |
![]() |
![]() |
#8 |
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. |
![]() |
![]() |
![]() |
#9 |
Head Mole
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. |
![]() |
![]() |
![]() |
|
|
![]() |
||||
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 |