LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Debian Etch and php5 problem (https://www.linuxquestions.org/questions/linux-newbie-8/debian-etch-and-php5-problem-506791/)

paddyjoy 12-02-2006 05:44 AM

Debian Etch and php5 problem
 
Hi,

I'm having some trouble getting php installed on debian etch, does anyone have any idea what I'm doing wrong?

Code:

patrick:/var/www# apt-get install php5
Reading package lists... Done
Building dependency tree... Done
php5 is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
patrick:/var/www# php
-bash: php: command not found
patrick:/var/www#

Seems like the php executable is not getting installed, is it in a different package?

Paddy

Renars 12-02-2006 05:55 AM

See the message "php5 is already the newest version."
It's already installed.
You can locate it using slocate.
If you have slocate installed, do "/etc/cron.daily/slocate"
When that finishes, do "locate php" and look at the results.

paddyjoy 12-02-2006 05:57 AM

Thanks, gives me nothing!

patrick:/var/www# which php
patrick:/var/www#

btmiller 12-02-2006 02:02 PM

At least with PHP 4 on Debian you needed the php4-cli package installed to get the command line php binary. Maybe there is a php5-cli package you need to install? In the future, note that you can use apt-cache search php to see all PHP related packages.

paddyjoy 12-02-2006 05:54 PM

Thanks thats exactly what I was looking for php5-cli!

Paddy


All times are GMT -5. The time now is 07:52 PM.