Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Apache 1.3.26 and PHP 4.2.2 - segfaults
View unanswered posts
View posts from last 24 hours

Goto page 1, 2  Next  
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
phubuh
n00b
n00b


Joined: 12 Aug 2002
Posts: 2

PostPosted: Mon Aug 12, 2002 12:39 am    Post subject: Apache 1.3.26 and PHP 4.2.2 - segfaults Reply with quote

I recently merged Apache and mod_php. It started up at first, but when I tried to access a PHP page it just printed the source.
Well, I changed /etc/conf.d/apache so Apache uses PHP, and now I'm getting segfaults when I start it.

Code:

root@superfly /etc/conf.d$ /etc/init.d/apache start
 * Starting apache...
/sbin/runscript.sh: line -30:  4032 Segmentation fault      start-stop-daemon --quiet --start --startas /usr/sbin/apache --pidfile /var/run/apache.pid -- ${APACHE_OPTS}                                        [ !! ]
Back to top
View user's profile Send private message
phubuh
n00b
n00b


Joined: 12 Aug 2002
Posts: 2

PostPosted: Mon Aug 12, 2002 2:00 am    Post subject: Reply with quote

Sigh. I unmerged Apache and mod_php, ran emerge rsync, emerge clean, and merged Apache and mod_php again.

Same deal.

Please, someone else has to have had this problem! I'm going crazy. :(
Back to top
View user's profile Send private message
GreyCrow
n00b
n00b


Joined: 11 Aug 2002
Posts: 21

PostPosted: Mon Aug 12, 2002 9:29 am    Post subject: Reply with quote

Perhaps you could post the code how you implemented mod_php in the apache conf?
Back to top
View user's profile Send private message
rac
Bodhisattva
Bodhisattva


Joined: 30 May 2002
Posts: 6553
Location: Japanifornia

PostPosted: Mon Aug 12, 2002 10:17 am    Post subject: Reply with quote

I don't know if you want to go to all this trouble, and I think I hear delta407's footsteps coming up to "Bah" me again, but...

It looks like the apache binary is stripped in the ebuild, but if you could get an unstripped apache binary, run it with the -X option so it doesn't fork, use ulimit to raise your core file size, then run your test, you might be able to get a usable core dump out of apache that could tell you where the crashing is occurring.

I had an obscure conflict like this once with software I wrote that ran under mod_perl and used expat to parse XML documents - the expat-lite library that was compiled into Apache had different function signatures for expat functions, and that smashed the stack.
_________________
For every higher wall, there is a taller ladder
Back to top
View user's profile Send private message
ptheborg
n00b
n00b


Joined: 27 Jun 2002
Posts: 67
Location: Rotterdam, The Netherlands

PostPosted: Mon Aug 12, 2002 3:33 pm    Post subject: Reply with quote

I'm having exactly the same problem as phubuh! :( (So you're not alone phubuh)

A week or two ago, before I reinstalled Gentoo, it was working very well. apache mod_php-4.2.2 mod_ssl.

