aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Author Topic: [mini-HowTo] amuleweb[Dlg]  (Read 24834 times)

shakraw

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 18
[mini-HowTo] amuleweb[Dlg]
« on: January 13, 2004, 07:19:57 PM »

Hi there,
sorry for lack of news/help from my side but I was away for xmas' holidays... but now I'm here ;) , so let's go to write a mini-howto for amuleweb.
 
At the moment amule lack of a webserver tab in preferences, so while waiting for it, follow these instructions (based on old Bigbob's instructions) to configure and use the amule's web interface.
 
1) Shutdown aMule to avoid overwriting of config files while shutting down.

2) copy from sources of aMule (1.2.x, where x>=4, or CVS) the directory "src/webserver/" in your "~/.aMule/webserver/"

3) copy from sources of aMule (1.2.x, where x>=4, or CVS) the file "src/aMule.tmpl" in your "~/.aMule/aMule.tmpl"

4) open a terminal and type:
    echo -n "THEPASWORDYOUWANT" | md5sum | cut -d " " -f 1
    This reply something like that : 324f85f6095f9e5fe25b6c85af44b445

5) edit your "~/.eMule" file and locate the "[ExternalConnect]" section and change fields:
    AcceptExternalConnections=1 <- to enable amule listening for external connections
    ECUseTCPPort=0 <- 0/1 (disable/enable) the use of a tcp port (if disabled use a unix socket in your "~/.aMule/muleconn") for external communications
    ECPort=4712 <- put here the port you want amule listen on for external connections
    ECPassword=39e5049d0614baf21906500e2261d500 <-put here the password for external connections' authentications you have generated in terminal

6) edit your "~/.eMule" file and locate the "[WebServer]" section and change fields:
    Password=324f85f6095f9e5fe25b6c85af44b445 <- put here the password generated in term for the admin (full privileged users)
    PasswordLow=1db5a746266e941b3ef7dd3586863ca7 <- put here the password generated in term for "low users" (low privileged users)
    Port=10000 <- put the port you want amuleweb listen on (now it works ;)
    Enabled=1 <- this is useless now (see below)
    UseGzip=1
    PageRefreshTime=120 <- put here the web page refresh time (in seconds)
    UseLowRightsUser=0 <- 0/1 (disabled/enabled) "low user" access

7) Restart aMule

8) Start web interface (amuleweb or amulewebDLG) (NOTE: at the moment amulewebDLG has problems):
    - amuleweb get 2 args: hostname and port. Launching amuleweb -h  -p will cause to amuleweb to communicate with amule through external connection module on listening on :.
By default: is localhost and is 4712 (the default ECPort value)
    - if amule is up, running and listening for external connection, amuleweb starts listening on "Port" port for web requests
    - point your web browser on http://hostrunningamuleweb:port/ and authenticate yourself with "Password" (for full privileged user) or "PasswordLow" (for low privileged user, if enabled)
    - that's all :)


@stefanero:
- WebTemplateFile is set to eMule.tmpl by default, but isn't used yet. However will be used aMule.tmpl when I'll enable it.
- the tag "Enabled" in [WebServer] is not used now. It is useless 'cause we enable the web interface enabling external connections and then launching amuleweb or amulewebDLG, so (i think) no need for this tag.
- ./amuleweb -p 8890 does not create the webinterface listening at port 8890. It tells amuleweb to communicate with amule through external connection module on tcp port 8890 (only if ECUseTCPPort and ECPort are set). To change the amuleweb listening port change the "Port" value in the [WebServer] section of your ~/.eMule


NOTES on web interface (browser side):
- lacks in search and statistics features (working on)


If any news, I'll edit as necessary.
Logged

stefanero

  • Some Support
  • Developer
  • Hero Member
  • *****
  • Karma: 8
  • Offline Offline
  • Posts: 4235
Re: [mini-HowTo] amuleweb[Dlg]
« Reply #1 on: March 30, 2004, 05:38:16 PM »

Webserver Setup for CVS, aMule 2.0.0rc1 and later[/color]

1)Shutdown aMule to avoid overwriting of config files while shutting down.

2) copy from sources of aMule (2.0.x, where x>=0, or CVS) the directory "src/webserver/" in your "~/.aMule/webserver/"

3)copy from sources of aMule (2.0.x, where x>=0, or CVS) the file "src/aMule.tmpl" in your "~/.aMule/aMule.tmpl"
NOTE: Above files are not included in the RPMs!!

4)edit your "~/.eMule" file and locate the "[ExternalConnect]" section and change fields:
AcceptExternalConnections=1 <- to enable amule listening for external connections
ECUseTCPPort=1 <-  enables, the use of a tcp port (if disabled amule can't receive any more external connections since unix sockets are disabed from now on.

5)restart aMule

6)go to aMule prefs, the tap „Remote Controls“ to set up your passwords for External Connections and Webserver login. Make sure to setup a password for both, some people report that it is NOT working without!

7) go into console and type
    $amuleweb
    to start you webserver tool

NOTE: On some systems the webserver might not work if you change the port it is listening on!!
It will give you something like:
                         *** creating web socket and starting listener!
                         *** WebServer: Using port: 0

8) open your favorite browser and connect to http://localhost:4711

NOTE: Webserver port is standart on 4711!!!!!! not 4712 this is the external connection port from amule!

More Information on:[/color][/size]  http://www.amule.org/wiki/index.php/Webserver

stefanero
Logged
In its default setup, Windows XP on the Internet amounts to a car
parked in a bad part of town, with the doors unlocked, the key in
the ignition and a Post-It note on the dashboard saying, "Please
don't steal this."