- Forums
- PHP
- How To Find The Installation Path For PHP In Linux.
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 [2097], Last Updated: Mon Jun 24, 2024
Webune Support
Tue Mar 09, 2010
1 Comments
854 Visits
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
Variable | Value |
---|
_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