Re: PHP doesn't process pages

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Friday 20 April 2012 23:38:47 Noel Butler wrote:
> On Fri, 2012-04-20 at 22:39 -0400, John Iliffe wrote:
> > 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
> 
> AddType application/x-httpd-php .php

I did this and get the same result as before.

The complete PHP configuration is:

  LoadModule php5_module        modules/libphp5.so

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

AddType application/x-httpd-php .php

Here is the entire error_log for the test run.  I selected 4 .php pages and 
notice that I recorded 4 segfaults.  It would appear that every reference 
to the PHP handler causes a segfault and then serves the page in raw form.  
Does this suggest anything to you?  I checked but Apache is not writing any 
core dumps at the moment.

The only other odd point I noticed is the first line about slotmem but I 
really have no idea what this is or means.

[Sun Apr 22 00:16:39.307037 2012] [lbmethod_heartbeat:notice] [pid 3924:tid 
47553958730416] AH02282: No slotmem from mod_heartmonitor

[Sun Apr 22 00:16:39.336773 2012] [mpm_event:notice] [pid 3924:tid 
47553958730416] AH00489: Apache/2.4.1 (Unix) OpenSSL/0.9.8e-fips-rhel5 
PHP/5.4.0 configured -- resuming normal operations

[Sun Apr 22 00:16:39.336913 2012] [core:notice] [pid 3924:tid 
47553958730416] AH00094: Command line: '/usr/apache-2.4.1/bin/httpd'

[Sun Apr 22 00:16:47.341351 2012] [core:notice] [pid 3924:tid 
47553958730416] AH00052: child pid 3926 exit signal Segmentation fault (11)

[Sun Apr 22 00:16:47.341478 2012] [core:notice] [pid 3924:tid 
47553958730416] AH00052: child pid 3955 exit signal Segmentation fault (11)

[Sun Apr 22 00:17:02.348462 2012] [core:notice] [pid 3924:tid 
47553958730416] AH00052: child pid 4009 exit signal Segmentation fault (11)

[Sun Apr 22 00:17:02.348598 2012] [core:notice] [pid 3924:tid 
47553958730416] AH00052: child pid 4039 exit signal Segmentation fault (11)

[Sun Apr 22 00:17:09.602969 2012] [mpm_event:notice] [pid 3924:tid 
47553958730416] AH00491: caught SIGTERM, shutting down



Finally, just in case it is of use, here is the entire console listing for 
the run:

================================================

[root@prod2 John]# /usr/apache-2.2.14/bin/apachectl -k stop
[root@prod2 John]# /usr/apache-2.4.1/bin/apachectl -k stop
httpd (no pid file) not running
[root@prod2 John]# /usr/apache-2.4.1/bin/apachectl -k start  <---2.4.1  
		                                                      starts here
[root@prod2 John]# ps -ef | grep httpd
root      4414     1  2 00:31 ?        00:00:00 /usr/apache-2.4.1/bin/httpd 
-k start
apache    4415  4414  0 00:31 ?        00:00:00 /usr/apache-2.4.1/bin/httpd 
-k start
apache    4417  4414  0 00:31 ?        00:00:00 /usr/apache-2.4.1/bin/httpd 
-k start
apache    4445  4414  0 00:31 ?        00:00:00 /usr/apache-2.4.1/bin/httpd 
-k start
root      4501  3891  0 00:31 pts/0    00:00:00 grep httpd
[root@prod2 John]# /usr/apache-2.4.1/bin/apachectl -M
Loaded Modules:
 core_module (static)
 so_module (static)
 http_module (static)
 mpm_event_module (static)
 authn_file_module (shared)
 authn_core_module (shared)
 authz_host_module (shared)
 authz_groupfile_module (shared)
 authz_user_module (shared)
 authz_core_module (shared)
 access_compat_module (shared)
 auth_basic_module (shared)
 socache_shmcb_module (shared)
 reqtimeout_module (shared)
 filter_module (shared)
 mime_module (shared)
 log_config_module (shared)
 env_module (shared)
 headers_module (shared)
 setenvif_module (shared)
 version_module (shared)
 proxy_module (shared)
 proxy_connect_module (shared)
 proxy_ftp_module (shared)
 proxy_http_module (shared)
 proxy_fcgi_module (shared)
 proxy_scgi_module (shared)
 proxy_ajp_module (shared)
 proxy_balancer_module (shared)
 proxy_express_module (shared)
 slotmem_shm_module (shared)
 ssl_module (shared)
 lbmethod_byrequests_module (shared)
 lbmethod_bytraffic_module (shared)
 lbmethod_bybusyness_module (shared)
 lbmethod_heartbeat_module (shared)
 unixd_module (shared)
 status_module (shared)
 autoindex_module (shared)
 dir_module (shared)
 alias_module (shared)
 php5_module (shared)
[root@prod2 John]# /usr/apache-2.4.1/bin/apachectl -k stop
[root@prod2 John]# /usr/apache-2.2.14/bin/apachectl -k start

==========================================

Regards,

John

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux