![]() |
Where is PHP on a server ?
do you know where the hell is php on a server (unix)
i need to know the path for a script or what command from a SSH session i need to type in to know where PHP is I ain't a server Guru :helpme |
"which php"
|
yeh i got php on mah server
|
Quote:
i think you should quit :glugglug |
I did
it's my son asking me:winkwink: |
Quote:
"which php" minus quotes while logged into ssh should give you a good idea. |
Thanks
i will tell him I will go play with my Atari again |
probably usr/bin/php
|
Quote:
|
Down with PHP, yea, you know me
|
You're probably looking for the php binary, so you can run a php script on the command line. It's usually installed in /usr/local/bin/php when someone compiles PHP from the sources. If you have a linux distribution that comes with everything pre-installed, it's probably somewhere else. If it's there, you can use this command to find it:
find / -name php |
Ok to tell you the truth he is trying to install a trade script and it's asking for all these
// Path to perl $perlpath="/usr/bin/perl"; // Path to php $phppath="/usr/local/bin/php"; // Path to DATE service $datepath="/bin/date"; // Path to SH $shpath="/bin/sh"; // Path to FIND utility $findpath="/usr/bin/find"; // Path to RM utility $rmpath="/bin/rm"; Now i went and looked under usr/local/bin/ and saw only "rar" and "webalizer" So this is why i'm asking Plus it's all in RUSSIAN geeeeeeeeeee |
ive lost mine it was there a minute ago :Oh crap
|
oh shit
you lost your databases ? yurkkkkkkkkkkkkkk sorry to hear that:BangBang: |
/usr/bin/php
thanks for helping me out guys Damn i'm too old for this crap. I'll leave the server side to kiddoes instead :1orglaugh |
Theyre are a few files to help on this. You put them in the root directory:
phpinfo.php in the cgi-bin: server.cgi and a few others.... These files will let you see ALL your pathhs, and what is installed on the server. If needed, I could today or tomorrow post them on my server.... |
Quote:
but use the phpinfo script people already posted |
typically /usr/local/php (sometimes with the version, ie: /usr/local/php-4.3.6)
if it's for running crontabs it would be a different path |
| All times are GMT -7. The time now is 10:34 PM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123