PDA

View Full Version : apache problems


eagle
01-15-2004, 05:31 PM
Hmm, I'm somewhat stuck here.

Apache stopped a couple of hours after install. This is what the log says:

[Wed Jan 14 13:55:02 2004] [notice] Apache/1.3.29 (Unix) mod_ssl/2.8.16 OpenSSL/0.9.7a PHP/4.3.4 mod_perl/1.27 FrontPage/5.0.2
.2510 configured -- resuming normal operations
[Wed Jan 14 13:55:02 2004] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Wed Jan 14 13:55:02 2004] [notice] Accept mutex: flock (Default: flock)
[Wed Jan 14 13:58:31 2004] [error] [client 213.84.243.193] File does not exist: /var/www/html/directadmin
[Wed Jan 14 13:58:31 2004] [error] [client 213.84.243.193] File does not exist: /var/www/html/404.shtml
[Wed Jan 14 15:51:01 2004] [notice] SIGHUP received. Attempting to restart
[Wed Jan 14 15:51:01 2004] [notice] Apache/1.3.29 (Unix) mod_ssl/2.8.16 OpenSSL/0.9.7a PHP/4.3.4 mod_perl/1.27 FrontPage/5.0.2
.2510 configured -- resuming normal operations
[Wed Jan 14 15:51:01 2004] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Wed Jan 14 15:51:01 2004] [notice] Accept mutex: flock (Default: flock)
[Wed Jan 14 16:01:00 2004] [notice] caught SIGTERM, shutting down
[Wed Jan 14 16:01:02 2004] [notice] Apache/1.3.29 (Unix) mod_ssl/2.8.16 OpenSSL/0.9.7a PHP/4.3.4 mod_perl/1.27 FrontPage/5.0.2
.2510 configured -- resuming normal operations
[Wed Jan 14 16:01:02 2004] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Wed Jan 14 16:01:02 2004] [notice] Accept mutex: flock (Default: flock)
[Wed Jan 14 17:44:00 2004] [notice] SIGHUP received. Attempting to restart
[Wed Jan 14 17:44:01 2004] [notice] Apache/1.3.29 (Unix) mod_ssl/2.8.16 OpenSSL/0.9.7a PHP/4.3.4 mod_perl/1.27 FrontPage/5.0.2
.2510 configured -- resuming normal operations
[Wed Jan 14 17:44:01 2004] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Wed Jan 14 17:44:01 2004] [notice] Accept mutex: flock (Default: flock)
[Thu Jan 15 00:31:00 2004] [notice] caught SIGTERM, shutting down


Restarting gave this:

Syntax error on line 1503 of /etc/httpd/conf/httpd.conf:
Invalid command 'SSLEngine', perhaps mis-spelled or defined by a module not included in the server configuration

And make install again with mod_ssl and OpenSSL, I got this:

"/usr/ports/security/openssl/bsd.openssl.mk", line 59: warning: duplicate script for target ".BEGIN" ignored
"/usr/ports/security/openssl/bsd.openssl.mk", line 60: warning: duplicate script for target ".BEGIN" ignored
"/usr/ports/security/openssl/bsd.openssl.mk", line 61: warning: duplicate script for target ".BEGIN" ignored
"/usr/ports/security/openssl/bsd.openssl.mk", line 62: warning: duplicate script for target ".BEGIN" ignored
"/usr/ports/security/openssl/bsd.openssl.mk", line 63: warning: duplicate script for target ".BEGIN" ignored
"/usr/ports/security/openssl/bsd.openssl.mk", line 64: warning: duplicate script for target ".BEGIN" ignored
"/usr/ports/security/openssl/bsd.openssl.mk", line 65: warning: duplicate script for target ".BEGIN" ignored
"Makefile", line 124: Need an operator
"Makefile", line 129: Need an operator
"Makefile", line 133: Need an operator
"Makefile", line 137: Need an operator
"Makefile", line 143: Need an operator
"Makefile", line 148: Need an operator
"Makefile", line 151: Need an operator
"Makefile", line 154: Need an operator
make: fatal errors encountered -- cannot continue


