Where is PHP on a server ?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Fabien
    Confirmed User
    • Jul 2003
    • 4789

    #1

    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
  • darksoul
    Confirmed User
    • Apr 2002
    • 4997

    #2
    "which php"
    1337 5y54|)m1n: 157717888
    BM-2cUBw4B2fgiYAfjkE7JvWaJMiUXD96n9tN
    Cambooth

    Comment

    • TDF
      Triple OG nigga on GFY
      • Mar 2002
      • 27296

      #3
      yeh i got php on mah server
      Sig heil

      Comment

      • MarkCod
        Confirmed User
        • Mar 2004
        • 1899

        #4
        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

        Comment

        • Fabien
          Confirmed User
          • Jul 2003
          • 4789

          #5
          I did

          it's my son asking me

          Comment

          • EviLGuY
            So Fucking Banned
            • Apr 2003
            • 12745

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

            Comment

            • Fabien
              Confirmed User
              • Jul 2003
              • 4789

              #7
              Thanks

              i will tell him

              I will go play with my Atari again

              Comment

              • xl11
                Confirmed User
                • Jul 2003
                • 712

                #8
                probably usr/bin/php

                Comment

                • NickPapageorgio
                  Confirmed User
                  • Apr 2004
                  • 8323

                  #9
                  Originally posted by xl11
                  probably usr/bin/php
                  Got to be it...

                  Comment

                  • Herb Kornfield
                    Is on the 1
                    • Sep 2002
                    • 4996

                    #10
                    Down with PHP, yea, you know me

                    Comment

                    • enigma
                      Registered User
                      • Jun 2003
                      • 67

                      #11
                      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

                      Comment

                      • Fabien
                        Confirmed User
                        • Jul 2003
                        • 4789

                        #12
                        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

                        Comment

                        • xxxbruce
                          Confirmed User
                          • Jun 2004
                          • 653

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

                          Comment

                          • Fabien
                            Confirmed User
                            • Jul 2003
                            • 4789

                            #14
                            oh shit
                            you lost your databases ?


                            yurkkkkkkkkkkkkkk
                            sorry to hear that

                            Comment

                            • Fabien
                              Confirmed User
                              • Jul 2003
                              • 4789

                              #15
                              /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

                              Comment

                              • directfiesta
                                Too lazy to set a custom title
                                • Oct 2002
                                • 30169

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

                                Comment

                                • SeTec
                                  Confirmed User
                                  • May 2004
                                  • 440

                                  #17
                                  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

                                  Comment

                                  • JSA Matt
                                    So Fucking Banned
                                    • Aug 2003
                                    • 5464

                                    #18
                                    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

                                    Comment

                                    Working...