But now, the same setup gives me these nasty segmentation faults :(

Note: I've installed mysql with berkdb and postgresql. So mod_php get's compiled with those flags on.....but like I said, it used to work.

[edit] I've tried mod_php-4.2.1-r5 but gave me the same seg fault :( [/edit]

[edit2] Forgot to mention that starting apache with only mod_ssl works great. It's just that darn php module. [/edit2]

[edit3] gcc 2.95.3 (gentoo 1.2), gentoo-sources 2.4.19-r7 [/edit3]


PLEASE HELP US!!!!!!

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

seg fault:
/sbin/runscript.sh: line -30: 6106 Segmentation fault start-stop-daemon --quiet --start --startas /usr/sbin/apache --pidfile /var/run/apache.pid -- ${APACHE_OPTS}

USE="mmx -3dnow sse sse2 -3dfx -voodoo3 -matrox acpi pcmcia pnp -pda X dga opengl xv fbcon directfb kde qt qtmt arts -gnome -nls motif imlib ncurses readline sdl svga gif jpeg png avi mpeg quicktime alsa dvd xmms oggvorbis encode pam ssl crypt tcpd mozilla spell truetype xml2 pdflib python slang java libwww libg++ berkdb gdbm samba gpm mysql postgres zlib"

CHOST="i686-pc-linux-gnu"
CFLAGS="-march=i686 -O3 -pipe"
CXXFLAGS="-march=i686 -O3 -pipe"
_________________
Cheers

.NET is like a pet store written with gotos


Last edited by ptheborg on Fri Aug 16, 2002 12:36 am; edited 1 time in total
Back to top
View user's profile Send private message
Lyquid
n00b
n00b


Joined: 25 Jul 2002
Posts: 24
Location: South Lyon, MI

PostPosted: Tue Aug 13, 2002 3:38 am    Post subject: Reply with quote

I tried to setup Apache today. I get the same exact error messsage that is listed above. As of note, Apache worked fine without mod_php...

Any ideas?
Back to top
View user's profile Send private message
Lyquid
n00b
n00b


Joined: 25 Jul 2002
Posts: 24
Location: South Lyon, MI

PostPosted: Tue Aug 13, 2002 12:47 pm    Post subject: Reply with quote

Ok. I did figure out a way to prevent the segmentation fault error. But... For Apache, I am not using php, instead I am using mod_php. I assume I need to change /etc/conf.d/apache to reflect the use of mod_php.

So, I changed the following :

Code:

APACHE_OPTS="-D SSL -D PHP4"


to

Code:

APACHE_OPTS="-D SSL -D MOD_PHP"


I just took a guess at what to substitute for the PHP4, so I am not sure if this is proper syntax. But, when I now try and start Apache, I no longer receive an error message (i.e. segmentation fault). But, SSL and PHP do not work. I determined this by following the test examples in the Desktop Configuration Guide provide on the Gentoo web site.

Also, when I originally installed Apache, I installed php and mod_ssl. Apache would start just fine, and SSL worked. But, I noticed that php wasn't working. So, after searching the forums, I determined that mod_php was required for Apache, and php was not necessary. So, I unmerged php and performed an emerge on mod_php. Since I did this, SSL and PHP do not work. Weird...

Any ideas? Thanks.
Back to top
View user's profile Send private message
ptheborg
n00b
n00b


Joined: 27 Jun 2002
Posts: 67
Location: Rotterdam, The Netherlands

PostPosted: Tue Aug 13, 2002 2:02 pm    Post subject: Reply with quote

Lyquid: APACHE_OPTS="-D SSL -D MOD_PHP" the mod_php value is not correct. It should be PHP4. If you check the apache.conf, you'll find out that when that value is passed as an argument to apache, only then the module will be loaded......

but that is the whole point here, if you'll only pass -D SSL, everything works fine, exept no PHP. When you pass -D PHP4 -D SSL things go segfault.... :cry:

Phubuh, Lyquid and I can't be the only three having this problem....anyone with suggestions or solutions?
_________________
Cheers

.NET is like a pet store written with gotos
Back to top
View user's profile Send private message
kch
n00b
n00b


Joined: 15 Aug 2002
Posts: 6

PostPosted: Thu Aug 15, 2002 6:23 pm    Post subject: You are not alone... Reply with quote

I have the same problems like you. I'm using
kernel: 2.4.19
gcc version 2.95.3 20010315 (release)
Server version: Apache/1.3.26 (Unix)
mod_php: 4.2.2

I'm reading an open bug in bugs.gentoo.org than sound like mine, but is not the same. They propose a solution that don't work for me (compile using LDFLAGS='-lgcc' )

You can get more information in
https://bugs.gentoo.org/show_bug.cgi?id=3876
Back to top
View user's profile Send private message
El_Presidente_Pufferfish
Veteran
Veteran


Joined: 11 Jul 2002
Posts: 1179
Location: Seattle

PostPosted: Thu Aug 15, 2002 7:10 pm    Post subject: Reply with quote

*shrugs*
i cant even get PHP to compile

good luck guys
Back to top
View user's profile Send private message
orochi
Tux's lil' helper
Tux's lil' helper


Joined: 02 Aug 2002
Posts: 76

PostPosted: Fri Aug 16, 2002 7:46 am    Post subject: Reply with quote

im having the same problem, php seg faults, so this isnt an isolated thiing, anyone figure out whats wrong yet?
Back to top
View user's profile Send private message
Lyquid
n00b
n00b


Joined: 25 Jul 2002
Posts: 24
Location: South Lyon, MI

PostPosted: Fri Aug 16, 2002 12:47 pm    Post subject: Reply with quote

If this helps diagnose the problem... I have the following:

kernel: vanilla-sources-2.4.19
gcc: 2.95.3
web server: Apache 1.3.26r3
mod_php: 4.2.2
mod_ssl: 2.8.10

If anyone can help, thanks in advance!! :)
Back to top
View user's profile Send private message
goldorak_dan
n00b
n00b


Joined: 26 Apr 2002
Posts: 16
Location: Ottawa, Canada

PostPosted: Sat Aug 17, 2002 1:47 am    Post subject: Re: Apache 1.3.26 and PHP 4.2.2 - segfaults Reply with quote

phubuh wrote:
I recently merged Apache and mod_php. It started up at first, but when I tried to access a PHP page it just printed the source.


For your "source" problem. Looks like this:
https://forums.gentoo.org/viewtopic.php?t=11199&highlight=apache+php+ssl#62399
might help
Back to top
View user's profile Send private message
Miguel
Tux's lil' helper
Tux's lil' helper


Joined: 21 Aug 2002
Posts: 118

PostPosted: Wed Aug 21, 2002 4:51 pm    Post subject: Reply with quote

I have exactly the same problem with segfaults...

Apache 1.3.26
mod_php 4.2.2

And I haven't a clue about what's going on...
Back to top
View user's profile Send private message
AdamG
n00b
n00b


Joined: 17 Apr 2002
Posts: 46
Location: USA, MA

PostPosted: Wed Aug 21, 2002 5:57 pm    Post subject: Reply with quote

same here.. :?
Back to top
View user's profile Send private message
AdamG
n00b
n00b


