View Full Version : Apache crashes out
Peter
02-22-2004, 06:18 AM
[Sat Feb 21 23:22:26 2004] [notice] child pid 31138 exit signal Segmentation fault (11)
[Sat Feb 21 23:32:17 2004] [notice] child pid 31688 exit signal Segmentation fault (11)
[Sat Feb 21 23:37:45 2004] [notice] child pid 4921 exit signal Segmentation fault (11)
[Sat Feb 21 23:52:02 2004] [notice] child pid 32040 exit signal Segmentation fault (11)
[Sun Feb 22 00:13:03 2004] [warn] child process 13376 still did not exit, sending a SIGTERM
[Sun Feb 22 00:13:03 2004] [warn] child process 13970 still did not exit, sending a SIGTERM
[Sun Feb 22 00:13:03 2004] [warn] child process 3527 still did not exit, sending a SIGTERM
[Sun Feb 22 00:13:03 2004] [warn] child process 10821 still did not exit, sending a SIGTERM
[Sun Feb 22 00:13:03 2004] [warn] child process 13384 still did not exit, sending a SIGTERM
[Sun Feb 22 00:13:03 2004] [warn] child process 16081 still did not exit, sending a SIGTERM
[Sun Feb 22 00:13:03 2004] [warn] child process 26733 still did not exit, sending a SIGTERM
[Sun Feb 22 00:13:12 2004] [crit] (98)Address already in use: make_sock: could not bind to port 8090
Icheb
02-22-2004, 06:27 AM
Let me guess, you've just build Apache using the custom builder and you run Red Hat ?
Peter
02-22-2004, 08:14 AM
LOL!
Yes..... How can i solve it?
Icheb
02-22-2004, 08:33 AM
Originally posted by Peter
LOL!
Yes..... How can i solve it?
Remove the first few lines of the apache configure file until it starts with ./configure
If you need further assistance, I think I can help you (email: klantensupport _at_ sebsoft.nl )
Peter
02-22-2004, 10:19 AM
I can't find the ./configure row, just some tagged out howto text... after that...
ServerType standalone
DirectAdmin Support
02-22-2004, 11:52 PM
Hello,
I'll change the script to only use those lines if it's using freebsd. (Wrote it down this time :))
John
Peter
02-23-2004, 01:20 AM
Gimme gimme, because else my clients are getting mad... :p
Icheb
02-23-2004, 01:26 AM
You can fix it by this :
cd /usr/local/directadmin/customapache
./build clean
./build update
use favorite editor to remake the configure.apache_ssl file into this :
#!/bin/sh
./configure \
--with-apache=../apache_1.3.29 \
--with-ssl=/usr \
--prefix=/etc/httpd \
--exec-prefix=/etc/httpd \
--bindir=/usr/bin \
--sbindir=/usr/sbin \
--sysconfdir=/etc/httpd/conf \
--enable-module=all \
--enable-module=ssl \
--enable-shared=max \
--enable-suexec \
--suexec-docroot=/ \
--suexec-caller=apache \
--suexec-userdir=public_html \
--includedir=/usr/include/apache \
--libexecdir=/usr/lib/apache \
--datadir=/var/www \
--iconsdir=/var/www/icons \
--htdocsdir=/var/www/html \
--manualdir=/var/www/html/manual \
--cgidir=/var/www/cgi-bin \
--localstatedir=/var \
--runtimedir=/var/run \
--logfiledir=/var/log/httpd \
--proxycachedir=/var/cache/httpd \
--with-perl=/usr/bin/perl \
--add-module=mod_frontpage.c \
--disable-module=auth_db --disable-module=auth_dbm
(I thought this was the standard conf)
Personnally I use VI as editor, but I could be convinced some lesser experienced Linux users would be scared by VI's interface :D
So you should use pico or something (I just can't really remember how pico worked, haven't used it for ages)
./build all
When you've rebuild everything it says you to type :
service httpd restart
I recommend you do this...
(if you need more support, my company is happy to help)
Peter
02-23-2004, 01:29 AM
Does that screw my gzip etc....?
Icheb
02-23-2004, 02:39 AM
Originally posted by Peter
Does that screw my gzip etc....?
It will recompile a number of things:
To build everything run:
./build all
Other options:
./build php
./build apache_mod_ssl
./build gd
./build libjpeg
./build libpng
./build zlib
./build curl
./build mcrypt
./build mod_perl
./build mod_frontpage
./build frontpage_ext
./build webalizer
./build zend (not included with 'all')
But the problem is caused by a few FreeBSD lines in the configure.apache_ssl...
If you would rather want to wait 'till DA Support has released a new build version, you could set up a cronjob to restart apache every 10 or 20 minutes...
Peter
02-23-2004, 02:50 AM
HUmm i did it, only my pgsql support is gone now... how do i get it back? When i do ./configure --with-apxs --with-curl --with-curl-dir=/usr/local/lib --with-gd --with-gd-dir=/usr/local/lib --with-gettext --with-jpeg-dir=/usr/local/lib --with-kerberos --with-mcrypt --with-mysql --with-pear --with-png-dir=/usr/local/lib --with-xml --with-zlib --with-zlib-dir=/usr/local/lib --enable-bcmath --enable-calendar --enable-ftp --enable-magic-quotes --enable-sockets --enable-track-vars --with-pgsql=/usr/local/pgsql --with-openssl
It doesn't do anything...
Icheb
02-23-2004, 03:05 AM
It shouldn't do anything if you would run that...
Those configure lines in those files are used by the build script to configure PHP and Apache, you don't have to run them, just use the build script...
Peter
02-23-2004, 03:06 AM
So what do i do now to rebuild with pgsql support?
Icheb
02-23-2004, 03:19 AM
Originally posted by Peter
So what do i do now to rebuild with pgsql support?
Let's see, I thought this was an extra non-standard option within the PHP configure or something ?
I must admit, I have no experience with pgsql, but as far as I can remember it's not installed by default in DA (can't even find a guide to install it)...
Peter
02-23-2004, 03:20 AM
Well i have done it before... so i guess it isn't impossible =)
Peter
02-24-2004, 01:41 AM
By the way....
it still crashes out....
[Tue Feb 24 00:03:34 2004] [notice] child pid 10884 exit signal Segmentation fault (11)
[Tue Feb 24 00:13:02 2004] [warn] child process 25489 still did not exit, sending a SIGTERM
[Tue Feb 24 00:13:02 2004] [warn] child process 23512 still did not exit, sending a SIGTERM
[Tue Feb 24 00:13:02 2004] [warn] child process 754 still did not exit, sending a SIGTERM
[Tue Feb 24 00:13:02 2004] [warn] child process 26146 still did not exit, sending a SIGTERM
[Tue Feb 24 00:13:02 2004] [warn] child process 8669 still did not exit, sending a SIGTERM
[Tue Feb 24 00:13:10 2004] [error] Cannot remove module mod_frontpage.c: not found in module list
[Tue Feb 24 00:13:13 2004] [crit] (98)Address already in use: make_sock: could not bind to port 8090
Peter
02-24-2004, 07:31 AM
Someone into helping me? Quite bad this...
DirectAdmin Support
02-24-2004, 10:05 AM
Hello,
Have you done a complete clean compile of everything after making the changes to the configure.apache_ssl? Do have any additinal modules installed?
Try deleting everything from /usr/lib/apache/* before doing the "./build all"
John
Peter
02-24-2004, 10:08 AM
What i dit was ./build clean
Then i edited the file. after that i did ./build all
Didnt help....
Peter
02-24-2004, 10:09 AM
I have installed mod_gzip by the way...
Peter
02-24-2004, 11:28 AM
I NEED SOMEONE TO HELP BECAUSE THIS IS COSTING ME CLIENTS!
ProWebUK
02-24-2004, 12:04 PM
rm -rf /usr/lib/apache/
cd /usr/local/directadmin/customapache
rm -f configure.*
./build clean
./build update
Remove the first few lines of the apache configure file until it starts with ./configure
(configure.apache_ssl )
./build all
Chris
Peter
02-24-2004, 12:08 PM
Thanks, i think it's about mod_gzip which was causing the problem... could that be?
DirectAdmin Support
02-25-2004, 10:33 AM
Hello,
quite possible. If you install an apache rpm modules, it will almost guranteed cause a segfault because the binary module wasn't compiled for your compile of apache. If it was compiled on your system for apache, then that issue would be less likely.
John
Peter
02-25-2004, 10:36 AM
Well its solved now... probably really was mod_gzip... i won't install that anymore =)
vBulletin® v3.7.0, Copyright ©2000-2008, Jelsoft Enterprises Ltd.