Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
0

PHP already loaded!!

Enthusiast ,
Aug 15, 2008 Aug 15, 2008
[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
TOPICS
Server side applications
1.4K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Aug 15, 2008 Aug 15, 2008
LATEST
.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
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines