Results 1 to 5 of 5
  1. #1
    Join Date
    Jul 2002
    Location
    San Luis Obispo, CA
    Posts
    818

    php compiled as binary?

    how do you compile php as a binary so i can run it at the command line? I have php compiled as a module right now. If i compile it as a binary, or whatever, will it affect the module? Whats the trick? How do i do it?
    Nick Twaddell
    WebSpace Solutions - Custom E-Solutions
    Fast, Reliable, Affordable Web Hosting

  2. #2
    Join Date
    Jan 2002
    Location
    Kuwait
    Posts
    679
    You can have both module and binary. No problem. Chances are you already have the binary. Try:

    Code:
    which php
    Ahmad Alhashemi
    PHP, Apache, C, Python, Perl, SQL
    18 related BrainBench certificates

  3. #3
    Join Date
    Jul 2002
    Location
    San Luis Obispo, CA
    Posts
    818
    [[email protected] admin]# which php
    [[email protected] admin]#
    Nick Twaddell
    WebSpace Solutions - Custom E-Solutions
    Fast, Reliable, Affordable Web Hosting

  4. #4
    Join Date
    Apr 2002
    Posts
    930
    Try:

    locate php | grep -i bin

    and see if there are any php binaries listed.

  5. #5
    Join Date
    Jan 2002
    Location
    Kuwait
    Posts
    679
    You compiled PHP as an Apache module from source?

    If I recall correctly, last time I've done that, PHP was automatically compiled as an interpreter too. In any case, you can visit the source directory and:

    Code:
    ./configure && make && make install
    If you don't specify any SAPI, the default is to compile it as a binary (a.k.a: interpreter, stand-alone, cgi).
    Ahmad Alhashemi
    PHP, Apache, C, Python, Perl, SQL
    18 related BrainBench certificates

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •