This is a discussion on Apache core dumps when started with php4_module on FreeBSD 5.1 within the Apache Web Server forums, part of the Web Server and Related Forums category; I'm not certain which category this problem will fall into (OS or Application) so I am posting to both. ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
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> |
|
|||
|
In alt.apache.configuration ME <trash.trash@comcastdotnet> wrote:
> 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 |
|
|||
|
ME wrote:
> 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" |
|
|||
|
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.. . > ME wrote: > > > 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 wrote:
> 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-ass 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" |
|
|||
|
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.. . > ME wrote: > > 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-ass 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" > |
|
|||
|
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... > 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.. . > > ME wrote: > > > 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-ass 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" > > > > |