GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   Where is PHP on a server ? (https://gfy.com/showthread.php?t=306989)

Fabien 06-04-2004 08:32 AM

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

darksoul 06-04-2004 08:34 AM

"which php"

TDF 06-04-2004 08:35 AM

yeh i got php on mah server

Digibucks 06-04-2004 08:35 AM

Quote:

Originally posted by Fabien
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


i think you should quit :glugglug

Fabien 06-04-2004 08:38 AM

I did

it's my son asking me:winkwink:

EviLGuY 06-04-2004 08:38 AM

Quote:

Originally posted by Fabien
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

It depends on how your server is configured really. :)

"which php" minus quotes while logged into ssh should give you a good idea.

Fabien 06-04-2004 08:40 AM

Thanks

i will tell him

I will go play with my Atari again

xl11 06-04-2004 08:41 AM

probably usr/bin/php

NickPapageorgio 06-04-2004 08:43 AM

Quote:

Originally posted by xl11
probably usr/bin/php
Got to be it...:1orglaugh

Herb Kornfield 06-04-2004 08:45 AM

Down with PHP, yea, you know me

enigma 06-04-2004 08:51 AM

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

Fabien 06-04-2004 09:02 AM

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

xxxbruce 06-04-2004 09:04 AM

ive lost mine it was there a minute ago :Oh crap

Fabien 06-04-2004 09:06 AM

oh shit
you lost your databases ?


yurkkkkkkkkkkkkkk
sorry to hear that:BangBang:

Fabien 06-04-2004 09:09 AM

/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

directfiesta 06-04-2004 10:11 AM

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....

SeTec 06-04-2004 10:15 AM

Quote:

Originally posted by xl11
probably usr/bin/php
more likely i say /usr/local/lib/

but use the phpinfo script people already posted

JSA Matt 06-04-2004 10:25 AM

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