#19729 [Fbk->Opn]: LoadModule crashes Apache 2.0.42

From: Date: Wed, 09 Oct 2002 15:58:49 +0000
Subject: #19729 [Fbk->Opn]: LoadModule crashes Apache 2.0.42
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-21935@lists.php.net to get a copy of this message
ID: 19729 User updated by: ivan.havlicek@free.fr Reported By: ivan.havlicek@free.fr -Status: Feedback +Status: Open Bug Type: Apache2 related Operating System: Linux 2.4.16 #26 SMP PHP Version: 4.2.3 New Comment: 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... Previous Comments: ------------------------------------------------------------------------ [2002-10-09 10:26:44] 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 09:56:20] ivan.havlicek@free.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 09:33:22] sniper@php.net You only need the 'LoadModule' and 'AddType' lines.. ------------------------------------------------------------------------ [2002-10-09 03:39:18] ivan.havlicek@free.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 03:28:54] ivan.havlicek@free.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 ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/19729 -- Edit this bug report at http://bugs.php.net/?id=19729&edit=1

« previous php.bugs (#21935) next »