php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #19729 LoadModule crashes Apache 2.0.42
Submitted: 2002-10-02 19:18 UTC Modified: 2002-10-10 09:34 UTC
From: ivan dot havlicek at free dot fr Assigned:
Status: Closed Package: Apache2 related
PHP Version: 4.2.3 OS: Linux 2.4.16 #26 SMP
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: ivan dot havlicek at free dot fr
New email:
PHP Version: OS:

 

 [2002-10-02 19:18 UTC] ivan dot havlicek at free dot fr
Apache :
./configure --enable-ssl --enable-dav --enable-info --enable-cgi --enable-vhost-alias --enable-dav-fs --enable-userdir --enable-so --enable-usertrack --enable-status
make && make install
Ok.

PHP :
./configure --with-apxs2=/usr/local/apache2/bin/apxs --with-pgsql --with-ldap --with-mysql=/usr/local/mysql --with-tsrm-pth
make && make install
Ok.

When I uncomment the line :
#LoadModule php4_module        modules/libphp4.so
in my httpd.conf file, apache2 dont restart.

The last error_log contain no specific traces and I dont know how have more informations (debug mode).

Note :
I've another apache server Apache/1.3.20 with PHP/4.2.1 running on this machine.

Thank's for all.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-10-02 20:56 UTC] sniper@php.net
Please try using this CVS snapshot:

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


 [2002-10-09 03:28 UTC] ivan dot havlicek at free dot fr
I've download latest tar (php4-200210030000), Apache starts without problems ;-)) but ... the pre-processor dont work :-((
Perhaps, I have bad configuration ?
I use these lines in my httpd.conf file :
-----------------
<IfModule mod_so.c>
        LoadModule php4_module        modules/libphp4.so
</IfModule>
<IfModule mod_php4.c>
        AddType application/x-httpd-php .php .php3 .phps
# First try :
        AddInputFilter PHP .php .php3 .phps
        AddOutputFilter PHP .php .php3 .phps
# Second try :
        <Files *.php>
                SetInputFilter PHP
                SetOutputFilter PHP
        </Files>
        php_flag safe_mode on
</IfModule>
--------------------

Dont care about my poor english (french guy) and thank's for all.
--
                                            Ivan
 [2002-10-09 03:39 UTC] ivan dot havlicek at free dot fr
Precision :
When I wrote "dont work", I mean than any <? php statement ?>
is processed. The HTML file is delivered as it is.
 [2002-10-09 09:33 UTC] sniper@php.net
You only need the 'LoadModule' and 'AddType' lines..

 [2002-10-09 09:56 UTC] ivan dot havlicek at free dot fr
If I put only the lines :
--
LoadModule php4_module        modules/libphp4.so
AddType application/x-httpd-php .php .php3 .phps
--
It's still not working. nada...
 [2002-10-09 10:26 UTC] sniper@php.net
Did you stop/start apache after changing this? And I don't mean 'restart' but real 'apachectl stop' and 'apachectl start' ?

Also, are you sure you don't have short-tags disabled?
Try this script:

test.php
<?php phpinfo(); ?>


And make sure that 'Addtype' line is LAST line in the apache conf..

 [2002-10-09 10:58 UTC] ivan dot havlicek at free dot fr
I stop and start the server evry time I make a test.

I've compiled with short-tags :
./configure  --with-apache2 --with-apxs2=/usr/local/apache2/bin/apxs --with-pgsql --with-ldap --with-mysql=/usr/local/mysql --with-tsrm-pth --enable-short-tags

I put the line
AddType application/x-httpd-php .php .php3 .phps
at the end of my http.conf file
And nothing...
The Type seems to be recognized : mozilla display the content of the php file. If I dont add the Type; mozilla
ask me what to do with this unknow type file.
The module seems to be present, but it parse nothing...
 [2002-10-09 11:01 UTC] rasmus@php.net
Apache2+PHP 4.2.x are nowhere near production quality.  Try the latest CVS snapshot from snaps.php.net.  But, even that will not be very stable.  We suggest you stick with Apache 1.3.x if you are going to use PHP.
 [2002-10-10 09:34 UTC] ivan dot havlicek at free dot fr
It works !

In the httpd.conf file, I've only the line :
LoadModule php4_module        modules/libphp4.so
I added a new line in the mime.types :
application/x-httpd-php         php php3 phps
and it works... I dont know really why, but It seems ok.

Thank you.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun May 12 12:01:30 2024 UTC