aMule Forum

Polish => pl_Linux => Topic started by: sorn on May 04, 2004, 10:48:34 PM

Title: webserwer
Post by: sorn on May 04, 2004, 10:48:34 PM
Witam.. mam problem z webserwerem... tzn nie chce on wogole dzialac..
czy moze ktos objasnic krok po kroku jak to zrobic??
jestem newbie wiec prosze o wyrozumialosc :)
moj system rh9 2.4.20-30.9 mam amula 2.0.0rc3
dziekuje z gory za pomoc.. pozdrawiam
sorn
Title: Re: webserwer
Post by: deltaHF on May 04, 2004, 10:55:14 PM
hi,

w mojej signaturze jest howto jak sie instaluje webserver ..
rc3 ma jednak jeden maly problemik z password. skoro masz rh to na pewno zainstalowales ten rpm, zagadza sie ?
jezeli tak to musisz poczekac bo musimy dac nowe rpms w ktorych ten problem jest fixed..

sorry za moj polsko-angielski jezyk ;)

pozdrawiam
Title: Re: webserwer
Post by: stefanero on May 05, 2004, 07:55:56 AM
hey
I have no clue what you two are talking about ;)

but you can patch your rc3 webserver code and recompile it so webserver works again over lan (if that was your problem)
shakraw fixed this little bug :)

Code: [Select]
diff -Lsrc/WebSocket.cpp -Lsrc/WebSocket.cpp
48c48
<       addr.Hostname("localhost");
---
>       addr.AnyAddress();

just replace the lines show here, and recompile amule and amuleweb from source
thats it

stefanero
Title: Re: webserwer
Post by: sorn on May 05, 2004, 09:10:39 AM
tylko problem jest taki ze moj angielski nie jest znow zbyt dobry.. ok sprobuje...
Title: Re: webserwer
Post by: sorn on May 05, 2004, 09:12:20 AM
aa pozatym nie instaluje rpmow tylko z paczki...
Title: Re: webserwer
Post by: pre_pl on May 05, 2004, 09:42:50 AM
Musisz zmienic jeden plik: src/WebSocket.cpp

przejdz do linii 48 i zmien :

       addr.Hostname("localhost");

na :

        addr.AnyAddress();

pozniej musisz jeszcze raz skompilowac amule'a

(to jest poprawka problemu, ze nie mozna sie polaczyc z innych maszyn oprocz localhost)

I poza tym przeczytaj tez HOWTO, bardzo ladnie opisane "co i jak"

pozdrawiam
Title: Re: webserwer
Post by: sorn on May 05, 2004, 10:11:41 AM
ale problem tkwi w tym ze wogole nic nie wyswietla nawet z localhosta...
Title: Re: webserwer
Post by: sorn on May 05, 2004, 10:27:27 AM
teraz problem jest nastepujacy.. gdy lacze sie z konsili przez  amuleweb wyskakuje : wxSocket: bledna sygnatura w ReadMsg
Title: Re: webserwer
Post by: deltaHF on May 05, 2004, 10:43:30 AM
powiedz jaki wxGTK i jaki wxBase masz u siebie ?
Title: Re: webserwer
Post by: sorn on May 05, 2004, 11:06:52 AM
no tutaj tez jest problem bo nie mam pojecia jak to sie sprawdz.. co prawda instalowalem wxgtk-2.4.2 ale nie mam pojecia czy sie nie uaktualnilo...
Title: Re: webserwer
Post by: sorn on May 05, 2004, 11:35:04 AM
mam zainstalowane wxBase-2.4.2-1 wxGTK-2.4.2-1 i wxGTK-devel-2.4.2-1
Title: Re: webserwer
Post by: deltaHF on May 05, 2004, 11:54:46 AM
ls -l /usr/bin/wx*
Title: Re: webserwer
Post by: sorn on May 05, 2004, 12:22:24 PM
-rwxr-xr-x    1 root     root         4196 sty 25  2003 /usr/bin/wx2_conv
-rwxr-xr-x    1 root     root         4864 lis 28 13:08 /usr/bin/wxbase-2.4-conf                                            ig
lrwxrwxrwx    1 root     root           17 kwi  9 12:16 /usr/bin/wx-config -> wx                                            base-2.4-config
-rwxr-xr-x    1 root     root         5159 wrz 21  2003 /usr/bin/wxgtk-2.4-confi                                            g
Title: Re: webserwer
Post by: deltaHF on May 05, 2004, 12:29:39 PM
troche przeoczyles moje howto jak sie to wszystko installuje ;)

brakuje tobie symlinks ..

zaloguj sie jako root i potem:

ln -sf /usr/bin/wxgtk-2.4-config /usr/bin/wx-config
ln -sf /usr/bin/wxbase-2.4-config /usr/bin/wxbase-config
ldconfig


