PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : Apache antwortet nicht



chrisky
19.03.03, 10:43
Hallo.
Ich habe einen Apache mit mod_ssl und einige Modulen installiert. Er läuft auch soweit, aber alle Anfragen an ihn gehen auf ein Timeout raus.

===> [programs: Installing Apache httpd program and shared objects]
./src/helpers/install.sh -c -m 755 ./src/httpd /usr/webserver1/bin/httpd
./src/helpers/install.sh -c -m 644 ./src/support/httpd.8 /usr/webserver1/man/man8/httpd.8
./src/helpers/install.sh -c -m 755 ./src/modules/standard/mod_vhost_alias.so /usr/webserver1/libexec/mod_vhost_alias.so
./src/helpers/install.sh -c -m 755 ./src/modules/standard/mod_env.so /usr/webserver1/libexec/mod_env.so
./src/helpers/install.sh -c -m 755 ./src/modules/standard/mod_log_config.so /usr/webserver1/libexec/mod_log_config.so
./src/helpers/install.sh -c -m 755 ./src/modules/standard/mod_log_agent.so /usr/webserver1/libexec/mod_log_agent.so
./src/helpers/install.sh -c -m 755 ./src/modules/standard/mod_log_referer.so /usr/webserver1/libexec/mod_log_referer.so
./src/helpers/install.sh -c -m 755 ./src/modules/standard/mod_mime.so /usr/webserver1/libexec/mod_mime.so
./src/helpers/install.sh -c -m 755 ./src/modules/standard/mod_negotiation.so /usr/webserver1/libexec/mod_negotiation.so
./src/helpers/install.sh -c -m 755 ./src/modules/standard/mod_status.so /usr/webserver1/libexec/mod_status.so
./src/helpers/install.sh -c -m 755 ./src/modules/standard/mod_info.so /usr/webserver1/libexec/mod_info.so
./src/helpers/install.sh -c -m 755 ./src/modules/standard/mod_include.so /usr/webserver1/libexec/mod_include.so
./src/helpers/install.sh -c -m 755 ./src/modules/standard/mod_autoindex.so /usr/webserver1/libexec/mod_autoindex.so
./src/helpers/install.sh -c -m 755 ./src/modules/standard/mod_dir.so /usr/webserver1/libexec/mod_dir.so
./src/helpers/install.sh -c -m 755 ./src/modules/standard/mod_cgi.so /usr/webserver1/libexec/mod_cgi.so
./src/helpers/install.sh -c -m 755 ./src/modules/backhand/mod_backhand.so /usr/webserver1/libexec/mod_backhand.so
./src/helpers/install.sh -c -m 755 ./src/modules/standard/mod_asis.so /usr/webserver1/libexec/mod_asis.so
./src/helpers/install.sh -c -m 755 ./src/modules/standard/mod_imap.so /usr/webserver1/libexec/mod_imap.so
./src/helpers/install.sh -c -m 755 ./src/modules/standard/mod_actions.so /usr/webserver1/libexec/mod_actions.so
./src/helpers/install.sh -c -m 755 ./src/modules/standard/mod_speling.so /usr/webserver1/libexec/mod_speling.so
./src/helpers/install.sh -c -m 755 ./src/modules/standard/mod_alias.so /usr/webserver1/libexec/mod_alias.so
./src/helpers/install.sh -c -m 755 ./src/modules/standard/mod_rewrite.so /usr/webserver1/libexec/mod_rewrite.so
./src/helpers/install.sh -c -m 755 ./src/modules/standard/mod_access.so /usr/webserver1/libexec/mod_access.so
./src/helpers/install.sh -c -m 755 ./src/modules/standard/mod_auth.so /usr/webserver1/libexec/mod_auth.so
./src/helpers/install.sh -c -m 755 ./src/modules/standard/mod_auth_anon.so /usr/webserver1/libexec/mod_auth_anon.so
./src/helpers/install.sh -c -m 755 ./src/modules/proxy/libproxy.so /usr/webserver1/libexec/libproxy.so
./src/helpers/install.sh -c -m 755 ./src/modules/standard/mod_expires.so /usr/webserver1/libexec/mod_expires.so
./src/helpers/install.sh -c -m 755 ./src/modules/standard/mod_usertrack.so /usr/webserver1/libexec/mod_usertrack.so
./src/helpers/install.sh -c -m 755 ./src/modules/standard/mod_setenvif.so /usr/webserver1/libexec/mod_setenvif.so
./src/helpers/install.sh -c -m 755 ./src/modules/ssl/libssl.so /usr/webserver1/libexec/libssl.so
<=== [programs]
===> [support: Installing Apache support programs and scripts]
./src/helpers/install.sh -c -m 755 -s ./src/support/ab /usr/webserver1/bin/ab
./src/helpers/install.sh -c -m 644 ./src/support/ab.8 /usr/webserver1/man/man8/ab.8
./src/helpers/install.sh -c -m 755 ./src/support/apachectl /usr/webserver1/bin/apachectl
./src/helpers/install.sh -c -m 644 ./src/support/apachectl.8 /usr/webserver1/man/man8/apachectl.8
./src/helpers/install.sh -c -m 755 -s ./src/support/checkgid /usr/webserver1/bin/checkgid
./src/helpers/install.sh -c -m 755 -s ./src/support/htpasswd /usr/webserver1/bin/htpasswd
./src/helpers/install.sh -c -m 644 ./src/support/htpasswd.1 /usr/webserver1/man/man1/htpasswd.1
./src/helpers/install.sh -c -m 755 -s ./src/support/htdigest /usr/webserver1/bin/htdigest
./src/helpers/install.sh -c -m 644 ./src/support/htdigest.1 /usr/webserver1/man/man1/htdigest.1
./src/helpers/install.sh -c -m 755 ./src/support/dbmmanage /usr/webserver1/bin/dbmmanage
./src/helpers/install.sh -c -m 644 ./src/support/dbmmanage.1 /usr/webserver1/man/man1/dbmmanage.1
./src/helpers/install.sh -c -m 755 -s ./src/support/logresolve /usr/webserver1/bin/logresolve
./src/helpers/install.sh -c -m 644 ./src/support/logresolve.8 /usr/webserver1/man/man8/logresolve.8
./src/helpers/install.sh -c -m 755 -s ./src/support/rotatelogs /usr/webserver1/bin/rotatelogs
./src/helpers/install.sh -c -m 644 ./src/support/rotatelogs.8 /usr/webserver1/man/man8/rotatelogs.8
./src/helpers/install.sh -c -m 755 ./src/support/apxs /usr/webserver1/bin/apxs
./src/helpers/install.sh -c -m 644 ./src/support/apxs.8 /usr/webserver1/man/man8/apxs.8
./src/helpers/install.sh -c -m 755 -s ./src/support/suexec /usr/webserver1/bin/suexec
chown root /usr/webserver1/bin/suexec
chmod 4711 /usr/webserver1/bin/suexec
./src/helpers/install.sh -c -m 644 ./src/support/suexec.8 /usr/webserver1/man/man8/suexec.8
<=== [support]
===> [include: Installing Apache C header files]
cp ./src/include/*.h /usr/webserver1/include/
cp ./src/lib/expat-lite/*.h /usr/webserver1/include/xml/
cp ./src/os/unix/os.h /usr/webserver1/include/
cp ./src/os/unix/os-inline.c /usr/webserver1/include/
chmod 644 /usr/webserver1/include/*.h /usr/webserver1/include/xml/*.h
<=== [include]
===> [data: Installing initial data files]
[PRESERVING EXISTING DATA SUBDIR: /usr/webserver1/htdocs/]
Copying tree ./htdocs/manual -> //usr/webserver1/manual/
[PRESERVING EXISTING CGI SUBDIR: /usr/webserver1/cgi-bin/]
Copying tree ./icons/ -> /usr/webserver1/icons/
<=== [data]
===> [config: Installing Apache configuration files]
./src/helpers/install.sh -c -m 644 ./conf/httpd.conf-dist /usr/webserver1/conf/httpd.conf.default
[PRESERVING EXISTING CONFIG FILE: /usr/webserver1/conf/httpd.conf]
./src/helpers/install.sh -c -m 644 ./conf/access.conf-dist /usr/webserver1/conf/access.conf.default
[PRESERVING EXISTING CONFIG FILE: /usr/webserver1/conf/access.conf]
./src/helpers/install.sh -c -m 644 ./conf/srm.conf-dist /usr/webserver1/conf/srm.conf.default
[PRESERVING EXISTING CONFIG FILE: /usr/webserver1/conf/srm.conf]
./src/helpers/install.sh -c -m 644 ./conf/mime.types /usr/webserver1/conf/mime.types.default
[PRESERVING EXISTING CONFIG FILE: /usr/webserver1/conf/mime.types]
./src/helpers/install.sh -c -m 644 ./conf/magic /usr/webserver1/conf/magic.default
[PRESERVING EXISTING CONFIG FILE: /usr/webserver1/conf/magic]
chmod 755 /usr/webserver1/conf/ssl.crt
chmod 755 /usr/webserver1/conf/ssl.crl
chmod 755 /usr/webserver1/conf/ssl.csr
chmod 700 /usr/webserver1/conf/ssl.key
chmod 755 /usr/webserver1/conf/ssl.prm
[PRESERVING EXISTING CERTIFICATE FILES: /usr/webserver1/conf/ssl.crt/*]
Updating hash symlinks in /usr/webserver1/conf/ssl.crt/:
make[2]: Entering directory `/usr/webserver1/conf/ssl.crt'
ca-bundle.crt ... Skipped
ca.crt ... 8b9c41b3.0
server.crt ... bc4df9ec.0
snakeoil-ca-dsa.crt ... 0cf14d7d.0
snakeoil-ca-rsa.crt ... e52d41d0.0
snakeoil-dsa.crt ... 5d8360e1.0
snakeoil-rsa.crt ... 82ab5372.0
make[2]: Leaving directory `/usr/webserver1/conf/ssl.crt'
[PRESERVING EXISTING CSR FILES: /usr/webserver1/conf/ssl.csr/*]
[PRESERVING EXISTING CRL FILES: /usr/webserver1/conf/ssl.crl/*]
[PRESERVING EXISTING KEY FILES: /usr/webserver1/conf/ssl.key/*]
[PRESERVING EXISTING PRM FILES: /usr/webserver1/conf/ssl.prm/*]
<=== [config]
make[1]: Leaving directory `/root/217.80.79.183/Apachetoolbox-1.5.64/apache_1.3.27'
+--------------------------------------------------------+
| You now have successfully built and installed the |
| Apache 1.3 HTTP server. To verify that Apache actually |
| works correctly you now should first check the |
| (initially created or preserved) configuration files |
| |
| /usr/webserver1/conf/httpd.conf
| |
| and then you should be able to immediately fire up |
| Apache the first time by running: |
| |
| /usr/webserver1/bin/apachectl start
| |
| Or when you want to run it with SSL enabled use: |
| |
| /usr/webserver1/bin/apachectl startssl
| |
| Thanks for using Apache. The Apache Group |
| http://www.apache.org/ |
+--------------------------------------------------------+
[root@151216 apache_1.3.27]# mkdir /usr/local
You have new mail in /var/spool/mail/root
[root@151216 apache_1.3.27]# mkdir /usr/local/man
[root@151216 apache_1.3.27]# mkdir /usr/local/bin
[root@151216 apache_1.3.27]# mkdir /usr/local/libexec
[root@151216 apache_1.3.27]# /usr/webserver1/bin/apachectl startssl
Ouch! ap_mm_create(1048576, "/usr/local/apache/logs/httpd.mm.20678") failed
Error: MM: mm:core: failed to open semaphore file (No such file or directory): OS: No such file or directory
/usr/webserver1/bin/apachectl startssl: httpd could not be started
[root@151216 apache_1.3.27]# #chown webserver1.webserver1 /usr/
[root@151216 apache_1.3.27]# mkdir /usr/local/apache
[root@151216 apache_1.3.27]# su -cmc

[root@151216 apache_1.3.27]#
[root@151216 apache_1.3.27]# /usr/webserver1/bin/apachectl startssl
fopen: No such file or directory
httpd: could not open document config file /usr/local/apache/conf/httpd.conf
/usr/webserver1/bin/apachectl startssl: httpd could not be started
[root@151216 apache_1.3.27]# su -cmc

[root@151216 apache_1.3.27]# /usr/webserver1/bin/apachectl startssl
Apache/1.3.27 mod_ssl/2.8.13 (Pass Phrase Dialog)
Some of your private key files are encrypted for security reasons.
In order to read them you have to provide us with the pass phrases.

Server 62.75.151.216:443 (RSA)
Enter pass phrase:

Ok: Pass Phrase Dialog successful.
/usr/webserver1/bin/apachectl startssl: httpd started
[root@151216 apache_1.3.27]# ps -ax
PID TTY STAT TIME COMMAND
1 ? S 0:00 init
20952 ? S 0:00 syslogd -m 0
20970 ? S 0:00 /usr/sbin/sshd
21012 ? S 0:00 xinetd -stayalive -reuse -pidfile /var/run/xinetd.pid
21822 ? S 0:00 crond
21541 ? S 0:00 /usr/sbin/sshd
21712 pts/0 S 0:00 -bash
25898 ? S 0:00 /usr/webserver1/bin/httpd -DSSL
25899 ? S 0:00 /usr/webserver1/bin/fcgi- -DSSL
26897 pts/0 R 0:00 ps -ax
You have new mail in /var/spool/mail/root
[root@151216 apache_1.3.27]# wget localhost
--10:10:32-- http://localhost/
=> `index.html'
Resolving localhost... done.
Connecting to localhost[127.0.0.1]:80... connected.
HTTP request sent, awaiting response...

Hat jemand ne´Idee?

joey.brunner
19.03.03, 10:56
was bringt ein lynx https://127.0.0.1

auf welchen ip adressen und welchen port horcht er (listing address)

welche dateien stehen im directory indexing ?

was steht bei max clients?

joey

chrisky
19.03.03, 11:33
Original geschrieben von joey.brunner
was bringt ein lynx https://127.0.0.1

auf welchen ip adressen und welchen port horcht er (listing address)

welche dateien stehen im directory indexing ?

was steht bei max clients?

joey
MaxClients 150

# war zu jener Zeit auskommentiert
BindAddress *

# 0 means unlimited
MaxRequestsPerChild 0

und nun:
[root@151216 webserver1]# ./bin/apachectl stop
./bin/apachectl stop: httpd stopped
[root@151216 webserver1]# ./bin/apachectl startssl
Apache/1.3.27 mod_ssl/2.8.13 (Pass Phrase Dialog)
Some of your private key files are encrypted for security reasons.
In order to read them you have to provide us with the pass phrases.

Server 62.75.151.216:443 (RSA)
Enter pass phrase:

Ok: Pass Phrase Dialog successful.
./bin/apachectl startssl: httpd started
[root@151216 webserver1]# wget https://localhost/
--12:29:46-- https://localhost/
=> `index.html'
Resolving localhost... done.
Connecting to localhost[127.0.0.1]:443... connected.
HTTP request sent, awaiting response...
End of file while parsing headers.
Retrying.
[root@151216 webserver1]# wget http://localhost/
--12:30:24-- http://localhost/
=> `index.html'
Resolving localhost... done.
Connecting to localhost[127.0.0.1]:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 2,673 [text/html]

100%[====================================>] 2,673 2.55M/s ETA 00:00

12:30:24 (2.55 MB/s) - `index.html' saved [2673/2673]

joey.brunner
19.03.03, 12:10
ok, damit ich dich auch richtig verstehe, jtezt geht der normale webverkehr, aber ssl nicht mehr? sehe ich das richtig? hast du virtuell hosts geladen? da gibts beim 1er schwierigkeiten u man muss tricksen

joey