module mod_php4.c is already added, skipping

This is a discussion on module mod_php4.c is already added, skipping within the Windows Web Servers forums, part of the Web Server and Related Forums category; PHP is not being loaded. the module is only being loaded once: C:\Program Files\Apache Group\Apache>apache [...


Go Back   Usenet Forums > Web Server and Related Forums > Windows Web Servers

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 07-02-2004
Jim Michaels
 
Posts: n/a
Default module mod_php4.c is already added, skipping

PHP is not being loaded. the module is only being loaded once:

C:\Program Files\Apache Group\Apache>apache
[Thu Jul 01 14:41:51 2004] [warn] module mod_php4.c is already added,
skipping
[Thu Jul 01 14:41:51 2004] [warn] (2)No such file or directory: exec()
may not be safe
Apache/1.3.31 (Win32) running...

and in the eror log I see:

C:\Program Files\Apache Group\Apache\logs>type error.log
[Thu Jul 01 14:42:44 2004] [error] Cannot remove module mod_php4.c:
not found in module list
[Thu Jul 01 14:42:45 2004] [warn] module mod_php4.c is already added,
skipping
[Thu Jul 01 14:42:45 2004] [warn] exec() may not be safe
[Thu Jul 01 14:42:45 2004] [warn] exec() may not be safe
[Thu Jul 01 14:42:45 2004] [warn] module mod_php4.c is already added,
skipping
[Thu Jul 01 14:42:45 2004] [warn] exec() may not be safe
[Thu Jul 01 14:42:45 2004] [warn] exec() may not be safe

Jim Michaels
  #2 (permalink)  
Old 07-02-2004
Claire Tucker
 
Posts: n/a
Default Re: module mod_php4.c is already added, skipping

On 2 Jul 2004 13:28:45 -0700, jmichae3@yahoo.com (Jim Michaels) wrote:

>PHP is not being loaded. the module is only being loaded once:
>
>C:\Program Files\Apache Group\Apache>apache
>[Thu Jul 01 14:41:51 2004] [warn] module mod_php4.c is already added,
>skipping
>[Thu Jul 01 14:41:51 2004] [warn] (2)No such file or directory: exec()
>may not be safe
>Apache/1.3.31 (Win32) running...
>
>and in the eror log I see:
>

[snip]

This might be easier to diagnose if you supply the output of the
following command:
apache -l

and also a list of all of the LoadModule, ClearModuleList and
AddModule directives in your httpd.conf and any other configuration
files you are including.

Also, what version of Apache are you running and did you compile it
yourself or get the binary distribution from apache.org?

Best regards,
-Claire
  #3 (permalink)  
Old 07-04-2004
Jim Michaels
 
Posts: n/a
Default Re: module mod_php4.c is already added, skipping

Amazingly, PHP isn't in the list. I get the same problem. I'm
running win95b, apache 1.3.31 (2.0.49 just hangs).
C:\Program Files\Apache Group\Apache>apache -l
Compiled-in modules:
http_core.c
mod_so.c
mod_mime.c
mod_access.c
mod_auth.c
mod_negotiation.c
mod_include.c
mod_autoindex.c
mod_dir.c
mod_cgi.c
mod_userdir.c
mod_alias.c
mod_env.c
mod_log_config.c
mod_asis.c
mod_imap.c
mod_actions.c
mod_setenvif.c
mod_isapi.c

I used the recommended PHP insertions according to the install.txt in
php 4.3.7, as follows:
LoadModule php4_module c:/php4.3.3/sapi/php4apache.dll
AddModule mod_php4.c
AddType application/x-httpd-php .php

besides the virtual hosting, everything else is defaults.

Claire Tucker <fake@invalid.com> wrote in message news:<jcjbe05i8fr7rvh37sov3itr0hrtotel4h@4ax.com>. ..
> On 2 Jul 2004 13:28:45 -0700, jmichae3@yahoo.com (Jim Michaels) wrote:
>
> >PHP is not being loaded. the module is only being loaded once:
> >
> >C:\Program Files\Apache Group\Apache>apache
> >[Thu Jul 01 14:41:51 2004] [warn] module mod_php4.c is already added,
> >skipping
> >[Thu Jul 01 14:41:51 2004] [warn] (2)No such file or directory: exec()
> >may not be safe
> >Apache/1.3.31 (Win32) running...
> >
> >and in the eror log I see:
> >

> [snip]
>
> This might be easier to diagnose if you supply the output of the
> following command:
> apache -l
>
> and also a list of all of the LoadModule, ClearModuleList and
> AddModule directives in your httpd.conf and any other configuration
> files you are including.
>
> Also, what version of Apache are you running and did you compile it
> yourself or get the binary distribution from apache.org?
>
> Best regards,
> -Claire

  #4 (permalink)  
Old 07-04-2004
Claire Tucker
 
Posts: n/a
Default Re: module mod_php4.c is already added, skipping

On 3 Jul 2004 17:14:18 -0700, jmichae3@yahoo.com (Jim Michaels) wrote:
>
>I used the recommended PHP insertions according to the install.txt in
>php 4.3.7, as follows:
>LoadModule php4_module c:/php4.3.3/sapi/php4apache.dll
>AddModule mod_php4.c
>AddType application/x-httpd-php .php
>


I think removing the AddModule line will make the message go away.
LoadModule automatically adds the resulting module to the list; you
only need AddModule if you include a ClearModuleList directive in
order to re-populate the active module list.

Good luck,
-Claire
  #5 (permalink)  
Old 07-06-2004
Jim Michaels
 
Posts: n/a
Default Re: module mod_php4.c is already added, skipping

C:\Program Files\Apache Group\Apache>apache -l
Compiled-in modules:
http_core.c
mod_so.c
mod_mime.c
mod_access.c
mod_auth.c
mod_negotiation.c
mod_include.c
mod_autoindex.c
mod_dir.c
mod_cgi.c
mod_userdir.c
mod_alias.c
mod_env.c
mod_log_config.c
mod_asis.c
mod_imap.c
mod_actions.c
mod_setenvif.c
mod_isapi.c

Apache isn't loading the PHP module.

jmichae3@yahoo.com (Jim Michaels) wrote in message news:<99f9d3d7.0407021228.508dfa1f@posting.google. com>...
> PHP is not being loaded. the module is only being loaded once:
>
> C:\Program Files\Apache Group\Apache>apache
> [Thu Jul 01 14:41:51 2004] [warn] module mod_php4.c is already added,
> skipping
> [Thu Jul 01 14:41:51 2004] [warn] (2)No such file or directory: exec()
> may not be safe
> Apache/1.3.31 (Win32) running...
>
> and in the eror log I see:
>
> C:\Program Files\Apache Group\Apache\logs>type error.log
> [Thu Jul 01 14:42:44 2004] [error] Cannot remove module mod_php4.c:
> not found in module list
> [Thu Jul 01 14:42:45 2004] [warn] module mod_php4.c is already added,
> skipping
> [Thu Jul 01 14:42:45 2004] [warn] exec() may not be safe
> [Thu Jul 01 14:42:45 2004] [warn] exec() may not be safe
> [Thu Jul 01 14:42:45 2004] [warn] module mod_php4.c is already added,
> skipping
> [Thu Jul 01 14:42:45 2004] [warn] exec() may not be safe
> [Thu Jul 01 14:42:45 2004] [warn] exec() may not be safe
>
> Jim Michaels

  #6 (permalink)  
Old 07-15-2004
Jim Michaels
 
Posts: n/a
Default Re: module mod_php4.c is already added, skipping

I still get the exec() error msg and no PHP. Apache pretends PHP
isn't there. strangely, PHP files are treated like a download, even
with the AddType directive.
C:\Program Files\Apache Group\Apache>apache
[Wed Jul 14 21:41:05 2004] [warn] exec() may not be safe
Apache/1.3.31 (Win32) running...
C:\Program Files\Apache Group\Apache>type logs\error.log
[Wed Jul 14 21:42:20 2004] [error] Cannot remove module mod_php4.c:
not found in
module list
[Wed Jul 14 21:42:20 2004] [warn] exec() may not be safe
[Wed Jul 14 21:42:20 2004] [warn] exec() may not be safe
[Wed Jul 14 21:42:21 2004] [warn] exec() may not be safe
[Wed Jul 14 21:42:21 2004] [warn] exec() may not be safe
[Wed Jul 14 21:42:28 2004] [error] Cannot remove module mod_php4.c:
not found in
module list
[Wed Jul 14 21:42:28 2004] [error] Cannot remove module mod_php4.c:
not found in
module list

I am not sure why I get multiple errors like this.

> >I used the recommended PHP insertions according to the install.txt in
> >php 4.3.7, as follows:
> >LoadModule php4_module c:/php4.3.3/sapi/php4apache.dll
> >AddModule mod_php4.c
> >AddType application/x-httpd-php .php

>
> I think removing the AddModule line will make the message go away.
> LoadModule automatically adds the resulting module to the list; you
> only need AddModule if you include a ClearModuleList directive in
> order to re-populate the active module list.

  #7 (permalink)  
Old 08-06-2004
David Off
 
Posts: n/a
Default Re: module mod_php4.c is already added, skipping

jmichae3@yahoo.com (Jim Michaels) wrote in message news:<99f9d3d7.0407142048.136e19df@posting.google. com>...
> I still get the exec() error msg and no PHP. Apache pretends PHP
> isn't there. strangely, PHP files are treated like a download, even
> with the AddType directive.


Just to follow this up as I didn't see a solution. This had me baffled
too for oooh, all of about 30 seconds. If you look in the httpd.conf
file you can't just put stuff where you want. The PHP4 docs are not
very clear on this.

The document types need to go

#
# Document types need to be added once the mod_mime.c module is
loaded, in this section:

#
<IfModule mod_mime.c>
</IfModule>

the AddModule directive should go after all the other AddModule
directives, eg

....
AddModule mod_setenvif.c
AddModule mod_php4.c


I've replied to this in case anyone searches for the answer with
Google.
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 10:21 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0