Temat: Apache w Attitude Adjustment

Witajcie !

Przebrnąłem przez instalację Apache bez trudu natomiast mam zonka że tak powiem ...

Apache stoi na 80 porcie , uhttpd na porcie 8888 i on działa bez problemu, natomiast
na porcie 80 nic nie ma ... oto co daje netstat:

 
root@OpenWrt:~# netstat -l
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State
tcp        0      0 localhost:mysql         0.0.0.0:*               LISTEN
tcp        2      0 OpenWrt.lan:www         0.0.0.0:*               LISTEN
tcp        0      0 0.0.0.0:domain          0.0.0.0:*               LISTEN
tcp        0      0 0.0.0.0:ssh             0.0.0.0:*               LISTEN
tcp        0      0 0.0.0.0:8888            0.0.0.0:*               LISTEN
netstat: /proc/net/tcp6: No such file or directory
udp        0      0 0.0.0.0:domain          0.0.0.0:*
udp        0      0 0.0.0.0:bootps          0.0.0.0:*
netstat: /proc/net/udp6: No such file or directory
netstat: /proc/net/raw6: No such file or directory
Active UNIX domain sockets (only servers)
Proto RefCnt Flags       Type       State         I-Node Path
unix  2      [ ACC ]     STREAM     LISTENING       4133 /var/run/mysqld.sock
unix  2      [ ACC ]     STREAM     LISTENING        955 /var/run/ubus.sock

A to httpd.conf :

Listen 192.168.1.1:80
DocumentRoot "/www1"

reszta nie ruszana.


W procesach oczywiscie apache jest ...  co może być winą ?

2

Odp: Apache w Attitude Adjustment

OpenWrt.lan:www to jest port 80. Słucha...

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

3

Odp: Apache w Attitude Adjustment

No właśnie ... slucha smile a w przegladarce nici ...

4

Odp: Apache w Attitude Adjustment

A co dostajesz w przeglądarce?

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

5

Odp: Apache w Attitude Adjustment

Przerzucilem dla świetego spokoju apache na port 81 i jest jak było czyli
w tym momencie po ustawieniu adresów nasłuchu apache na 0.0.0.0:81
po wklepaniu w przegladarke mam tylko Łączenie .....  i tak w nieskończoność

6

Odp: Apache w Attitude Adjustment

A jak zrobisz

wget http://127.0.0.1:81  -O - 

po zalogowaniu się do routera?

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

7

Odp: Apache w Attitude Adjustment

root@OpenWrt:~# wget http://127.0.0.1:81  -O -
Connecting to 127.0.0.1:81 (127.0.0.1:81)

8

Odp: Apache w Attitude Adjustment

Uruchom apache z jakim debugiem i zobacz o co się buntuje.

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

9

Odp: Apache w Attitude Adjustment

Uruchamiając apachectrl  z opcją -E test.log   powinno coś wypluć nie ? ... a tymczasem plik jest pusty ...

10

Odp: Apache w Attitude Adjustment

apachectl jest przecież skryptem...

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

11

Odp: Apache w Attitude Adjustment

samo httpd również posiada taką opcję ... sprawdzałem oczywiście obie i jest dokładnie to samo .. plik z logiem pusty.
Co proponujesz w takim razie ? wink

12

Odp: Apache w Attitude Adjustment

Dobra ... udało mi się z logami .. zaczeło pokazywać :

[Mon Oct 15 18:26:33 2012] [info] Init: Seeding PRNG with 0 bytes of entropy
[Mon Oct 15 18:26:33 2012] [info] Init: Generating temporary RSA private keys (512/1024 bits)
[Mon Oct 15 18:26:37 2012] [info] Init: Generating temporary DH parameters (512/1024 bits)
[Mon Oct 15 18:26:37 2012] [warn] Init: Session Cache is not configured [hint: SSLSessionCache]
[Mon Oct 15 18:26:37 2012] [info] Init: Initializing (virtual) servers for SSL
[Mon Oct 15 18:26:37 2012] [info] mod_ssl/2.2.15 compiled against Server: Apache/2.2.15, Library: OpenSSL/1.0.1c
[Mon Oct 15 18:26:37 2012] [info] Init: Seeding PRNG with 0 bytes of entropy
[Mon Oct 15 18:26:37 2012] [info] Init: Generating temporary RSA private keys (512/1024 bits)
[Mon Oct 15 18:26:38 2012] [info] Init: Generating temporary DH parameters (512/1024 bits)
[Mon Oct 15 18:26:38 2012] [info] Init: Initializing (virtual) servers for SSL
[Mon Oct 15 18:26:38 2012] [info] mod_ssl/2.2.15 compiled against Server: Apache/2.2.15, Library: OpenSSL/1.0.1c
[Mon Oct 15 18:26:38 2012] [notice] Apache/2.2.15 (Unix) mod_ssl/2.2.15 OpenSSL/1.0.1c configured -- resuming normal operations
[Mon Oct 15 18:26:38 2012] [info] Server built: Aug 26 2012 14:31:49
[Mon Oct 15 18:26:38 2012] [debug] prefork.c(1013): AcceptMutex: sysvsem (default: sysvsem)
[Mon Oct 15 18:26:39 2012] [notice] child pid 4067 exit signal Segmentation fault (11)
[Mon Oct 15 18:26:39 2012] [notice] child pid 4068 exit signal Segmentation fault (11)
[Mon Oct 15 18:26:39 2012] [notice] child pid 4069 exit signal Segmentation fault (11)
[Mon Oct 15 18:26:39 2012] [notice] child pid 4070 exit signal Segmentation fault (11)
[Mon Oct 15 18:26:39 2012] [notice] child pid 4071 exit signal Segmentation fault (11)
[Mon Oct 15 18:26:40 2012] [notice] child pid 4072 exit signal Segmentation fault (11)
[Mon Oct 15 18:26:42 2012] [notice] child pid 4073 exit signal Segmentation fault (11)
[Mon Oct 15 18:26:42 2012] [notice] child pid 4074 exit signal Segmentation fault (11)
[Mon Oct 15 18:26:42 2012] [notice] child pid 4075 exit signal Segmentation fault (11)
[Mon Oct 15 18:26:42 2012] [notice] child pid 4076 exit signal Segmentation fault (11)
[Mon Oct 15 18:26:42 2012] [notice] child pid 4078 exit signal Segmentation fault (11)

13

Odp: Apache w Attitude Adjustment

Apache Ci się po prostu wykłada i tyle.

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

14

Odp: Apache w Attitude Adjustment

Z tego co obadałem w internecie ... pewne moduły w apache są skompilowane nie pod ten OS co trzeba.

15

Odp: Apache w Attitude Adjustment

Udało się rozwiązać problem? U mnie występuje to samo przy gargoyle 1.5.8, php 5.4.5, apache 2.2.15.