Return-Path: X-Original-To: apmail-httpd-users-archive@www.apache.org Delivered-To: apmail-httpd-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id E9D6595D7 for ; Sun, 22 Apr 2012 04:42:22 +0000 (UTC) Received: (qmail 86698 invoked by uid 500); 22 Apr 2012 04:42:20 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 86064 invoked by uid 500); 22 Apr 2012 04:42:12 -0000 Mailing-List: contact users-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: users@httpd.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list users@httpd.apache.org Received: (qmail 86007 invoked by uid 99); 22 Apr 2012 04:42:10 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 22 Apr 2012 04:42:10 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of john.iliffe@iliffe.ca designates 206.248.138.118 as permitted sender) Received: from [206.248.138.118] (HELO iliffe.ca) (206.248.138.118) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 22 Apr 2012 04:42:04 +0000 X-Default-Received-SPF: pass (skip=loggedin (res=PASS)) x-ip-name=192.168.1.10; Received: from wkstn01.iliffe.ca (unverified [192.168.1.10]) by iliffe.ca (SurgeMail 4.3e) with ESMTP id 4775-1594962 for ; Sun, 22 Apr 2012 00:41:42 -0400 From: John Iliffe To: users@httpd.apache.org Date: Sun, 22 Apr 2012 00:41:40 -0400 User-Agent: KMail/1.13.3 (Linux/2.6.33.7-desktop-2mnb; KDE/4.4.3; x86_64; ; ) References: <201204202239.44819.john.iliffe@iliffe.ca> <1334979527.4675.5.camel@tardis> In-Reply-To: <1334979527.4675.5.camel@tardis> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-15" Content-Transfer-Encoding: 7bit Message-Id: <201204220041.40553.john.iliffe@iliffe.ca> X-Authenticated-User: john.iliffe@iliffe.ca X-Virus-Checked: Checked by ClamAV on apache.org Subject: Re: [users@httpd] PHP doesn't process pages 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 SetHandler application/x-httpd-php 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@httpd.apache.org For additional commands, e-mail: users-help@httpd.apache.org