![]() |
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. |
Hi. Use the full path to PHP in the command.
|
When I use the full path for the php, I got the follow error message.
/bin/bash: /usr/local/lib/php: is a directory |
Hi. What about using /usr/local/bin/php instead?
|
When I type the command whereis php. It gave me /usr/local/lib/php. I checked directory /usr/local/bin/, nothing under that.
|
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)
|
Hmm, as 'which' shows the full path of (shell) commands, it looks like PHP itself may not be installed correctly.
|
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. |
Hi. As you are hosted, just ask your host how they have PHP installed, and whether they support PHP via shell.
|
All times are GMT -8. The time now is 04:42 PM. |
Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright © 2001 - 2005, ThinkDing LLC. All Rights Reserved.