PhpDig.net

PhpDig.net (http://www.phpdig.net/forum/index.php)
-   Troubleshooting (http://www.phpdig.net/forum/forumdisplay.php?f=22)
-   -   php: command not found (http://www.phpdig.net/forum/showthread.php?t=1709)

lucyoop 07-06-2004 01:09 PM

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.

Charter 07-06-2004 01:35 PM

Hi. Use the full path to PHP in the command.

lucyoop 07-06-2004 01:38 PM

When I use the full path for the php, I got the follow error message.

/bin/bash: /usr/local/lib/php: is a directory

Charter 07-08-2004 08:34 AM

Hi. What about using /usr/local/bin/php instead?

lucyoop 07-08-2004 09:05 AM

When I type the command whereis php. It gave me /usr/local/lib/php. I checked directory /usr/local/bin/, nothing under that.

lucyoop 07-08-2004 09:08 AM

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)

Charter 07-08-2004 09:11 AM

Hmm, as 'which' shows the full path of (shell) commands, it looks like PHP itself may not be installed correctly.

lucyoop 07-08-2004 09:22 AM

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.

Charter 07-10-2004 06:37 AM

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.