Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Apache: Users
PHP doesn't process pages
 

Index | Next | Previous | View Flat


john.iliffe at iliffe

Apr 20, 2012, 7:39 PM


Views: 977
Permalink
PHP doesn't process pages

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-unsubscribe [at] httpd
For additional commands, e-mail: users-help [at] httpd

Subject User Time
PHP doesn't process pages john.iliffe at iliffe Apr 20, 2012, 7:39 PM
    Re: PHP doesn't process pages noel.butler at ausics Apr 20, 2012, 8:38 PM
        Re: PHP doesn't process pages noel.butler at ausics Apr 20, 2012, 8:43 PM
        Re: PHP doesn't process pages john.iliffe at iliffe Apr 21, 2012, 9:41 PM
            Re: PHP doesn't process pages noel.butler at ausics Apr 22, 2012, 12:34 AM
                Re: PHP doesn't process pages noel.butler at ausics Apr 22, 2012, 4:08 AM
                    Re: PHP doesn't process pages wrowe at rowe-clan Apr 22, 2012, 10:49 AM
                Re: PHP doesn't process pages john.iliffe at iliffe Apr 22, 2012, 5:42 PM
                    Re: PHP doesn't process pages john.iliffe at iliffe Apr 23, 2012, 2:05 PM
                    Re: PHP doesn't process pages noel.butler at ausics Apr 24, 2012, 4:26 AM
                Re: PHP doesn't process pages john.iliffe at iliffe Apr 22, 2012, 6:00 PM
                    Re: PHP doesn't process pages noel.butler at ausics Apr 24, 2012, 4:29 AM

  Index | Next | Previous | View Flat
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.