Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com From: Sam Edge To: cygwin AT cygwin DOT com Subject: Re: apache PHP segmentation fault Date: Thu, 09 May 2002 19:29:59 +0100 Organization: . Reply-To: cygwin AT cygwin DOT com Message-ID: <88dldugtt8sfdql1r3inb85uq47frqnuqu@4ax.com> References: <01ufduo7c330fgmratp0qgfrgqkdv7upa8 AT 4ax DOT com> <3CD92533 DOT 9B0A0147 AT wapme-systems DOT de> <71hidu8lr0qssqnne37377r6aac6t40l8n AT 4ax DOT com> <3CDA53EC DOT D3866B26 AT wapme-systems DOT de> In-Reply-To: <3CDA53EC.D3866B26@wapme-systems.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id g49IVLJ30001 Stipe Tolj wrote in <3CDA53EC DOT D3866B26 AT wapme-systems DOT de> in gmane.os.cygwin on Thu, 09 May 2002 12:48:12 +0200: > > Well, that didn't help. The postinstall script ran without showing any > > errors but the problem is still ocurring when I try to use PHP. > > I still can't see anything wrong with the set-up. > Ok, have you set the php4 handler for the .php extensions in > /etc/apache/httpd.conf? I've got AddType application/x-httpd-php .php in there but there's no AddHandler line. Should there be? > If yes, what exactly happens and when. Is the assigned httpd child > coredumping when you try to access a .php file? The child process terminates with the error message I've already mentioned. There's a small stackdump generated in the same directory as the offending php script but that's all. The web browser gets some of the output before this happens though. It always gets as far as the title of the "apache" section to the phpinfo() output and no further. It behaves exactly the same every time. I don't have a php.ini file anywhere. From the output of phpinfo() that I do get this should be in /usr/local/lib/php.ini. Ah ha! I've copied the php.ini-recommended file from a download of 4.2.0 for Windows native to /usr/local/lib/php.ini and the problem has gone away. No more segmentation faults. Perhaps the package should include a default php.ini file for idiots like me? Thanks anyway. -- Sam Edge -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/