Can someone take a look at this httpd.conf file section

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Doug Gentry
    New Member
    • Dec 2010
    • 3

    #1

    Can someone take a look at this httpd.conf file section

    I just picked up this book "Build your own Database Driven Web site using PHP & MySQL.

    On Page 18 section 4. It states all the remaining options in this long and intimidating configuration file should have been set up correctly by the Apache install Program. All you need to do is add the following lines to the very end of the file.

    LoadModule php5_module "C:/PHP/php5apache2_2.d ll"
    AddType application/x-httpd-php .php
    PHPIniDir "C:/PHP"

    I'll now paste the part of the configuration file I'm wondering about. I put this in the conf file at the very end. But I'm wondering if this is supposed to just above the </IfModule>

    Code:
    # Note: The following must must be present to support
    #       starting without SSL on platforms with no /dev/random equivalent
    #       but a statically compiled-in mod_ssl.
    #
    <IfModule ssl_module>
    SSLRandomSeed startup builtin
    SSLRandomSeed connect builtin
    </IfModule>
    
    LoadModule php5_module "C:/PHP/php5apache2_2.dll"
    AddType application/x-httpd-php .php
    PHPIniDir "C:/php"
    I ask this because when I restart Apace it starts fine with no errors but according to the book I should be able to Double click the Apache Service Monitor icon to open the Apache Service Monitor window. If PHP is installed correctly, the status bar of this window should indicate the version of PHP you have installed.

    I don't see that PHP Version....

    Thanks for any help you can offer.

    Thanks again
    Doug
  • dlite922
    Recognized Expert Top Contributor
    • Dec 2007
    • 1586

    #2
    if C:/PHP/php5apache2_2.d ll file exists and php.ini is in C:/PHP. That's all you need.

    If Apache starts try to display a php page. I'm not so sure Apache Monitor displays the php version. If your book says this, it is false information.

    create a .php file in your web root and put this in it:
    Code:
    <?php phpinfo(); ?>
    access it via a browser. Do you see the PHP information page?

    To get MySQL working, use your book and use this page Look for the MySQL section towards the bottom. If this section is not there, MySQL is not installed correctly.

    Cheers,


    Dan

    Comment

    Working...