Apache-2.4.1, PHP 5.4.0 new installation.

PHP pages are being served as raw data, leading to a browser response "You 
have chosen to download a file of type php; what should FireFox do with 
this?" and an option to save or open with KWrite.

I asked this question before and it was suggested that I move PHP to be a 
fast CGI module but after reading the PHP docs they strongly recommend that 
you don't do that.  Also recommended that I upgrade to Apache 2.4.2 but 
unless that is the cause of the problem I don't want to get distracted.  I 
have a serious time constraint to get this going.

So, to recap the original question:

- apachectl -M responds:  php5_module (shared)

- all PHP page requests are served as raw pages, not processed by PHP

- config file contains:
    LoadModule php5_module        modules/libphp5.so

   <Filesmatch \.php$>
        SetHandler application/x-httpd-php 
   </FilesMatch>

(these were added by PHP when I installed it).  There are no other 
references in the config file to PHP.  There are no references to PHP in the 
mime.types file.

I have checked the logs carefully with the result that I noticed that all 
of the child processes will segfault at some point:

[Fri Apr 20 21:13:48.529397 2012] [lbmethod_heartbeat:notice] [pid 
25507:tid 47082556861104] AH02282: No slotmem from mod_heartmonitor

[Fri Apr 20 21:13:48.559272 2012] [mpm_event:notice] [pid 25507:tid 
47082556861104] AH00489: Apache/2.4.1 (Unix) OpenSSL/0.9.8e-fips-rhel5 
PHP/5.4.0 configured -- resuming normal operations

[Fri Apr 20 21:13:48.559410 2012] [core:notice] [pid 25507:tid 
47082556861104] AH00094: Command line: '/usr/apache-2.4.1/bin/httpd'

[Fri Apr 20 21:13:58.564721 2012] [core:notice] [pid 25507:tid 
47082556861104] AH00052: child pid 25538 exit signal Segmentation fault 
(11)

This is the first 4 lines of the log after a start up.

I have no evidence that the child failures are caused by PHP but the fact 
that PHP used to work (2.2.14) and doesn't now suggests that this may be a 
related issue.

Can anyone help?

Thanks.

John




---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org

Reply via email to