Skip to main content
Inspiring
August 15, 2008
Question

PHP already loaded!!

  • August 15, 2008
  • 1 reply
  • 1508 views
[warn] module php5_module is already loaded, skipping

Syntax error on line 490 of C:/Program Files/Apache Software Foundation/Apache2.2/conf/httpd.conf:
Only first PHPINIDir Directive honored per configuration tree - subsequent ones ignored

this is the code (as I'm sure you know) in the conf file:

<IfModule ssl_module>
SSLRandomSeed startup builtin
SSLRandomSeed connect builtin
</IfModule>


#BEGIN PHP INSTALLER EDITS - REMOVE ONLY ON UNINSTALL
ScriptAlias /php/ "C:/PHP/"
Action application/x-httpd-php "C:/PHP/php-cgi.exe"
PHPIniDir "C:/PHP/"
LoadModule php5_module "C:/PHP/php5apache2_2.dll"
PHPIniDir "C:/PHP/"
LoadModule php5_module "C:/PHP/php5apache2.dll"
PHPIniDir "C:/PHP/"
LoadModule php5_module "C:/PHP/php5apache.dll"
#END PHP INSTALLER EDITS - REMOVE ONLY ON UNINSTALL

and line 490 is the second PHPIniDir "C:/PHP/"

Why I am getting this error is beyond me because as far as I can tell Apache isn't running... it was, then I had to shut it down during the php instalation process and now it's not running according to the icon in the bottom right of my screen. I have tried to start it again, but to no avail.

During the installation of PHP, there was the option to install for a number of differing server types, one was Apache and I went with that as it seems to be the one to go with, but other options available were Windows IIS ISAPi or IISCGI and more options. Why can't I use these instead of Apache? Are there any limitations in doing so?

Thanks

Mat
This topic has been closed for replies.

1 reply

Inspiring
August 15, 2008
.oO(matthew stuart)

>[warn] module php5_module is already loaded, skipping
>
> Syntax error on line 490 of C:/Program Files/Apache Software
>Foundation/Apache2.2/conf/httpd.conf:
> Only first PHPINIDir Directive honored per configuration tree - subsequent
>ones ignored
>
> this is the code (as I'm sure you know) in the conf file:
>
> <IfModule ssl_module>
> SSLRandomSeed startup builtin
> SSLRandomSeed connect builtin
> </IfModule>
>
>
> #BEGIN PHP INSTALLER EDITS - REMOVE ONLY ON UNINSTALL
> ScriptAlias /php/ "C:/PHP/"
> Action application/x-httpd-php "C:/PHP/php-cgi.exe"
> PHPIniDir "C:/PHP/"
> LoadModule php5_module "C:/PHP/php5apache2_2.dll"
> PHPIniDir "C:/PHP/"
> LoadModule php5_module "C:/PHP/php5apache2.dll"
> PHPIniDir "C:/PHP/"
> LoadModule php5_module "C:/PHP/php5apache.dll"
> #END PHP INSTALLER EDITS - REMOVE ONLY ON UNINSTALL
>
> and line 490 is the second PHPIniDir "C:/PHP/"
>
> Why I am getting this error is beyond me because as far as I can tell Apache
>isn't running... it was, then I had to shut it down during the php instalation
>process and now it's not running according to the icon in the bottom right of
>my screen. I have tried to start it again, but to no avail.

There can only be one PHP 5 module loaded, but the configuration above
tries to load three of them. Just use the one for your version of Apache
and remove the others.

> During the installation of PHP, there was the option to install for a number
>of differing server types, one was Apache and I went with that as it seems to
>be the one to go with, but other options available were Windows IIS ISAPi or
>IISCGI and more options. Why can't I use these instead of Apache?

Why do you want to use IIS instead of Apache? Of course it's possible,
but rather uncommon.

Micha