<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="http://test.amule.szerverem.hu/w/skins/common/feed.css?303"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>http://test.amule.szerverem.hu/w/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=212.85.29.5</id>
		<title>AMule Project FAQ - User contributions [en]</title>
		<link rel="self" type="application/atom+xml" href="http://test.amule.szerverem.hu/w/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=212.85.29.5"/>
		<link rel="alternate" type="text/html" href="http://test.amule.szerverem.hu/wiki/Special:Contributions/212.85.29.5"/>
		<updated>2026-04-05T18:08:07Z</updated>
		<subtitle>User contributions</subtitle>
		<generator>MediaWiki 1.23.3</generator>

	<entry>
		<id>http://test.amule.szerverem.hu/wiki/AMuleWeb</id>
		<title>AMuleWeb</title>
		<link rel="alternate" type="text/html" href="http://test.amule.szerverem.hu/wiki/AMuleWeb"/>
				<updated>2007-12-31T13:29:08Z</updated>
		
		<summary type="html">&lt;p&gt;212.85.29.5: /* Configuring aMuleWeb with aMuled */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;center&amp;gt;'''English''' | [[AMuleWeb-de|Deutsch]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''aMuleWeb''' is a utility that allows you to control aMule by means of a web browser from any location. The web interface offers a subset of aMule functionality, including searching for files, initializing downloads, and viewing your download queue. It also displays status information and allows you to change certain options.&lt;br /&gt;
&lt;br /&gt;
aMule itself doesn't support [http://www.w3.org/MarkUp HTTP] connections; aMuleWeb, which does, therefore serves as an intermediary between aMule and a web browser. Once the link between aMuleWeb and a remote user is established, it connects to aMule via the [[External Connections]] interface.&lt;br /&gt;
&lt;br /&gt;
By default, aMuleWeb listens for HTTP connections at port 4711, but this can be changed in [[Usage Preferences|Preferences]]'.&lt;br /&gt;
&lt;br /&gt;
== Installing aMuleWeb ==&lt;br /&gt;
&lt;br /&gt;
Many of not most distros have an aMule package in their repositories. If you install aMule by means of RPM, DEB, or other package management system, aMuleWeb will be included in the installation. &lt;br /&gt;
&lt;br /&gt;
This is the easiest and preferred method of installing aMule and aMuleWeb.&lt;br /&gt;
&lt;br /&gt;
== Compiling aMuleWeb ==&lt;br /&gt;
&lt;br /&gt;
If you have not installed aMule by means of a package, you will need to compile it from source.&lt;br /&gt;
&lt;br /&gt;
aMuleWeb is not compiled separately; it is compiled at the same time you compile aMule by using the ''--enable-amuleweb'' flag when you run ''configure''. (See the [[Main Page]] for links to pages on compiling aMule for various operating systems). &lt;br /&gt;
&lt;br /&gt;
== Configuring aMuleWeb ==&lt;br /&gt;
&lt;br /&gt;
To use aMuleWeb, you first need to set several options in aMule's Preferences notebook. On the &amp;quot;Remote Controls&amp;quot; page, you will need to:&lt;br /&gt;
&lt;br /&gt;
* Enable &amp;quot;Accept External Connections&amp;quot;.&lt;br /&gt;
* Enter a password for External Connections.&lt;br /&gt;
* Enable webserver&lt;br /&gt;
&lt;br /&gt;
You can also modifiy the default aMuleWeb port (4711) and External Connections port (4712) here as well, but if you do so, you will need to restart aMule for the changes to take effect.&lt;br /&gt;
&lt;br /&gt;
(If you are running aMuled and don't want to use aMule to configure aMuleWeb, see the instructions below)&lt;br /&gt;
&lt;br /&gt;
Next, you need to do is generate [[remote.conf]], the file where aMuleWeb stores its configuration information. (It can be found in the .aMule directory.) Among other things, this file contains the port number which aMule uses for External Connections as well as the password needed to access aMule.  &lt;br /&gt;
&lt;br /&gt;
To create a ''remote.conf'' file, enter at the command line:&lt;br /&gt;
&lt;br /&gt;
 $ amuleweb -w&lt;br /&gt;
&lt;br /&gt;
aMuleWeb will read the necessary configuration information from amule.conf and generate a ''remote.conf'' file, then exit.&lt;br /&gt;
&lt;br /&gt;
Then start aMuleWeb normally:&lt;br /&gt;
&lt;br /&gt;
 $ amuleweb&lt;br /&gt;
&lt;br /&gt;
You should now be able to open aMuleWeb in a browser by entering the URL (on the local system):&lt;br /&gt;
&lt;br /&gt;
  http://localhost:4711&lt;br /&gt;
&lt;br /&gt;
or, the with computer's hostname (locally or remote):&lt;br /&gt;
&lt;br /&gt;
  http://hostname:4711&lt;br /&gt;
&lt;br /&gt;
If you want to run aMuleWeb on a different computer than aMule, just copy ''remote.conf'' to the .aMule directory on that computer, and change the hostname line accordingly.&lt;br /&gt;
&lt;br /&gt;
'''NOTE:''' aMuleWeb uses cookies to store session information. Make sure that cookies are enabled in your browser.&lt;br /&gt;
&lt;br /&gt;
== Launching aMuleWeb ==&lt;br /&gt;
&lt;br /&gt;
There are two options for launching aMuleWeb. &lt;br /&gt;
&lt;br /&gt;
First, and preferred, is to enable aMuleWeb activation in aMule's preferences. When started, aMule (or aMuled) will launch aMuleWeb. Upon exit, aMuleWeb will be automatically terminated.&lt;br /&gt;
&lt;br /&gt;
The second option is to run aMuleWeb manually by entering the &amp;quot;amuleweb&amp;quot; command in terminal.&lt;br /&gt;
&lt;br /&gt;
== Configuring aMuleWeb with aMuled ==&lt;br /&gt;
&lt;br /&gt;
First, if aMuled is running, shut it down.&lt;br /&gt;
&lt;br /&gt;
Then run:&lt;br /&gt;
&lt;br /&gt;
  $ amuleweb -w&lt;br /&gt;
&lt;br /&gt;
to generate a ''remote.conf'' file. You will need to edit these options in the &amp;lt;nowiki&amp;gt;[&amp;lt;/nowiki&amp;gt;ExternalConnect&amp;lt;nowiki&amp;gt;]&amp;lt;/nowiki&amp;gt; section of amule.conf:&lt;br /&gt;
&lt;br /&gt;
*''AcceptExternalConnections=1'' &amp;amp;lt;-- To enable External Connections.&lt;br /&gt;
&lt;br /&gt;
*''ECPassword=ca3c365274907c6fd527068788e14639'' &amp;amp;lt;--  MD5 string&lt;br /&gt;
&lt;br /&gt;
You can then restart aMuled and aMuleWeb.&lt;br /&gt;
&lt;br /&gt;
'''NOTE:''' Passwords must be md5sum format. To generate an MD5sum for your password, run:&lt;br /&gt;
 ''$ echo -n yourpasswordhere | md5sum | cut -d ' ' -f 1''&lt;br /&gt;
 ''ca3c365274907c6fd527068788e14639''&lt;br /&gt;
&lt;br /&gt;
'''Note'''If you get ''FATAL ERROR: Cannot find template: default'' it's because you didn't run ''make install''. If you don't want to install aMule, copy the ''src/webserver/default/'' directory into ''~/.aMule/webserver/'' (create it if needed). If you want any other template (probably ''php-default''), copy it too. Then go back to the previous step.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== aMuleWeb with older versions of aMule ===&lt;br /&gt;
&lt;br /&gt;
For instructions for using aMuleWeb with aMule pre-2.0.0 final, see [[Webserver-old|this page]] for archived material.&lt;br /&gt;
&lt;br /&gt;
== Standard ports ==&lt;br /&gt;
&lt;br /&gt;
The ports can be set to anything, but by default aMule uses:&lt;br /&gt;
&lt;br /&gt;
*External Connections: 4712&lt;br /&gt;
*amuleweb: 4711&lt;br /&gt;
&lt;br /&gt;
Make sure you do not confuse the two; in the default configuration, it looks like this: &lt;br /&gt;
&lt;br /&gt;
aMule --&amp;amp;gt; &amp;lt;nowiki&amp;gt;[&amp;lt;/nowiki&amp;gt;4712&amp;lt;nowiki&amp;gt;]&amp;lt;/nowiki&amp;gt; --&amp;amp;gt; aMuleWeb --&amp;amp;gt; &amp;lt;nowiki&amp;gt;[&amp;lt;/nowiki&amp;gt;4711&amp;lt;nowiki&amp;gt;]&amp;lt;/nowiki&amp;gt; --&amp;amp;gt; web browser&lt;br /&gt;
&lt;br /&gt;
== Template (skin) location ==&lt;br /&gt;
&lt;br /&gt;
aMuleWeb looks for its files in a number of places:&lt;br /&gt;
&lt;br /&gt;
*In your home directory: ''$HOME/.aMule/webserver/''&amp;lt;nowiki&amp;gt;[&amp;lt;/nowiki&amp;gt;skin name&amp;lt;nowiki&amp;gt;]&amp;lt;/nowiki&amp;gt;''/''&lt;br /&gt;
&lt;br /&gt;
*And at its install location, in this order (by default, ''/usr/local/share/amule/webserver'' if you compiled aMule, or ''/usr/share/amule/webserver'' if you installed it from a package).&lt;br /&gt;
&lt;br /&gt;
Default template name is 'default'.&lt;br /&gt;
&lt;br /&gt;
If, ''after installing'' aMule, aMuleWeb refuses to run because of not being able to load template:&lt;br /&gt;
&lt;br /&gt;
*Please report this situation to us, and then&lt;br /&gt;
&lt;br /&gt;
*Create the directories ''webserver/default'' in the ''.aMule'' subdirectory of your home directory, and copy the contents of the ''src/webserver'' directory there from the aMule tarball (ie, ''$HOME/.aMule/webserver/default'').&lt;br /&gt;
&lt;br /&gt;
== aMuled and aMuleWeb as services  ==&lt;br /&gt;
&lt;br /&gt;
Although starting aMuleWeb by enabling it in aMule's preferences is the preferred method, you can also run aMuleWeb together with aMuled as as services by means of an init.d script. Here is an example:&lt;br /&gt;
&lt;br /&gt;
''/etc/init.d/amule''&lt;br /&gt;
&lt;br /&gt;
 PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin&lt;br /&gt;
 DAEMON=/usr/bin/amuled&lt;br /&gt;
 WEB=/usr/bin/amuleweb&lt;br /&gt;
 NAME=amuled&lt;br /&gt;
 DESC=amuled&lt;br /&gt;
 RUNAMULE=no&lt;br /&gt;
 USER=youramuleuser&lt;br /&gt;
 &lt;br /&gt;
 test -x $DAEMON || exit 0&lt;br /&gt;
 &lt;br /&gt;
 # Include amule defaults if available&lt;br /&gt;
 if &amp;lt;nowiki&amp;gt;[&amp;lt;/nowiki&amp;gt; -f /etc/default/amule &amp;lt;nowiki&amp;gt;]&amp;lt;/nowiki&amp;gt; ; then&lt;br /&gt;
     . /etc/default/amule&lt;br /&gt;
 fi&lt;br /&gt;
&lt;br /&gt;
 if &amp;lt;nowiki&amp;gt;[&amp;lt;/nowiki&amp;gt; &amp;quot;$RUNAMULE&amp;quot; != &amp;quot;yes&amp;quot; &amp;lt;nowiki&amp;gt;]&amp;lt;/nowiki&amp;gt; ; then&lt;br /&gt;
     echo &amp;quot;Amule not to be started. Edit /etc/default/amule first.&amp;quot;&lt;br /&gt;
     exit 1&lt;br /&gt;
 fi&lt;br /&gt;
 &lt;br /&gt;
 set -e&lt;br /&gt;
 &lt;br /&gt;
 case &amp;quot;$1&amp;quot; in&lt;br /&gt;
   start)&lt;br /&gt;
     echo -n &amp;quot;Starting $DESC: &amp;quot;&lt;br /&gt;
        su $USER -c &amp;quot;$DAEMON -f&amp;quot;&lt;br /&gt;
        while ! netstat -l -n -p -t | grep -q amuled ; do sleep 1 ; done&lt;br /&gt;
        su $USER -c &amp;quot;$WEB --quiet &amp;amp;amp;&amp;quot;&lt;br /&gt;
     echo &amp;quot;$NAME.&amp;quot;&lt;br /&gt;
     ;;&lt;br /&gt;
   stop)&lt;br /&gt;
     echo -n &amp;quot;Stopping $DESC: &amp;quot;&lt;br /&gt;
        killall --quiet --ignore-case $WEB&lt;br /&gt;
        killall --quiet --ignore-case $DAEMON&lt;br /&gt;
     echo &amp;quot;$NAME.&amp;quot;&lt;br /&gt;
     ;;&lt;br /&gt;
   restart|force-reload)&lt;br /&gt;
     echo -n &amp;quot;Restarting $DESC: &amp;quot;&lt;br /&gt;
        killall --quiet --ignore-case $WEB&lt;br /&gt;
        killall --quiet --ignore-case $DAEMON&lt;br /&gt;
     sleep 1&lt;br /&gt;
        su $USER -c &amp;quot;$DAEMON -f&amp;quot;&lt;br /&gt;
        while ! netstat -l -n -p -t | grep -q amuled ; do sleep 1 ; done&lt;br /&gt;
        su $USER -c &amp;quot;$WEB --quiet &amp;amp;amp;&amp;quot;&lt;br /&gt;
     echo &amp;quot;$NAME.&amp;quot;&lt;br /&gt;
     ;;&lt;br /&gt;
   *)&lt;br /&gt;
     N=/etc/init.d/$NAME&lt;br /&gt;
     echo &amp;quot;Usage: $N {start|stop|restart|force-reload}&amp;quot; &amp;amp;gt;&amp;amp;2&lt;br /&gt;
     exit 1&lt;br /&gt;
     ;;&lt;br /&gt;
 esac&lt;br /&gt;
 &lt;br /&gt;
 exit 0&lt;br /&gt;
&lt;br /&gt;
Then just set that script to be run at start up. On [[Debian]] this would be done with the following command:&lt;br /&gt;
&lt;br /&gt;
 update-rc.d amule defaults&lt;br /&gt;
&lt;br /&gt;
Then, for the daemons to start you just have to create a file ''/etc/default/amule'' which contains a single line:&lt;br /&gt;
&lt;br /&gt;
 RUNAMULE=yes&lt;br /&gt;
&lt;br /&gt;
== Template language and development  ==&lt;br /&gt;
&lt;br /&gt;
aMuleWeb templates are ordinary HTML files. In order to make them &amp;quot;interactive&amp;quot;, server-side language is embedded inside. This language is scaled down dialect of PHP. More detailed information can be found on [[aMuleWeb_PHP]].&lt;br /&gt;
&lt;br /&gt;
== Where to report problems and questions? ==&lt;br /&gt;
&lt;br /&gt;
For Problems or Questions just report on http://forum.amule.org forum or join [[IRC]] channel [irc://irc.freenode.net/amule #amule] at [irc://irc.freenode.net irc.freenode.net]&lt;br /&gt;
&lt;br /&gt;
== Other sources of information ==&lt;br /&gt;
&lt;br /&gt;
Read the aMuleWeb man page, which is available in English, French, German, Hungarian and Spanish.&lt;br /&gt;
&lt;br /&gt;
For further information read the [[FAQ_webserver|aMuleWeb FAQ]].&lt;/div&gt;</summary>
		<author><name>212.85.29.5</name></author>	</entry>

	</feed>