Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Post New Thread Reply

Register GFY Rules Calendar
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 06-04-2004, 08:32 AM   #1
Fabien
Confirmed User
 
Industry Role:
Join Date: Jul 2003
Posts: 4,788
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
Fabien is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-04-2004, 08:34 AM   #2
darksoul
Confirmed User
 
darksoul's Avatar
 
Join Date: Apr 2002
Location: /root/
Posts: 4,997
"which php"
__________________
1337 5y54|)m1n: 157717888
BM-2cUBw4B2fgiYAfjkE7JvWaJMiUXD96n9tN
Cambooth
darksoul is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-04-2004, 08:35 AM   #3
TDF
Triple OG nigga on GFY
 
TDF's Avatar
 
Industry Role:
Join Date: Mar 2002
Location: in the BP4L family compound
Posts: 27,296
yeh i got php on mah server
__________________
Sig heil

TDF is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-04-2004, 08:35 AM   #4
Digibucks
Confirmed User
 
Join Date: Mar 2004
Location: on the run from everyone i owe money
Posts: 1,899
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

i think you should quit
__________________
www.trafficoverdose.com. ICQ me 171848378
Digibucks is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-04-2004, 08:38 AM   #5
Fabien
Confirmed User
 
Industry Role:
Join Date: Jul 2003
Posts: 4,788
I did

it's my son asking me
Fabien is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-04-2004, 08:38 AM   #6
EviLGuY
So Fucking Banned
 
Join Date: Apr 2003
Location: malta
Posts: 12,745
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
It depends on how your server is configured really.

"which php" minus quotes while logged into ssh should give you a good idea.
EviLGuY is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-04-2004, 08:40 AM   #7
Fabien
Confirmed User
 
Industry Role:
Join Date: Jul 2003
Posts: 4,788
Thanks

i will tell him

I will go play with my Atari again
Fabien is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-04-2004, 08:41 AM   #8
xl11
Confirmed User
 
Industry Role:
Join Date: Jul 2003
Posts: 712
probably usr/bin/php
xl11 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-04-2004, 08:43 AM   #9
NickPapageorgio
Confirmed User
 
Join Date: Apr 2004
Location: NC
Posts: 8,323
Quote:
Originally posted by xl11
probably usr/bin/php
Got to be it...
__________________
NickPapageorgio is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-04-2004, 08:45 AM   #10
Herb Kornfield
Is on the 1
 
Herb Kornfield's Avatar
 
Industry Role:
Join Date: Sep 2002
Location: Philly Burbs
Posts: 4,996
Down with PHP, yea, you know me
Herb Kornfield is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-04-2004, 08:51 AM   #11
enigma
Registered User
 
Join Date: Jun 2003
Location: Pornvalley
Posts: 67
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
__________________
-Enigma
ICQ: 142592982
enigma is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-04-2004, 09:02 AM   #12
Fabien
Confirmed User
 
Industry Role:
Join Date: Jul 2003
Posts: 4,788
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
Fabien is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-04-2004, 09:04 AM   #13
xxxbruce
Confirmed User
 
Join Date: Jun 2004
Location: born again
Posts: 653
ive lost mine it was there a minute ago
__________________
SIG TOO BIG! Maximum 120x60 button and no more than 3 text lines of DEFAULT SIZE and COLOR. Unless your sig is for a GFY top banner sponsor, you may use a 624x80 instead of a 120x60. Let me repeat... A 120 x 60 button and no more that 3 lines of DEFAULT SIZE AND COLOR text.
xxxbruce is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-04-2004, 09:06 AM   #14
Fabien
Confirmed User
 
Industry Role:
Join Date: Jul 2003
Posts: 4,788
oh shit
you lost your databases ?


yurkkkkkkkkkkkkkk
sorry to hear that
Fabien is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-04-2004, 09:09 AM   #15
Fabien
Confirmed User
 
Industry Role:
Join Date: Jul 2003
Posts: 4,788
/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
Fabien is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-04-2004, 10:11 AM   #16
directfiesta
Too lazy to set a custom title
 
directfiesta's Avatar
 
Industry Role:
Join Date: Oct 2002
Location: Montreal, Quebec
Posts: 29,796
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....
__________________
I know that Asspimple is stoopid ... As he says, it is a FACT !

But I can't figure out how he can breathe or type , at the same time ....
directfiesta is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-04-2004, 10:15 AM   #17
SeTec
Confirmed User
 
Join Date: May 2004
Location: CA
Posts: 440
Quote:
Originally posted by xl11
probably usr/bin/php
more likely i say /usr/local/lib/

but use the phpinfo script people already posted
__________________
ICQ # 916111
SeTec is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-04-2004, 10:25 AM   #18
JSA Matt
So Fucking Banned
 
Join Date: Aug 2003
Location: San Diego, CA
Posts: 5,464
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
JSA Matt is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.