Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 03-21-2005, 10:43 AM   #1
Registered: Jan 2004
Distribution: Slackware, RH, WBEL
Posts: 65

Rep: Reputation: 15
Mandrake 10.1 PHP Binary Path

I realize this is a seemingly simple question, but I cant seem to find the actual php binary on the default php install provided with Mandrake 10.1. I looked in all the usual places such as /usr/bin/php or /usr/local/bin/php or even /usr/local/php/bin/php. I also tried using phpinfo() since I couldnt remember if it gave the binary path. Unless I overlooked it, all I see is environment paths. I dont need the configs, just the binary. Anyone have any pointers, thanks?

Last edited by TotalDefiance; 03-21-2005 at 10:45 AM.
Old 03-21-2005, 10:50 AM   #2
Registered: Nov 2003
Location: Bristol, UK
Distribution: Debian Lenny, Gentoo (at work)
Posts: 388

Rep: Reputation: 32
Try 'whereis php'

And I notice you didn't mention /bin in "the usual places". My guess is this is where you'll find it.
Old 03-21-2005, 10:50 AM   #3
Registered: Sep 2004
Location: Finland
Distribution: Ubuntu 10.04, Debian 5, OpenSUSE 11.3
Posts: 60

Rep: Reputation: 15
Have you tried

whereis -b php

That should give the path to the binary.
Old 03-21-2005, 11:16 AM   #4
Registered: Jan 2004
Distribution: Slackware, RH, WBEL
Posts: 65

Original Poster
Rep: Reputation: 15
I tried that before as well, results are/were: php: /etc/php.d /etc/php.ini /usr/lib/php

The /usr/lib/php directory continues with extensions/ and then mysql and postgresql files.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
PHP search path jmanjohn61 Linux - Software 2 01-21-2009 01:47 PM
php upgrade path pxp Linux - Security 3 12-20-2004 10:08 AM
php executable binary apt Programming 4 12-08-2004 09:46 AM
Php to return a binary not html logicdisaster Programming 3 10-07-2004 02:25 PM
PHP Code to retriev e binary log files saravanan1979 Programming 1 03-28-2002 01:14 AM > Forums > Linux Forums > Linux - Software

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

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration