php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #38205 Not start as module Apache 2.0.58
Submitted: 2006-07-25 09:27 UTC Modified: 2007-01-25 01:00 UTC
Votes:12
Avg. Score:4.1 ± 1.0
Reproduced:9 of 10 (90.0%)
Same Version:4 (44.4%)
Same OS:5 (55.6%)
From: akorolyov at gmail dot com Assigned: edink (profile)
Status: No Feedback Package: Apache2 related
PHP Version: 6CVS-2006-07-25 (snap) OS: WinXP 5.1.2600 SP1 build 2600
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2006-07-25 09:27 UTC] akorolyov at gmail dot com
Description:
------------
C:\Documents and Settings\user>apache -v
Server version: Apache/2.0.58
Server built:   Apr 29 2006 17:47:10

httpd.conf

LoadModule php6_module "d:/web/php6/php6apache2.dll"
PHPIniDir "d:/web/php6"
AddType application/x-httpd-php .php
AddType application/x-httpd-phps .phps

Have error

Syntax error on line 175 of D:/web/Apache/conf/httpd.conf:
Can't locate API module structure `php6_module' in file D:/web/php6/php6apache2.dll: No error
Note the errors or messages above, and press the <ESC> key to exit.  28...


Patches

Add a Patch

Pull Requests

Pull requests:

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-07-25 09:34 UTC] edink@php.net
I belive its still called php5_module.
 [2006-07-26 09:25 UTC] akorolyov at gmail dot com
If i change to

LoadModule php5_module "d:/web/php6/php6apache2.dll"

apache not started and i have clear output.
 [2006-07-26 09:37 UTC] tony2001@php.net
>apache not started and i have clear output.
what does this mean?
 [2006-07-26 10:04 UTC] akorolyov at gmail dot com
sorry for my english.... it's not my native lang.

D:\web\Apache\bin>apache -v
Server version: Apache/2.0.58
Server built:   Apr 29 2006 17:47:10

LoadModule php6_module "d:/web/php6/php6apache2.dll"
SetEnv PHPRC "d:/web/php6"
AddType application/x-httpd-php .php
AddType application/x-httpd-phps .phps

Output in console 
=========================
D:\web\Apache\bin>apache -k start
Syntax error on line 177 of D:/web/Apache/conf/httpd.conf:
Can't locate API module structure `php6_module' in file D:/web/php6/php6apache2.dll: No error
=========================

LoadModule php5_module "d:/web/php6/php6apache2.dll"
SetEnv PHPRC "d:/web/php6"
AddType application/x-httpd-php .php
AddType application/x-httpd-phps .phps

Output in console
=========================
D:\web\Apache\bin>apache -k start
=========================
apache not work and error log is empty

LoadModule php_module "d:/web/php6/php6apache2.dll"
SetEnv PHPRC "d:/web/php6"
AddType application/x-httpd-php .php
AddType application/x-httpd-phps .phps


Output in console
=============================================

D:\web\Apache\bin>apache -k start
Syntax error on line 177 of D:/web/Apache/conf/httpd.conf:
Can't locate API module structure `php_module' in file D:/web/php6/php6apache2.dll: No error

D:\web\Apache\bin>
 [2006-07-26 10:18 UTC] tony2001@php.net
>LoadModule php_module "d:/web/php6/php6apache2.dll"

php_module != php5_module
 [2006-07-26 10:48 UTC] akorolyov at gmail dot com
And php6_module != php5_module

php_module it's just small test.
 [2006-07-26 11:23 UTC] tony2001@php.net
I don't get it.
So does php5_module work or not? And if it doesn't work - what exactly do you get?
 [2006-07-26 12:22 UTC] akorolyov at gmail dot com
with this config

LoadModule php5_module "d:/web/php6/php6apache2.dll"
SetEnv PHPRC "d:/web/php6"
AddType application/x-httpd-php .php
AddType application/x-httpd-phps .phps

trying to start apache 

D:\web\Apache\bin>Apache.exe -e debug -k start
[Wed Jul 26 15:16:24 2006] [debug] mod_so.c(248): loaded module access_module
[Wed Jul 26 15:16:24 2006] [debug] mod_so.c(248): loaded module actions_module
[Wed Jul 26 15:16:24 2006] [debug] mod_so.c(248): loaded module alias_module
[Wed Jul 26 15:16:24 2006] [debug] mod_so.c(248): loaded module asis_module
[Wed Jul 26 15:16:24 2006] [debug] mod_so.c(248): loaded module auth_module
[Wed Jul 26 15:16:24 2006] [debug] mod_so.c(248): loaded module autoindex_module
[Wed Jul 26 15:16:24 2006] [debug] mod_so.c(248): loaded module cgi_module
[Wed Jul 26 15:16:24 2006] [debug] mod_so.c(248): loaded module dir_module
[Wed Jul 26 15:16:24 2006] [debug] mod_so.c(248): loaded module env_module
[Wed Jul 26 15:16:24 2006] [debug] mod_so.c(248): loaded module imap_module
[Wed Jul 26 15:16:24 2006] [debug] mod_so.c(248): loaded module include_module
[Wed Jul 26 15:16:24 2006] [debug] mod_so.c(248): loaded module isapi_module
[Wed Jul 26 15:16:24 2006] [debug] mod_so.c(248): loaded module log_config_module
[Wed Jul 26 15:16:24 2006] [debug] mod_so.c(248): loaded module mime_module
[Wed Jul 26 15:16:24 2006] [debug] mod_so.c(248): loaded module negotiation_module
[Wed Jul 26 15:16:24 2006] [debug] mod_so.c(248): loaded module rewrite_module
[Wed Jul 26 15:16:24 2006] [debug] mod_so.c(248): loaded module setenvif_module
[Wed Jul 26 15:16:24 2006] [debug] mod_so.c(248): loaded module userdir_module
[Wed Jul 26 15:16:24 2006] [debug] mod_so.c(248): loaded module php5_module

D:\web\Apache\bin>

apache error.log is empty

have 3 messages in system journal from Service Control Manager,  
that service "Apache2" send signal "start"
than
srvice "Apache2" go to status stopped
than 
Service "Apache2" terminated with internal error 1 (0x1)
 [2006-07-26 16:30 UTC] tony2001@php.net
Edin, could you check it out please?
 [2006-11-28 18:14 UTC] oldimp at gmail dot com
try

LoadModule php5_module "%php%/php6apache2_2.dll"

By me it works :)
 [2007-01-17 21:11 UTC] tony2001@php.net
Please try using this CVS snapshot:

  http://snaps.php.net/php6.0-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php6.0-win32-latest.zip


 [2007-01-25 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
 [2008-03-05 23:20 UTC] dillydadally at yahoo dot com
I know this is basically closed, but I had the same problem and got it to work by putting this line in:

LoadModule php6_module "d:/web/php6/php6apache2_2.dll"

Notice that instead of loading php6apache2.dll I'm loading php6apache2_2.dll (for 2.2 rather than 2.0).  Both dll's were in my php, but apparently the module was only found in the 2.2 version.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat May 11 10:01:30 2024 UTC