#1
  1. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    May 2000
    Posts
    50
    Rep Power
    15
    I would like to know whether PHP can be compiled as a standalone CGI interpreter, or compiled as an Apache module.
    Also the apache compilation has to options....
    1. --with apxs
    2. --with apache
    what does that mean and when should each be used?

    Also if i am not mistaken, as far as i remember, the apache installation of tarball has some
    --with php
    option in the new releases.
    Should i use that.??

    duke.
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    May 2000
    Posts
    43
    Rep Power
    15
    It can do both.

    --with-apxs means you compile PHP as an external module which can be loaded into an already compiled apache installation. It is then a "loadable" module.

    --with apache means that you compile php into apache. Apache has to be re-compiled with php.

    None of these are too difficult, actually, so dive in!

    ------------------
    PHP, Perl, SQL Programming at http://www.mentalobjects.com
  4. #3
  5. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    May 2000
    Posts
    50
    Rep Power
    15
    So the possible suggestive method is that,
    i first install MySQL,
    then Apache (without the --with php option) and then PHP4 (with the --with apxs option)

    Inall the PHP4 installation options should be:
    ./configure --with apxs
    --with mysql
    --with cgi


    i hope thats it.

    duke.

  6. #4
  7. No Profile Picture
    freebsd
    Guest
    Devshed Newbie (0 - 499 posts)
    >>Inall the PHP4 installation options should be
    Not quite. Please go to: http://www.devshed.com/Talk/Forums/F...ML/000020.html

    >>Also the apache compilation hasto options.
    >>1. --with apxs
    >>2. --with apache
    >>what does that mean and when should each be used?
    You can do EITHER ONE, but not both.
    Do the 1st one means Apache already installed.
    2nd one means Apache is NOT YET installed. Never do both at a time.

Similar Threads

  1. mod_rewrite and Apache 2 cgi script not working
    By jroamo in forum Apache Development
    Replies: 0
    Last Post: February 10th, 2004, 12:22 PM
  2. Loading LDAP module on Apache
    By okot002 in forum Apache Development
    Replies: 0
    Last Post: February 1st, 2004, 03:34 PM
  3. run php as a cgi or as a server module?
    By wizbang in forum PHP Development
    Replies: 0
    Last Post: January 11th, 2004, 05:50 PM
  4. Coding an apache module
    By Tantalus in forum Apache Development
    Replies: 0
    Last Post: January 11th, 2004, 12:09 PM
  5. why apache cant verify the encrypted pass made by cgi?
    By manorith in forum Apache Development
    Replies: 0
    Last Post: December 21st, 2003, 04:03 PM

IMN logo majestic logo threadwatch logo seochat tools logo