Apache Server configuration support - Apache core dumps when started with php4_module on FreeBSD 5.1

This is Interesting: Free IT Magazines  
Home > Archive > Apache Server configuration support > January 2004 > Apache core dumps when started with php4_module on FreeBSD 5.1





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Apache core dumps when started with php4_module on FreeBSD 5.1
ME

2004-01-19, 7:13 am

I'm not certain which category this problem will fall into (OS or
Application) so I am posting to both.

I can not seem to get Apache to start up at all with php4. If I remove the
php4 line from my httpd.conf file apache starts up just fine (cept no php,
which prettymuch makes it useless to me). If I add it Apache core dumps
immediatly after I start it up.

************** Here is the httpd.core **************

prompt# gdb /usr/local/sbin/httpd /httpd.core
GNU gdb 5.2.1 (FreeBSD)
Copyright 2002 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain
conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "i386-undermydesk-freebsd"...(no debugging
symbols found)...
Core was generated by `httpd'.
Program terminated with signal 11, Segmentation fault.
Reading symbols from /usr/lib/libcrypt.so.2...(no debugging symbols
found)...done.
Loaded symbols for /usr/lib/libcrypt.so.2
Reading symbols from /usr/local/lib/libexpat.so.4...(no debugging symbols
found)...done.
Loaded symbols for /usr/local/lib/libexpat.so.4
Reading symbols from /usr/lib/libc.so.5...(no debugging symbols
found)...done.
Loaded symbols for /usr/lib/libc.so.5
Reading symbols from /usr/libexec/ld-elf.so.1...(no debugging symbols
found)...done.
Loaded symbols for /usr/libexec/ld-elf.so.1
#0 0x28a9a570 in ?? ()


***************** HTTPD.CONF *******************
Timeout 200
KeepAlive 5
MaxKeepAliveRequests 50
KeepAliveTimeout 15
Listen 80
NameVirtualHost *
MinSpareServers 10
MaxSpareServers 20
StartServers 10
MaxClients 50
MaxRequestsPerChild 10000

LoadModule access_module "/usr/local/libexec/apache/mod_access.so"
LoadModule rewrite_module "/usr/local/libexec/apache/mod_rewrite.so"
LoadModule mime_module "/usr/local/libexec/apache/mod_mime.so"
LoadModule autoindex_module "/usr/local/libexec/apache/mod_autoindex.so"
LoadModule status_module "/usr/local/libexec/apache/mod_status.so"
LoadModule alias_module "/usr/local/libexec/apache/mod_alias.so"
LoadModule userdir_module "/usr/local/libexec/apache/mod_userdir.so"
LoadModule dir_module "/usr/local/libexec/apache/mod_dir.so"
LoadModule php4_module "/usr/local/libexec/apache/libphp4.so"

#---> Main server parameters <---#

ServerName matt.domainname.com
ServerAdmin email@email.com
DocumentRoot "/usr/local/www"
UserDir "/home/*"
DirectoryIndex index.html index.htm index.php
ErrorLog "/var/log/httpd-error.log"
LogLevel debug
Options None
ServerSignature on

AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps


<VirtualHost *>
Options +MultiViews +ExecCGI +Includes
ServerName matt.domainname.com
DocumentRoot "/usr/local/www/main"
DirectoryIndex index.php
ErrorLog "/var/log/www-matt.domainname.com.log"
LogLevel warn
</VirtualHost>


Davide Bianchi

2004-01-19, 7:13 am

In alt.apache.configuration ME <trash.trash@comcastdotnet> wrote:
quote:

> I can not seem to get Apache to start up at all with php4. If I remove the
> php4 line from my httpd.conf file apache starts up just fine (cept no php,
> which prettymuch makes it useless to me). If I add it Apache core dumps
> immediatly after I start it up.



Well, since it's the first time I hear about such beahviour, I suppose
is a problem of the php module not really nice on BSD.
Since there are no problems AFAIK on Linux/Unix I guess you have to
bug the FreeBSD guys.

Suggestion: can't you use php as a CGI instead? So, no module to load?

Davide
Robert Downes

2004-01-19, 7:13 am

ME wrote:
quote:

> I'm not certain which category this problem will fall into (OS or
> Application) so I am posting to both.
>
> I can not seem to get Apache to start up at all with php4. If I remove the
> php4 line from my httpd.conf file apache starts up just fine (cept no php,
> which prettymuch makes it useless to me). If I add it Apache core dumps
> immediatly after I start it up.



I'm running Apache version 1.3.28 from the ports collection in FreeBSD
5.1, with php 4.3.4.r1,1 and mysql 3.23.58 too. No problems at all.

Are you using Apache 2? I've read that you shouldn't use that with PHP
yet (still working on integration, I think... see php.net).
--
Bob
echo Mail fefsensmrrjyaheeoceoq\! | tr "jefroq\!" "@obe.uk"

ME

2004-01-19, 7:13 am

Sorry Bob, I am using Apache 1.3.28. I am seriously considering scratching
this whole install and starting over. Seems apache is not only dead once on
my machine but twice. php won't work with it and I can't get mod_ssl to
build at all. Knowing that it works ok with your system only helps enforce
my thought that I should maybe reload the system. Question though, have you
built yours recently from the ports tree? I just want to rule out the
possibility of a bad port.

Thanks,

Matt
"Robert Downes" <nospamplease@see.my.signature.con> wrote in message
news:3fa173b7$0$118$65c69314@mercury.nildram.net...
quote:

> ME wrote:
>
the[QUOTE][color=darkred]
php,[QUOTE][color=darkred]
>
> I'm running Apache version 1.3.28 from the ports collection in FreeBSD
> 5.1, with php 4.3.4.r1,1 and mysql 3.23.58 too. No problems at all.
>
> Are you using Apache 2? I've read that you shouldn't use that with PHP
> yet (still working on integration, I think... see php.net).
> --
> Bob
> echo Mail fefsensmrrjyaheeoceoq\! | tr "jefroq\!" "@obe.uk"
>




Robert Downes

2004-01-19, 7:13 am

ME wrote:
quote:

> Sorry Bob, I am using Apache 1.3.28. I am seriously considering scratching
> this whole install and starting over. Seems apache is not only dead once on
> my machine but twice. php won't work with it and I can't get mod_ssl to
> build at all. Knowing that it works ok with your system only helps enforce
> my thought that I should maybe reload the system. Question though, have you
> built yours recently from the ports tree? I just want to rule out the
> possibility of a bad port.



Built mine from ports a couple of weeks ago, referring to my bible
(FreeBSD Unleashed, 2nd Edition). Let me just have a look to see if
there are any special steps I would have taken...

Looks like I just did the usual /usr/ports/www/apache13, make install.
mysql has to come next, so I'm to believe,
/usr/ports/databases/mysql323-server, make install. Then
/usr/ports/www/mod_php4, make install and make sure that you select
mysql support or PostgreSQL support as appropriate (or other or neither,
obviously). It should even modify your http.conf file as necessary.

The only trouble I had was the mysql would not install until I setup
BIND (named) to resolve my own machine's IP properly. That was some
hassle, but once it was done, it was worth it.

I haven't tried mod_ssl because I'm developing a forum for my own
website, and my cheap-XXX hosting account doesn't offer SSL unless I
want to double my monthly costs. (Bad idea for the unemployed.)
--
Bob
echo Mail fefsensmrrjyaheeoceoq\! | tr "jefroq\!" "@obe.uk"

ME

2004-01-19, 7:13 am

Thanks Bob. I think I will try the reload. It will most likely be a faster
for me to just reload rather than figure out what in the world is wrong.
Your experience helps me in that it tells me there is most likely nothing
wrong with port. Just my box. Thanks

Matt
"Robert Downes" <nospamplease@see.my.signature.con> wrote in message
news:3fa1ab6a$0$106$65c69314@mercury.nildram.net...
quote:

> ME wrote:
scratching[QUOTE][color=darkred]
once on[QUOTE][color=darkred]
enforce[QUOTE][color=darkred]
you[QUOTE][color=darkred]
>
> Built mine from ports a couple of weeks ago, referring to my bible
> (FreeBSD Unleashed, 2nd Edition). Let me just have a look to see if
> there are any special steps I would have taken...
>
> Looks like I just did the usual /usr/ports/www/apache13, make install.
> mysql has to come next, so I'm to believe,
> /usr/ports/databases/mysql323-server, make install. Then
> /usr/ports/www/mod_php4, make install and make sure that you select
> mysql support or PostgreSQL support as appropriate (or other or neither,
> obviously). It should even modify your http.conf file as necessary.
>
> The only trouble I had was the mysql would not install until I setup
> BIND (named) to resolve my own machine's IP properly. That was some
> hassle, but once it was done, it was worth it.
>
> I haven't tried mod_ssl because I'm developing a forum for my own
> website, and my cheap-XXX hosting account doesn't offer SSL unless I
> want to double my monthly costs. (Bad idea for the unemployed.)
> --
> Bob
> echo Mail fefsensmrrjyaheeoceoq\! | tr "jefroq\!" "@obe.uk"
>




Stuart Cianos

2004-01-19, 7:13 am

Hi -

I had similar problems when building php with the ASPELL/PSPELL libraries...
Try excluding that module (if you are currently using it) and see if things
clear up.

I've had that particular problem on revisions since 4.5 to the most recent
releases - in both the 4.9 and 5.1 trees.

- Stu

"ME" <trash.trash@comcastdotnet> wrote in message
news:15WdnXTJJ-y1KDyiRVn-ug@comcast.com...
quote:

> Thanks Bob. I think I will try the reload. It will most likely be a


faster
quote:

> for me to just reload rather than figure out what in the world is wrong.
> Your experience helps me in that it tells me there is most likely nothing
> wrong with port. Just my box. Thanks
>
> Matt
> "Robert Downes" <nospamplease@see.my.signature.con> wrote in message
> news:3fa1ab6a$0$106$65c69314@mercury.nildram.net...
> scratching
> once on
to[QUOTE][color=darkred]
> enforce
have[QUOTE][color=darkred]
> you
>
>




Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com