zrob jeszcze raz ls -l /usr/bin/wx* i zobacz co sie zmienilo.

teraz jeszcze raz skompiluj amule i powinno dzialac

pozdrawiam

ps . dla pewnosci zrob jeszcze ls -l /usr/local/bin/wx* .. czasem ludzie maja wx zainstalowny w 2 roznych miejscach a to nie dobrze
Title: Re: webserwer
Post by: sorn on May 05, 2004, 01:05:52 PM
teraz jest tak:
[root@sorn root]# ls -l /usr/local/bin/wx*
-rwxr-xr-x    1 root     root       439718 maj  5 12:48 /usr/local/bin/wxcas
lrwxrwxrwx    1 root     root           16 kwi  9 11:36 /usr/local/bin/wx-config -> wxgtk-2.4-config
-rwxr-xr-x    1 root     root         5063 kwi  9 11:36 /usr/local/bin/wxgtk-2.4-config


[root@sorn root]# ls -l /usr/bin/wx*
-rwxr-xr-x    1 root     root         4196 sty 25  2003 /usr/bin/wx2_conv
-rwxr-xr-x    1 root     root         4864 lis 28 13:08 /usr/bin/wxbase-2.4-config
lrwxrwxrwx    1 root     root           26 maj  5 12:45 /usr/bin/wxbase-config -> /usr/bin/wxbase-2.4-config
lrwxrwxrwx    1 root     root           25 maj  5 12:45 /usr/bin/wx-config -> /usr/bin/wxgtk-2.4-config
-rwxr-xr-x    1 root     root         5159 wrz 21  2003 /usr/bin/wxgtk-2.4-config


amule po uruchomieniu pisze.:
Initialising aMule
ECServer listening on port 4714.

*** UDP socket at 4665  (chat)
*** TCP socket at 4662
*** UDP socket at 4672
Serverlist loaded.
*** reading servers
Save ServerCount = 71 /0x47/
Saved ServerCount endian = 71 /0x47/
Loading temp files from /root/.aMule/Temp/*.part.met.
Nowe zewntrzne poBczenie zaakceptowane
Unauthorized access attempt. Connection closed.
Hashing thread timed out with no aditions - removing thread
Hashing thread ended


amuleweb pisze:
amuleweb -rh sorn.one.pl -p 4714

This is amuleweb (WebServer)

Enter password for mule connection (return if no pass defined):

Creating client...
Now doing connection...
Using host sorn.one.pl port 4714

Trying to connect (timeout = 10 sec) ...
Succeeded ! Connection established

---------------------------------
|       aMule Web Server        |
---------------------------------


Use 'Help' for command list

*** creating web socket and starting listener!
Przerwane
Title: Re: webserwer
Post by: sorn on May 05, 2004, 01:09:38 PM
w amulu w remote control mam tak:
webserwer zalaczony na porcie 4712
odswierzanie co 120 sec.
kompresja Gzip zalaczona
uzytkownicy z niskimi uprawnieniami zalaczeni i przyznane hasla
zewnetrzne polaczenia zalaczone
port tcp zalaczone i ustawiony na 4714
haslo chce zalaczyc ale za kazdym restartem amula wylacza sie.. w pliku .emule nie znalazlem tej opcji..
Title: Re: webserwer
Post by: sorn on May 05, 2004, 03:03:45 PM
hallo wie ktos co jest??
Title: Re: webserwer
Post by: deltaHF on May 05, 2004, 10:49:31 PM
w jakis sposob zainstalowales wxgtk w /usr/local/bin i /usr/bin ..
ten w /usr/local/bin musisz "uninstall" ..
Title: Re: webserwer
Post by: sorn on May 05, 2004, 10:51:51 PM
moze to glupie pytanie... ale jak??
Title: Re: webserwer
Post by: deltaHF on May 05, 2004, 11:06:38 PM
mh, powiedz mi jak sie to tam znalazlo ;)
z srcs albo rpm ?
Title: Re: webserwer
Post by: sorn on May 05, 2004, 11:09:26 PM
szczerze powiedziawszy nie wiem ;) instalowalem z src.. rpmom nie ufam jakos... ;) a poniewaz jestem newbie to calkiem mozliwe ze cos namieszalem
Title: Re: webserwer
Post by: deltaHF on May 05, 2004, 11:12:09 PM
masz mozliwosc polaczenia sie z irc ? bedzie szybciej ;)
Title: Re: webserwer
Post by: sorn on May 05, 2004, 11:13:05 PM
jasne tylko powiedz na jakim serwerze i gdzie.. napewno bede mial nick sorn
Title: Re: webserwer
Post by: deltaHF on May 05, 2004, 11:15:40 PM
popatrz na moja sig ;)