PHP 5.1.4 / Apache 2.2.3 / XP Home Install Problems

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • llauzon
    New Member
    • Jul 2006
    • 2

    PHP 5.1.4 / Apache 2.2.3 / XP Home Install Problems

    I'm having trouble getting PHP installed with Apache. I don't know if it's tied to my trying to use the newest versions available on the respective application web sites.

    I've successfully installed Apache and when browsing http://localhost/ I can see the files I've put there. I've even re-directed from the DocumentRoot folder from "htdocs" to a folder on the root of my C:\ drive.

    After installing PHP, I've updated the httpd.con file to contain the following lines:

    PHPIniDir C:/php/
    LoadModule php5_module "c:/php/php5apache2.dll "
    AddType application/x-httpd-php .php

    They are between the "#LoadModul e ssl_module modules/mod_ssl.so" and the "# 'Main' server configuration" lines.

    I put "php5ts.dll " in c:\windows\syst em32\ and renamed "php.ini-recommended" to "php.ini". The file "php5apache2.dl l" exists in c:\php\.

    When trying to start Apache after adding the three lines, I get this error:
    >>> httpd.exe: Syntax error on line 119 of C:/Program Files/Apache Software Foundation/Apache2.2/conf/httpd.conf: Cannot load C:/php/php5apache2.dll into server: The specified module could not be found. .

    If I comment out the LoadModule and AddType lines I get this error:
    >>> Invalid command 'PHPIniDir', perhaps misspelled or defined by a module not included in the server configuration .

    I don't know if I've got these lines in the right place in the httpd.con file or if I've got an obvious typo I can't see...

    Any help is appreciated!

    Thanks,
    Louis
  • llauzon
    New Member
    • Jul 2006
    • 2

    #2
    Digging a little further, I found I needed the "php5apache2_2. dll" file rather than the php5apache2.dll file for Apache 2.2.x

    I've got that installed and Apache now starts as it should. I'm not able to load a page with the <?php phpinfo(); ?> statement to confirm PHP is working properly but at least I've got Apache working now!

    thanks,
    Louis

    Comment

    Working...