Bug 144656 - Apache2 and PHP5 doesn't work together
Summary: Apache2 and PHP5 doesn't work together
Status: RESOLVED DUPLICATE of bug 144362
Alias: None
Product: SUSE Linux 10.1
Classification: openSUSE
Component: Network (show other bugs)
Version: Beta 2
Hardware: i686 Other
: P5 - None : Normal (vote)
Target Milestone: ---
Assignee: Peter Poeml
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-01-22 15:46 UTC by Anders Norrbring
Modified: 2006-06-20 21:06 UTC (History)
5 users (show)

See Also:
Found By: Other
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Anders Norrbring 2006-01-22 15:46:25 UTC
Beta1 installation from CD images.
Default PHP5 and Apache2 installations, and mod_php5 enabled in the Apache2 configuration.

When trying to access the server root's index.html document, it presents a blank page, and the server's error_log shows this:

[Sun Jan 22 16:09:12 2006] [notice] Apache/2.2.0 (Linux/SUSE) configured -- resuming normal operations
[Sun Jan 22 16:09:25 2006] [notice] child pid 7440 exit signal Segmentation fault (11)
[Sun Jan 22 16:27:47 2006] [notice] child pid 7441 exit signal Segmentation fault (11)

With the mod_php5 module disabled, the web server shows html pages correctly.
Comment 1 Cristian Rodríguez 2006-01-23 17:47:52 UTC
should work...
gdb backtrace anyone ? :-)
Comment 2 Cristian Rodríguez 2006-01-23 17:56:07 UTC
I asumme the mod_php5 version are you using is compiled against apache 2.2 headers right ?.
please test once again, when PHP 5.1.2 packages are released.
Comment 3 Anders Norrbring 2006-01-23 18:11:57 UTC
I have absolutely NO idea whatsoever on what and how these are compiled and built.

They're from the beta1 ISO images, so at least the SuSE developers should know what they are doing, and why.
Comment 4 Anders Norrbring 2006-01-23 18:28:27 UTC
Oh, and another thing..

I'd expect that the people who request "more info" and set the bug status to "NEED INFO" should have a SuSE e-mail address...
Comment 5 Cristian Rodríguez 2006-01-23 18:38:05 UTC
anders: this is not the way how bugzilla should work, SUSE is no longer a closed product.

aditionally, I spend my free time working together with the PHP5 Mantainer, and I do this for free, please make my life easier,thanks.
  
Comment 6 Peter Poeml 2006-01-25 13:26:13 UTC

*** This bug has been marked as a duplicate of 144362 ***
Comment 7 Cristian Rodríguez 2006-01-26 04:59:40 UTC
AFAIK, this has been fixed, and newer packages will not have this problem.
Comment 8 Anders Norrbring 2006-01-26 07:12:07 UTC
Not according to bug 144362, this bug is already closed as a duplicate of the mentioned 144362, which is not solved.
Comment 9 Cristian Rodríguez 2006-01-26 07:25:56 UTC
I have no access to bug 144362 ( can somebody please give me permissions to see it??) but I have been informed privately that the cause of this problem has been found and a fix will be commited in the next update..

Comment 10 Anders Norrbring 2006-01-26 07:32:51 UTC
I can't give you any access, but there's a guess that it might relate to http://bugs.php.net/bug.php?id=29451

Comment 11 Seth Chaiklin 2006-01-28 23:58:11 UTC
I continue to have this problem under beta2 with:

apache2-2.2.0-4
apache2-prefork-2.2.0-4
apache2-mod_php5-5.1.2-3
php5-5.1.2-3

If php5 is loaded into apache2, then any attempt to view any webpage
on the server (even if it is HTML) gives:

child pid 5318 exit signal Segmentation fault (11)

If php5 is not loaded, then it is possible to view html pages.
Comment 12 Cristian Rodríguez 2006-01-29 00:03:08 UTC
please :post the output of :

$rpm -qa | grep php5


put apache in debug mode, and post what the error_log says.

thanks.

Comment 13 Seth Chaiklin 2006-01-29 01:29:19 UTC
rpm -qa | grep php5
php5-bz2-5.1.2-3
php5-mysql-5.1.2-3
apache2-mod_php5-5.1.2-3
php5-gd-5.1.2-3
php5-mcrypt-5.1.2-3
php5-mysqli-5.1.2-3
php5-5.1.2-3
php5-iconv-5.1.2-3
php5-zlib-5.1.2-3

I set Loglevel to Debug and started httpd2 with -X

When I try to access a .php page, then the server dies (with no error messages).

I am able to access html pages and server-status or server-info under debug mode.
Comment 14 Anders Norrbring 2006-01-29 09:16:33 UTC
I just have to point out that you have an inconsistency in your revision numbering!

The 5.1.2-3 packages on the beta2 ISOs are *NOT* the same as the 5.1.2-3 packages which are available from Petr Ostadal's build directory.

Petr's version works fine on my 10.1 system, so I guess this bug can go back to resolved.



*** This bug has been marked as a duplicate of 144362 ***
Comment 15 Seth Chaiklin 2006-01-29 12:41:08 UTC
FWIW, I have now installed apache2-mod_php5-5.1.2-3 from Petr Ostadal's
directory, and now everything works as expected, while the version
from /SL-OSS-factory/inst-source/suse/i586 (with builddate 23 Jan.) gives
the problems noted above.
Comment 16 Cristian Rodríguez 2006-01-29 17:18:03 UTC
OOps . yes, seems Petr mixed up the packages or something
this will be fixed for Beta 3 I think, In the meanwhile, use the packages from the 
 Petr's FTP site.
Comment 17 Petr Ostadal 2006-01-30 11:38:09 UTC
Yes, the fixes will be in Beta3, now use rpm from my ftp.
Comment 18 Peter Poeml 2006-01-30 12:43:06 UTC
The packages on http://ftp.suse.com/pub/projects/apache/php5/ are also
fixed.
Comment 19 Michael Lanczak 2006-06-20 20:31:07 UTC
Apache 2.2 and MySQL 5.0 with Linux 10.1
It's a pitty, but the databases which run in earlier versions without problems, get no connection to the server with Apache 2.2 and MySQL 5.0. You get no alert, only an empty browser window. I test it, there is no bug in the browsers!
Comment 20 Cristian Rodríguez 2006-06-20 21:06:48 UTC
@Michael : the bug is not here neither.. and you can easily figure where it is (in chair  :P)

if the LAMP stack were not working on 10.1 release, tbugzilla will be full of reports..
check your code and server configuration please, and ask for support on IRC or mail list, thank you.