Commenting out SSLEngine in httpd.conf didn't help either.

Can anyone give me a clue to get this car running again?

eagle
01-16-2004, 01:33 AM
Continues .....

This is what happens if I try to build apache again:
Backing up certificate and key, and turning off httpd for DirectAdmins's check.
./build: /usr/bin/perl: not found
Found /usr/local/directadmin/customapache/apache_1.3.29.tar.gz
Extracting /usr/local/directadmin/customapache/apache_1.3.29.tar.gz...
Done. Applying patches...
Hmm... Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|--- src/support/Makefile.tmpl.orig Thu Jan 1 16:58:38 2004
|+++ src/support/Makefile.tmpl Thu Jan 1 16:59:23 2004
--------------------------
Patching file src/support/Makefile.tmpl using Plan A...
Hunk #1 succeeded at 50.
done
Increasing hard limit to 32768...
./build: /usr/bin/perl: not found
./build: /usr/bin/perl: not found

Setting up mod_ssl...
Found /usr/local/directadmin/customapache/mod_ssl-2.8.16-1.3.29.tar.gz
Extracting /usr/local/directadmin/customapache/mod_ssl-2.8.16-1.3.29.tar.gz...
Configuring mod_ssl-2.8.16-1.3.29...
Configuring mod_ssl/2.8.16 for Apache/1.3.29
+ Apache location: ../apache_1.3.29 (Version 1.3.29)
+ OpenSSL location: /usr
+ Auxiliary patch tool: ./etc/patch/patch (local)
./configure:Error: Building of 'patch' tool failed:
-------------------------------------------------
creating Makefile
creating config.h
config.h is unchanged
gcc -c -DHAVE_CONFIG_H -I. inp.c
In file included from inp.c:3:
common.h:150:19: errno.h: No such file or directory
common.h:171:19: fcntl.h: No such file or directory
*** Error code 1

Stop in /usr/local/directadmin/customapache/mod_ssl-2.8.16-1.3.29/etc/patch.
-------------------------------------------------
Hint: Either try to build 'patch' under etc/patch/
Hint: manually and re-run this 'configure' script
Hint: or provide us the path to your vendor 'patch'
Hint: program via the --with-patch=FILE option (but
Hint: expect perhaps failures when applying patches!)

*** There was an error while trying to configure apache+mod_ssl. Check the configure.apache_ssl file


This is the content of configure.apache_ssl :

#!/bin/sh
OPTIM="-DHARD_SERVER_LIMIT=32768 -DFD_SETSIZE=32768 " \
EAPI_MM="SYSTEM" \
SSL_BASE="/usr" \
PORTOBJFORMAT=elf \
./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 can't figure out what exactly is wrong. Who knows?

wdv
01-16-2004, 05:41 AM
Now that you say it, SSL didn't work for me either.

Looks like a bug in de setup script.

Did you install perl by the way?

eagle
01-16-2004, 05:58 AM
Yep (after):

perl: /usr/local/bin/perl /usr/local/man/man1/perl.1.gz

DirectAdmin Support
01-16-2004, 11:42 AM
Hello,

first thing to try is to create a symbolic link from /usr/bin/perl to /usr/local/bin/perl then recompile the works:

./build clean
./build all

Not sure about this error:
In file included from inp.c:3:
common.h:150:19: errno.h: No such file or directory
common.h:171:19: fcntl.h: No such file or directory

It might mean you're missing some devel packages.

Also, to restart apache use the boot script:

/usr/local/etc/rc.d/httpd restart

John

wdv
01-16-2004, 12:48 PM
Originally posted by DirectAdmin Support
Hello,

first thing to try is to create a symbolic link from /usr/bin/perl to /usr/local/bin/perl then recompile the works:

./build clean
./build all

