Webserver-old
From AMule Project FAQ
Contents
Description
This page is an archive of old instructions for running amuleweb on pre-2.0.0 aMule versions.
Setting up aMuleWeb with aMule
aMuleWeb with aMule 2.0.0-rcX versions
- Untar the sources and copy src/aMule.tmpl or in new versions (you are using a new version if you don't have the file aMule.tmpl in src/) only the following dir src/webserver/ into your ~/.aMule/ directory. The following (run from the sources directory), should do so:
- $ cp -r src/aMule.tmpl src/webserver/ ~/.aMule/
- If you installed aMule from rpm, then you can do:
- $ cp /usr/share/amuleweb/aMule.tmpl ~/.aMule/
- $ cp -r /usr/share/amuleweb/webserver/ ~/.aMule/
- NOTE: Note that in current versions (since aMule 2.0.0) the above step is not necessary (in fact, it is incorrect).
- Go to "Preferences"->"Remote Controls" (in aMule) and...
- Enable "Accept External Connections".
- Enable "Use TCP ports instead of unix local sockets".
- Enter a password for external connections. If you don't do this, amuleweb will not communicate with amule.
- Shutdown aMule if it is still running.
- Edit your ~/.eMule file, locate the [ExternalConnect] section and change:
- AcceptExternalConnections=1 <-- To enable aMule listening for External Connections.
- ECUseTCPPort=1 <-- To use the TCP port. Very important since Unix sockets are disabled.
- ECPassword=ca3c365274907c6fd527068788e14639 <-- To find the MD5 string for your password, do:
- $ echo -n yourpasswordhere | md5sum | cut -d ' ' -f 1
- ca3c365274907c6fd527068788e14639
- NOTE: Since aMule 2.0.0 the ~/.eMule file is now called ~/.aMule/amule.conf.
- Restart aMule
- Go to your "Preferences"->"Remote Controls" (in aMule) and setup your passwords here for External Connections and aMuleWeb login.
- NOTE: When you change your aMuleWeb and External Connections ports here, make sure to restart aMule.
- NOTE: that "Enable aMuleWeb" has no effect and will be renamed in 2.0.0rc8. aMuleWeb is always enabled as long as you have External Connections enabled.
- NOTE: For users running aMule Daemon you have to edit the .eMule file like shown above. For a way to setup a password check the 1.2.8 aMule HowTo. You can still do it in the same way.
- Now you're done! You are ready to run amuleweb and connect to it.
Webserver with aMule 1.2.8 or earlier
The following is based on the original instruction by BigBob. They guide you on how to modify aMule's configuration files to set aMuleWeb correctly.
There is "Preferences"->"Remote Controls" now, but anyway, information is never a bad idea.
- Shutdown aMule to avoid overwritting config files while shutting down.
- Copy from aMule's sources (version 1.2.4 or later) the directory src/webserver/ into your ~/.aMule/webserver/ directory.
- Copy from aMule's sources (version 1.2.4 or later) the file src/aMule.tmpl into your ~/.aMule/aMule.tmpl directory.
- Open a terminal and type (you might have to install md5sum):
- echo -n "THEPASWORDYOUWANT" | md5sum | cut -d " " -f 1
- This command will reply with an MD5 hash. Something like: 324f85f6095f9e5fe25b6c85af44b445
- Edit your ~/.eMule file, locate the [ExternalConnect] section in it and change this fields:
- AcceptExternalConnections=1 <- To enable aMule to listen for External Connections.
- ECUseTCPPort=0 <- Set this to 1 to use the TCP port. If disabled External Connections will fail!!
- ECPort=4712 <- Put here the port on which you want aMule to listen for External Connections.
- ECPassword=39e5049d0614baf21906500e2261d500 <- Put here the password for External Connections' authentications you generated before in terminal (something like 324f85f6095f9e5fe25b6c85af44b445).
- Edit your ~/.eMule file, locate the [WebServer] section in it and change fields:
- Password=324f85f6095f9e5fe25b6c85af44b445 <- Put here the password generated with md5sum for the admin (full privileged users).
- PasswordLow=1db5a746266e941b3ef7dd3586863ca7 <- Put here the password generated with md5sum for "low users" (low privileged users).
- Port=10000 <- Put the port you want aMuleWeb to listen on.
- Enabled=1 <- This option has been deprecated and is completly ignored now. Enabling External Connections will enable any application it connects to it, including aMuleWeb.
- UseGzip=1 <- Enable compression on communication.
- PageRefreshTime=120 <- Put here the web page refresh time (in seconds).
- UseLowRightsUser=0 <- 0/1 (disabled/enabled) "low user" access.
- Restart aMule.
- Once aMule is running, start the web interface (aMuleWeb).
- Now point your web browser to http://localhost:10000 (or whatever your host and ports are) and authenticate yourself with "Password" (for full privileged user) or "PasswordLow" (for low privileged user, if enabled).
- That's all :)
- 'NOTE: In latest aMule 1.2.x releases, the option WebTemplateFile allows to override the file template to use (thanks to Stefanero. You can set this option in the [eMule] section. Example:
- WebTemplateFile=eMule.tmpl