How To Find Where Php Is Installed

RegisterLogin
How To Find Where Php Is Installed
Post Description: if you want to know the location where the php installation was installed in your server hopefully this tutorial will help you find where php is installed in your linux server
Tags: how, to, find, where, php, is, installed
This Post Was Posted On Mar 09, 2010 By Webune Support #3235
Welcome to Webune Support -

Today's question is regarding: how to find where php is installed?


ANSWER:

the esiest way to find out is to run a phpinfo() file and look at the path settings, usually you will see something like this:

PHP Variables

VariableValue
_ENV["PATH"]/sbin:/usr/sbin:/bin:/usr/bin:/usr/local/sbin:/usr/local/bin:/usr/X11R6/bin


as you can see, mine is installed in /usr/sbin

you can check by listing the files in /usr/sbin

you will see php in the list: like in my list here: (i used ssh)

gmake                                            perlcc                      whiptail
gneqn                                            perldoc                     who
gnome-doc-prepare                                perlivp                     whoami
gnome-eject                                      perror                      whois
gnome-help                                       pf2afm                      wmf2eps
gnome-keyring-daemon                             pfbtopfa                    wmf2fig
gnome-mount                                      pfbtops                     wmf2gd
gnome-open                                       pfdbg                       wmf2svg
gnome-umount                                     pfmon                       wmf2x
gnomevfs-cat                                     pfmon_gen                   word-list-compress
gnomevfs-copy                                    pftp                        write
gnomevfs-df                                      pgpewrap                    wrjpgcom
gnomevfs-info                                    pgpring                     wrudf
gnomevfs-ls                                      pgrep                       wtpt
gnomevfs-mkdir                                   php                         X
gnomevfs-monitor                                 php-cgi                     x86_64
gnomevfs-mv                                      php-config                  xargs
gnomevfs-rm                                      phpize                      xauth
gnroff                                           pic                         xcmsdb
gobject-query                                    pic2graph                   xdelta
gpasswd                                          piconv                      xdpyinfo
gpg                                              pinfo                       xdriinfo
gpg-error                                        pinky                       xev
gpg-error-config                                 pirut                       xfd
gpgsplit                                         pk11install                 xfontsel


if you look at the list above, you can see php in the list
Leave Your Comments
Related Pages: [Add Your Website]
Post New Topic
Terri
#4756 1
if you've installed php using apt-get sometimes you have to add this line to your apache2.conf or httpd.conf to get your php files to work through the webserver


addtype application/x-httpd-php .php
Jan 13, 2011 Reply Report abuse
©2011 Webune Forums - Sun Dec 18, 2011 6:27 pm
Powered by: Webune Forums V3