Not sure about this error:
In file included from inp.c:3:
common.h:150:19: errno.h: No such file or directory
common.h:171:19: fcntl.h: No such file or directory

It might mean you're missing some devel packages.

Also, to restart apache use the boot script:

/usr/local/etc/rc.d/httpd restart

John

I used the very minimal configuration of FreeBSD 5.1 that was possible. (I chose during setup for Minimal Setup). Is this enough, or would I need another kind of setup?

By the way, would it already be usefull to try 5.2?

eagle
01-16-2004, 06:12 PM
It keeps hanging on this patch:

Backing up certificate and key, and turning off httpd for DirectAdmins's check.
Found /usr/local/directadmin/customapache/apache_1.3.29.tar.gz
Extracting /usr/local/directadmin/customapache/apache_1.3.29.tar.gz...
Done. Applying patches...
Hmm... Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|--- src/support/Makefile.tmpl.orig Thu Jan 1 16:58:38 2004
|+++ src/support/Makefile.tmpl Thu Jan 1 16:59:23 2004
--------------------------
Patching file src/support/Makefile.tmpl using Plan A...
Hunk #1 succeeded at 50.
done
Increasing hard limit to 32768...

Setting up mod_ssl...
Found /usr/local/directadmin/customapache/mod_ssl-2.8.16-1.3.29.tar.gz
Extracting /usr/local/directadmin/customapache/mod_ssl-2.8.16-1.3.29.tar.gz...
Configuring mod_ssl-2.8.16-1.3.29...
Configuring mod_ssl/2.8.16 for Apache/1.3.29
+ Apache location: ../apache_1.3.29 (Version 1.3.29)
+ OpenSSL location: /usr
+ Auxiliary patch tool: ./etc/patch/patch (local)
./configure:Error: Building of 'patch' tool failed:
-------------------------------------------------
creating config.h
gcc -c -DHAVE_CONFIG_H -I. backupfile.c
gcc -c -DHAVE_CONFIG_H -I. getopt.c
gcc -c -DHAVE_CONFIG_H -I. inp.c
In file included from inp.c:3:
common.h:150:19: errno.h: No such file or directory
common.h:171:19: fcntl.h: No such file or directory
*** Error code 1

Stop in /usr/local/directadmin/customapache/mod_ssl-2.8.16-1.3.29/etc/patch.
-------------------------------------------------
Hint: Either try to build 'patch' under etc/patch/
Hint: manually and re-run this 'configure' script
Hint: or provide us the path to your vendor 'patch'
Hint: program via the --with-patch=FILE option (but
Hint: expect perhaps failures when applying patches!)

*** There was an error while trying to configure apache+mod_ssl. Check the configure.apache_ssl file


building the patch in the directory itself doesn't work either. Uncommenting the files that are not there doesn't work (the comments come back when building).

This:

common.h:150:19: errno.h: No such file or directory was a bug in the ports tree once. I think my install is to minimal. I'll try another.

Isn't it a good idea to describe the install minima for DA?

existenz
01-16-2004, 10:42 PM
I just want you to know that last night I did a base install of 5.1. I was able to successfuly install DA (other than the remaining issues) with no problems. The new installer for 1.2.7 got perl and compiled apache just fine as far as I can tell.

eagle
01-19-2004, 06:21 AM
Ok, made a new fresh install. Everything seems to be allright now; up and running untill now.

Except for the ethernetcard name in sshd_config, that is.

rhoekman
01-19-2004, 07:33 AM
After you installed perl you still need to do:

use.perl port

it makes changes to the Make file and creates the symbolic link.

This might have been the problem..

eagle
01-21-2004, 01:05 AM
I didn't have perl probs as far as I can tell (the 'perl not found' was before I installed perl), but a ssl that stopped and an apache unwilling to compile because of a patch that could not be build. The 'halt' errors had to do with headers that were not there, but (as far as I can tell after some research) had nothing to do with perl.

Anyway, the installer I used last Monday worked fine, apart from the name of the ethernet card. Creating accounts works fine also, sofar.