PHP5 installed, but not working

Whether you are using Linux on the desktop or as a server, it's still good that you're using Linux. Linux related questions go here.

Moderator: General Moderators

Post Reply
allelopath
Forum Commoner
Posts: 34
Joined: Tue Mar 16, 2004 5:21 am

PHP5 installed, but not working

Post by allelopath »

I've now got PHP5 installed, but it doesn't appear to be working
When i try to access a page, like http://localhost/index.php, it shows a blank

An error is noted in /usr/local/apache/logs/error_log:
[Tue Mar 23 09:07:52 2004] [notice] child pid 1381 exit signal Segmentation fault (11)

Not much to go on.
Where can I look for more info?
allelopath
Forum Commoner
Posts: 34
Joined: Tue Mar 16, 2004 5:21 am

Post by allelopath »

http://php.dotgeek.org/manual/en/install.apache2.php says:

In your error logs, you may find errors resembling the following:
child pid 16811 exit signal Segmentation fault (11)

Reinstalling Apache using the traditional prefork model (i.e. do not place a --with-mpm=xxx statement when compiling Apache) solves the problem.

In other words, believe the documentation when it tells you that PHP works best with the prefork model.

What's a prefork model?
User avatar
ol4pr0
Forum Regular
Posts: 926
Joined: Thu Jan 08, 2004 11:22 am
Location: ecuador

Post by ol4pr0 »

Installing php5 is a bad idea anyway ( unless its installed in a second server for trying out the new gadget ;-) )
User avatar
Pyrite
Forum Regular
Posts: 769
Joined: Tue Sep 23, 2003 11:07 pm
Location: The Republic of Texas
Contact:

Post by Pyrite »

Yea, I'm not going go PHP5 for at least another 6 months or more.
malcolmboston
DevNet Resident
Posts: 1826
Joined: Tue Nov 18, 2003 1:09 pm
Location: Middlesbrough, UK

Post by malcolmboston »

lol, im not moving from PHP 4.2.2, it has all the functions i need for the time being
allelopath
Forum Commoner
Posts: 34
Joined: Tue Mar 16, 2004 5:21 am

Post by allelopath »

Found the problem.
i was running Apache against php 4.3.4 AND php5.0.0RC1 which is apparenlty a bad thing.
i removed the libphp4.so line from httpd.conf and it works
Post Reply