php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #26263 Apache doesn't start up wiht LoadModule phpX_module .. in config
Submitted: 2003-11-15 11:23 UTC Modified: 2004-01-28 21:03 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:0 (0.0%)
Same OS:1 (100.0%)
From: peoyli at bredband dot net Assigned:
Status: Not a bug Package: Apache2 related
PHP Version: Irrelevant OS: OpenBSD 3.4
Private report: No CVE-ID: None
 [2003-11-15 11:23 UTC] peoyli at bredband dot net
Description:
------------
Apache 2.0.xx (tested with 2.0.48, 2.0.47, 2.0.45, 2.0.43...)
doesn't start up at all when the LoadModule line for php (4.3.4, 4.3.0, 4cvs, 5beta) exists in the httpd.conf file for Apache.

No error message is printed to the console, and nothing new is appended to the error_log. Even apachectl fails without message (no "..started" or "..is running" or "is not running" when tested with different parameters).

Similar bug reports are using a lot earlier versions of either Apache (1.3) or PHP (3).

Reproduce code:
---------------
mysql 4.0.16 installed and tested previously.

installed as described on
http://www.php.net/manual/en/install.apache2.php

when my usual compilation and installation resulted in the exact same problems.

The only difference is that Apache uses "modules" as module directory by default ("libexec" is named in the PHP documentation, which is incorrect).


Expected result:
----------------
a working apache+php+mysql installation

I have tried without using --enable-mysql with the same results.

Actual result:
--------------
httpd is not started


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-11-15 13:34 UTC] iliaa@php.net
What error does it give?
 [2003-11-15 13:50 UTC] peoyli at bredband dot net
the apachectl command gives me no error at all, it just doesn't start apache, and if I happened to have a previous started httpd (without the LoadModule line for PHP), I can't use apachectl to stop it either.
 [2003-11-16 13:15 UTC] iliaa@php.net
Have you tried running:
apachectl configtest ?
 [2003-11-16 15:48 UTC] peoyli at bredband dot net
no output using 'apachectl configtest'. Seems like httpd crasches as soon as the LoadModule line is appended to the configuration.
 [2003-11-16 15:52 UTC] peoyli at bredband dot net
One other note:

I DID get it running using the internal mysql support (no path given to --with-mysql) after some hassle. I also now have PHP 5 running together with mysql 4.1.0 alpha.

The problem seems to have something to do with mysql 4.0.16 (haven't tried earlier versions), although, as I mentioned before, there is not problem with mysql 4.0.16 by itself.
 [2003-11-18 02:00 UTC] peoyli at bredband dot net
PHP5 + MySQL 4.1 core dumps when calling mysql related functions (mysql_connect ...). I will try the internal support for mysql 4.0.16 or older.
 [2003-11-18 17:13 UTC] iliaa@php.net
Are you loading any modules and/or extensions via php.ini?
 [2003-11-18 18:11 UTC] peoyli at bredband dot net
I'm using just one of the sample php.ini's (php.ini-recommended). No enabled extensions there, what I can see.
 [2003-12-31 17:52 UTC] root at md5 dot com dot ar
I have the same problem, with my php compiled with --with-mysql but adding in the /etc/rc.conf this shlib_dirs="/usr/local/mysql/lib/mysql",
 apache start up normarly.
 [2004-01-28 21:03 UTC] sniper@php.net
Not PHP bug.

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri May 10 07:01:31 2024 UTC