PHP/Apache

Discussion in 'PHP' started by one198, Sep 8, 2007.

  1. #1
    Hello Guys

    Still I am new to php.What is different between PHP once it configure in apache server.
    There are two type
    1Installing as an Apache module
    2Installing as a CGI binary


    What different between these two?
    Thank you
     
    one198, Sep 8, 2007 IP
  2. nico_swd

    nico_swd Prominent Member

    Messages:
    4,153
    Likes Received:
    344
    Best Answers:
    18
    Trophy Points:
    375
    #2
    Have a look at this:

    http://www.htaccesselite.com/htacce...hp-cgi-and-php-as-an-apache-module-vt106.html

     
    nico_swd, Sep 8, 2007 IP
  3. one198

    one198 Peon

    Messages:
    12
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Hi guys

    Thank you nico.for you fast reply I already installed PHP,but i dont know it,s CGI or other,so how i get that.

    Thank you
     
    one198, Sep 8, 2007 IP
  4. nico_swd

    nico_swd Prominent Member

    Messages:
    4,153
    Likes Received:
    344
    Best Answers:
    18
    Trophy Points:
    375
    #4
    Check your httpd.conf file, if PHP is running under CGI, there will be line similar to this:
    
    Action application/x-httpd-php "c:/php5/php-cgi.exe"
    
    Code (markup):
    If it is running as a module, there will be a line similar to this:
    
    LoadModule php5_module "c:/php5/php5apache2.dll"
    
    Code (markup):
     
    nico_swd, Sep 8, 2007 IP
  5. Sharky01276

    Sharky01276 Peon

    Messages:
    79
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    You can create a php page with this function in as well which is very handy

    test.php
    <?php
    phpinfo();
    ?>

    Navigate to test.php and see what you see :)
     
    Sharky01276, Sep 8, 2007 IP
  6. one198

    one198 Peon

    Messages:
    12
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Thank you Guys for reply
     
    one198, Sep 8, 2007 IP