Joined: 17 Apr 2002
Posts: 46
Location: USA, MA

PostPosted: Wed Aug 21, 2002 9:00 pm    Post subject: Reply with quote

I hope this is fixed soon..big problem..

8O
Back to top
View user's profile Send private message
rac
Bodhisattva
Bodhisattva


Joined: 30 May 2002
Posts: 6553
Location: Japanifornia

PostPosted: Wed Aug 21, 2002 9:09 pm    Post subject: Reply with quote

What's the bug tracking number everybody can use to follow the progress of this issue on https://bugs.gentoo.org?
_________________
For every higher wall, there is a taller ladder
Back to top
View user's profile Send private message
AdamG
n00b
n00b


Joined: 17 Apr 2002
Posts: 46
Location: USA, MA

PostPosted: Thu Aug 22, 2002 7:56 pm    Post subject: Reply with quote

im not sure it was reported..

:lol:
Back to top
View user's profile Send private message
rac
Bodhisattva
Bodhisattva


Joined: 30 May 2002
Posts: 6553
Location: Japanifornia

PostPosted: Thu Aug 22, 2002 8:07 pm    Post subject: Reply with quote

AdamG wrote:
im not sure it was reported..

:lol:

I'll assume by your :lol: that you understood that that was my point. If you hope it's fixed soon, because it's a big problem, it stands a better chance of getting fixed faster if you fill out a bug report and follow up on it.
_________________
For every higher wall, there is a taller ladder
Back to top
View user's profile Send private message
hazkal
n00b
n00b


Joined: 06 Aug 2002
Posts: 1

PostPosted: Fri Aug 23, 2002 3:48 am    Post subject: Reply with quote

i just installed apache/php on my box and what after
Code:
emerge mod_php
finishes..it tells you this:

Code:

Execute ebuild /var/db/pkg/dev-php/mod_php-4.2.2/mod_php-4.2.2ebuild config
to have your apache.conf auto-updated for use with this module.


all I did to get an html page that only has
Code:
<?php phpinfo() ?>
to work was that, and then uncommenting the APACHE_OPTS in the /etc/conf.d/apache file

not sure if that helps or not, but it does work for me now.
Back to top
View user's profile Send private message
SubZero
n00b
n00b


Joined: 09 Jun 2002
Posts: 17
Location: Brazil

PostPosted: Fri Aug 23, 2002 5:09 am    Post subject: Reply with quote

I'm having the same problem!

Executing php at terminal gives me Segmentation Fault
Apache won't run with mod_php too.

Anybody here fixed the problem? I couldn't found the bug at https://bugs.gentoo.org.

Thanks!
Back to top
View user's profile Send private message
DeKoder
n00b
n00b


Joined: 10 Aug 2002
Posts: 17

PostPosted: Fri Aug 23, 2002 2:52 pm    Post subject: Reply with quote

Hi ppl! I'm posting here because i'd like to install mod_php 4.2.2 in Apache 2.0.40 , but so far, mod_php still asks for Apache 1.3.26 ....Does somebody know when will mod_php support Apache 2.0.40? I think this version is quite better than the 1.x series, so i'd really like to run it on my servers, instead of 1.3.26...

Cheers
DeKoder
Back to top
View user's profile Send private message
AdamG
n00b
n00b


Joined: 17 Apr 2002
Posts: 46
Location: USA, MA

PostPosted: Fri Aug 23, 2002 4:40 pm    Post subject: Reply with quote

DeKoder wrote:
Hi ppl! I'm posting here because i'd like to install mod_php 4.2.2 in Apache 2.0.40 , but so far, mod_php still asks for Apache 1.3.26 ....Does somebody know when will mod_php support Apache 2.0.40? I think this version is quite better than the 1.x series, so i'd really like to run it on my servers, instead of 1.3.26...

Cheers
DeKoder


no one is really sure..just going ot have to wait..

i dont realy think thisi s the cofrrect thread for that anyhow =x

there has been many more posts liek your..try searching ;)
Back to top
View user's profile Send private message
kch
n00b
n00b


Joined: 15 Aug 2002
Posts: 6

PostPosted: Sat Aug 24, 2002 8:42 am    Post subject: ID Bug track Reply with quote

There is already an open bug at bugs.gentoo.org (id 3876)
Back to top
View user's profile Send private message
kch
n00b
n00b


Joined: 15 Aug 2002
Posts: 6

PostPosted: Sat Aug 24, 2002 8:44 am    Post subject: Sorry I miss to attach the address Reply with quote

https://bugs.gentoo.org/show_bug.cgi?id=3876
Now it's working for me. You only need to include
export LDFLAGS=-lstdc++
in the /usr/portage/app-text/sablotron/sablotron-0.95-r1.ebuild just before the line with
econf ${myconf} || die
in the

It will look like:

src_compile() {
local myconf
use perl && myconf="--enable-perlconnect"
export LDFLAGS=-lstdc++
econf ${myconf} || die
make || die
}

You should compile sablotron and everything works fine altough you don't need it.


Last edited by kch on Sat Sep 07, 2002 6:12 pm; edited 1 time in total
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum