<?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=83.135.25.164</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=83.135.25.164"/>
		<link rel="alternate" type="text/html" href="http://test.amule.szerverem.hu/wiki/Special:Contributions/83.135.25.164"/>
		<updated>2026-04-05T18:21:00Z</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>2006-01-05T17:06:01Z</updated>
		
		<summary type="html">&lt;p&gt;83.135.25.164: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Description ==&lt;br /&gt;
&lt;br /&gt;
aMuleWeb is a utility that listens for [http://www.w3.org/MarkUp HTTP] connections at port 4711 (by default, although it can be changed through '''Preferences''') and allows remote users to control [[aMule]] using just a web browser. &lt;br /&gt;
&lt;br /&gt;
[[aMule]] itself doesn't support listening to [http://www.w3.org/MarkUp HTTP] connections, so the external utility aMuleWeb is used. This utility listens for remote connections, and once the link between aMuleWeb and the remote user is established, it connects to the [[aMule]] main program using the [[External Connections]] mechanism.&lt;br /&gt;
&lt;br /&gt;
== Compiling aMuleWeb ==&lt;br /&gt;
&lt;br /&gt;
[[Compile]] [[aMule]] normally, just add ''--enable-amuleweb'' when running ''configure''.&lt;br /&gt;
&lt;br /&gt;
== Setting up aMuleWeb with [[aMule]] ==&lt;br /&gt;
&lt;br /&gt;
=== aMuleWeb with [[aMule]] 2.0.0 or later ===&lt;br /&gt;
&lt;br /&gt;
*For users running the monotlithic [[aMule]] application:&lt;br /&gt;
**Go to &amp;quot;Preferences&amp;quot;-&amp;gt;&amp;quot;Remote Controls&amp;quot; (in [[aMule]]) and...&lt;br /&gt;
***Enable &amp;quot;Accept External Connections&amp;quot;.&lt;br /&gt;
***Enable &amp;quot;Use TCP ports instead of unix local sockets&amp;quot; (This option doesn't exist since version 2.1.0)&lt;br /&gt;
***Enter a password for [[External Connections]]. If you don't do this, aMuleWeb will not communicate with [[aMule]].&lt;br /&gt;
::'''NOTE:''' When you change your aMuleWeb and [[External Connections]] ports here, make sure to restart [[aMule]].&lt;br /&gt;
&lt;br /&gt;
*For users running the [[aMule|aMule daemon]]:&lt;br /&gt;
**Shutdown [[aMule|aMuled]] if it is still running.&lt;br /&gt;
**Run ''amuleweb -w'' to generate ''~/.aMule/remote.conf'' and edit it for these options. It previously were on ''~/.aMule/amule.conf'', but the lines are still on this file, so edit both if in doubt.&lt;br /&gt;
***''[ExternalConnect]'' &amp;lt;- Section header&lt;br /&gt;
***''AcceptExternalConnections=1'' &amp;lt;-- To enable [[aMule]] listening for [[External Connections]].&lt;br /&gt;
***''ECUseTCPPort=1'' &amp;lt;-- To use the [http://www.faqs.org/faqs/internet/tcp-ip/resource-list TCP] port. Very important since [http://www.unix.org Unix] sockets are disabled.&lt;br /&gt;
***''ECPassword=ca3c365274907c6fd527068788e14639'' &amp;lt;-- To find the MD5 string for your password, do:&lt;br /&gt;
:::''$ echo -n yourpasswordhere | md5sum | cut -d ' ' -f 1''&lt;br /&gt;
:::''ca3c365274907c6fd527068788e14639''&lt;br /&gt;
**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;
**Restart [[aMule|aMuled]]&lt;br /&gt;
&lt;br /&gt;
'''NOTE:''' In [[aMule]] version 2.0.0 and later you don't need to do any copy/link of [[aMuleWeb|webserver]] files.&lt;br /&gt;
&lt;br /&gt;
'''NOTE2:''' Every password must be md5sum,also webserver one/s. aMule embedded webserver works without remote.conf,you just need to edit ''amule.conf''. A good trick if you have somewhere an X server is to configure amule using the GUI and then copy the ''amule.conf'' configuration file where you want to run the daemon.&lt;br /&gt;
&lt;br /&gt;
Thanks to [[User:Stefanero|Stefanero]], from who I shamelessly stole a lot from his tutorial.&lt;br /&gt;
&lt;br /&gt;
'''NOTE3:''' aMuleWeb uses cookies to hold session id. Make sure that cookies are enabled in your browser.&lt;br /&gt;
&lt;br /&gt;
=== aMuleWeb with [[aMule]] pre-2.0.0 final ===&lt;br /&gt;
&lt;br /&gt;
Please check [[Webserver-old|this page]] for archived instructions (educational purposes!).&lt;br /&gt;
&lt;br /&gt;
== Connecting to aMuleWeb ==&lt;br /&gt;
&lt;br /&gt;
To run aMuleWeb run '''''amuleweb''''' on a terminal.&lt;br /&gt;
&lt;br /&gt;
Once aMuleWeb is running, open a web browser and connect to:&lt;br /&gt;
&lt;br /&gt;
''http://host:port''&lt;br /&gt;
&lt;br /&gt;
where ''host'' stands for your host's name (try with ''localhost'') and port stands for the aMuleWeb port ('''NOT''' the [[External Connections]] port).&lt;br /&gt;
&lt;br /&gt;
For example: ''http://localhost:4711''&lt;br /&gt;
&lt;br /&gt;
''Shakraw''&lt;br /&gt;
&lt;br /&gt;
== Standard ports ==&lt;br /&gt;
&lt;br /&gt;
The ports can be set to anything, but this are the most used (the standard ones):&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 with what each of them is.&lt;br /&gt;
&lt;br /&gt;
== Skin support ==&lt;br /&gt;
&lt;br /&gt;
aMuleWeb now looks for its files in a number of places:&lt;br /&gt;
*In your home directory: ''$HOME/.aMule/webserver/''[skin name]''/''&lt;br /&gt;
*And at it's 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 skin (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;
*Please report this situation to us, and then&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 (I mean to ''$HOME/.aMule/webserver/default'').&lt;br /&gt;
&lt;br /&gt;
'''[[User:GonoszTopi|GonoszTopi]]'''&lt;br /&gt;
&lt;br /&gt;
== How to start [[aMule Daemon|aMuled]] and aMuleWeb with your computer ==&lt;br /&gt;
&lt;br /&gt;
The best way to start both the processes aMule Daemon and aMuleWeb with your server is to add a shell script ''/etc/init.d/amule'' like this:&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;
 &lt;br /&gt;
 test -x $DAEMON || exit 0&lt;br /&gt;
 &lt;br /&gt;
 # Include amule defaults if available&lt;br /&gt;
 if [ -f /etc/default/amule ] ; then&lt;br /&gt;
     . /etc/default/amule&lt;br /&gt;
 fi&lt;br /&gt;
&lt;br /&gt;
 if [ &amp;quot;$RUNAMULE&amp;quot; != &amp;quot;yes&amp;quot; ];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 youramuleuser -c &amp;quot;$DAEMON -f&amp;quot;&lt;br /&gt;
        sleep 20&lt;br /&gt;
        su youramuleuser -c &amp;quot;$WEB --quiet &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 youramuleuser -c &amp;quot;$DAEMON -f&amp;quot;&lt;br /&gt;
        sleep 20&lt;br /&gt;
        su youramuleuser -c &amp;quot;$WEB --quiet &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;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 doen with the following command:&lt;br /&gt;
&lt;br /&gt;
 ln -s /etc/init.d/amule /etc/rc2.d/S61amule&lt;br /&gt;
&lt;br /&gt;
Then, for the deamons 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;
That's it!&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>83.135.25.164</name></author>	</entry>

	</feed>