<?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=84.223.94.197</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=84.223.94.197"/>
		<link rel="alternate" type="text/html" href="http://test.amule.szerverem.hu/wiki/Special:Contributions/84.223.94.197"/>
		<updated>2026-04-05T18:17:35Z</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>2008-06-14T14:04:03Z</updated>
		
		<summary type="html">&lt;p&gt;84.223.94.197: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;center&amp;gt;'''English''' | [[AMuleWeb-de|Deutsch]] | [[AMuleWeb-it|Italiano]] &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 if 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. If you're a debian or ubuntu user and you use Synaptic, be shure to install not only amule and amule-common package, but also amule-daemon package.&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 file|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;
(In fact, if you've installed aMule by package, installing also the amule-common and amule-daemon package, you shouldn't need to give this terminal commands; everything should work simply by correctly setting the &amp;quot;Remote Controls&amp;quot; page and restarting aMule)&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;br /&gt;
&lt;br /&gt;
== Version ==&lt;br /&gt;
Created by &amp;quot;Unknown User&amp;quot; on 21.07.04 at 20:55&amp;lt;br&amp;gt;&lt;br /&gt;
Updated by Vollstrecker on 18.01.08 at 13:18&lt;/div&gt;</summary>
		<author><name>84.223.94.197</name></author>	</entry>

	<entry>
		<id>http://test.amule.szerverem.hu/wiki/AMuleWeb-it</id>
		<title>AMuleWeb-it</title>
		<link rel="alternate" type="text/html" href="http://test.amule.szerverem.hu/wiki/AMuleWeb-it"/>
				<updated>2008-06-14T14:03:03Z</updated>
		
		<summary type="html">&lt;p&gt;84.223.94.197: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;center&amp;gt;'''Italiano''' | [[AMuleWeb|English]] | [[AMuleWeb-de|Deutsch]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''aMuleWeb''' è un'utility che vi permette di controllare aMule tramite un browser web da qualsiasi luogo. L'interfaccia web offre una ristretta cerchia delle funzionalità di aMule, tra cui la ricerca di file, l'aggiunta di nuovi download, e la visualizzazione della vostra coda di download. Mostra inoltre le informazioni di stato e vi permette di modificare alcune opzioni.&lt;br /&gt;
&lt;br /&gt;
aMule di per sè non supporta connessioni [http://www.w3.org/MarkUp HTTP]; aMuleWeb, che le supporta, funziona quindi da intermediario tra aMule e un browser web. Una volta che la connessione tra aMuleWeb e l'utente remoto è stata stabilita, aMuleWeb si connette ad aMule attraverso l'interfaccia [[External Connections|Connessioni Esterne]].&lt;br /&gt;
&lt;br /&gt;
Di base, aMuleWeb attende le conenssioni HTTP sulla porta 4711, ma questo può essere cambiato in [[Usage Preferences|Preferenze]].&lt;br /&gt;
&lt;br /&gt;
== Installare aMuleWeb ==&lt;br /&gt;
&lt;br /&gt;
Molte, se non tutte le distro hanno un pacchetto aMule nei propri repository. Se installate aMule con un pacchetto RPM, DEB, o attraverso altri sistemi di gestione dei pacchetti, aMuleWeb sarà incluso nell'installazione. Se siete un utente debian o ubuntu e usate Synaptic, accertatevi di installare non solo i pacchetti amule e amule-common, ma anche il pacchetto amule-daemon.&lt;br /&gt;
&lt;br /&gt;
Questo è il più semplice e preferibile metodo di installare aMule e aMuleWeb.&lt;br /&gt;
&lt;br /&gt;
== Compilare aMuleWeb ==&lt;br /&gt;
&lt;br /&gt;
Se non avete installato aMule usando un pacchetto, necessiterete di compilarlo dal codice sorgente.&lt;br /&gt;
&lt;br /&gt;
aMuleWeb non è compilato separatamente; è compilato contemporaneamente ad aMule usando il flag ''--enable-amuleweb'' quando eseguite ''configure''. (Vedere la [[Main_Page-it|Pagina principale]] per i link a pagine riguardo alla compilazione di aMule per vari sistemi operativi).&lt;br /&gt;
&lt;br /&gt;
== Configurare aMuleWeb ==&lt;br /&gt;
&lt;br /&gt;
Per usare aMuleWeb, avrete prima bisogno di impostare alcune opzioni nella sezione Preferenze di aMule. Nella pagina &amp;quot;Controlli Remoti&amp;quot; dovrete:&lt;br /&gt;
&lt;br /&gt;
* Abilitare &amp;quot;Accetta Connessioni Esterne&amp;quot;.&lt;br /&gt;
* Inserire una password per le Connessioni Esterne.&lt;br /&gt;
* Abilitare webserver all'avvio.&lt;br /&gt;
&lt;br /&gt;
Potete anche modificare la porta predefinita di aMuleWeb (4711) e la porta delle Connessioni Esterne (4712) in questa pagina, ma facendolo, dovrete riavviare aMule per rendere effettive le modifiche.&lt;br /&gt;
&lt;br /&gt;
(Se state usando aMuled e non volete usare aMule per configurare aMuleWeb, guardare le istruzioni sotto)&lt;br /&gt;
&lt;br /&gt;
Quindi, ciò di cui avete bisogno è generare [[remote.conf file|remote.conf]], il file dove aMuleWeb salva le proprie informazioni di configurazione. (Potete trovarlo nella directory .aMule.)&lt;br /&gt;
Tra le altre cose, questo file contiene il numero di porta che aMule usa per le Connessioni Esterne e le password necessarie per accedere ad aMule.  &lt;br /&gt;
&lt;br /&gt;
Per creare un file ''remote.conf'', immettere da terminale il comando:&lt;br /&gt;
&lt;br /&gt;
 $ amuleweb -w&lt;br /&gt;
&lt;br /&gt;
aMuleWeb leggerà le informazioni di configurazione necessareie da amule.conf e cenererà un file ''remote.conf'' , quindi uscirà.&lt;br /&gt;
&lt;br /&gt;
Ora lanciate aMuleWeb normalmente:&lt;br /&gt;
&lt;br /&gt;
 $ amuleweb&lt;br /&gt;
&lt;br /&gt;
(In realtà se avete installato aMule come pacchetto seguendo le suddette istruzioni, questi due comandi non sono necessari, basterà effettuare le impostazioni corrette in &amp;quot;Controlli Remoti&amp;quot; e riavviare aMule affinchè tutto funzioni)&lt;br /&gt;
&lt;br /&gt;
Ora dovreste essere in gradi di aprire aMuleWeb in un browser digitando l'URL (sulla macchina su cui gira aMule):&lt;br /&gt;
&lt;br /&gt;
  http://localhost:4711&lt;br /&gt;
&lt;br /&gt;
oppure, con il nome di dominio del computer (in locale o da remoto):&lt;br /&gt;
&lt;br /&gt;
  http://hostname:4711&lt;br /&gt;
&lt;br /&gt;
Se volete far girare aMuleWeb su una macchina diversa da quella di aMule, semplicemente copiate ''remote.conf'' nella directory .aMule di quel computer, e cambiate correttamente il valore che segue a &amp;quot;Host=&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
'''NOTA:''' aMuleWeb usa i cookies per salvare le informazioni della sessione. Assicuratevi che i cookies siano abilitati nel vostro browser.&lt;br /&gt;
&lt;br /&gt;
== Lanciare aMuleWeb ==&lt;br /&gt;
&lt;br /&gt;
Ci sono due modi per lanciare aMuleWeb.&lt;br /&gt;
&lt;br /&gt;
Il primo, e preferibile, è di abilitare l'attivazione di aMuleWeb nelle preferenze di aMule. Quando viene lanciato, aMule (o aMuled) lancerà aMuleWeb. A seguito dell'uscita, aMuleWeb sarà automaticamente terminato.&lt;br /&gt;
&lt;br /&gt;
La seconda opzione è di lanciare aMuleWeb manualmente, digitando il comando &amp;quot;amuleweb&amp;quot; nel terminale.&lt;br /&gt;
&lt;br /&gt;
== Configurare aMuleWeb con aMuled ==&lt;br /&gt;
&lt;br /&gt;
Innanzitutto, se aMuled sta girando, chiudetelo.&lt;br /&gt;
&lt;br /&gt;
Quindi digitate:&lt;br /&gt;
&lt;br /&gt;
  $ amuleweb -w&lt;br /&gt;
&lt;br /&gt;
per generare un file ''remote.conf''. Avrete bisogno di modificare queste opzioni nella sezione &amp;lt;nowiki&amp;gt;[&amp;lt;/nowiki&amp;gt;ExternalConnect&amp;lt;nowiki&amp;gt;]&amp;lt;/nowiki&amp;gt; di 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;
Potete ora riavviare aMuled e aMuleWeb.&lt;br /&gt;
&lt;br /&gt;
'''NOTA:''' Le password devono essere nel formato md5sum. Per generare un MD5sum per la vosta password, da terminale:&lt;br /&gt;
 ''$ echo -n yourpasswordhere | md5sum | cut -d ' ' -f 1''&lt;br /&gt;
 ''ca3c365274907c6fd527068788e14639''&lt;br /&gt;
&lt;br /&gt;
'''Nota'''Se ottenete la risposta ''FATAL ERROR: Cannot find template: default'' è perchè non avete lanciato ''make install''. Se non volete installare aMule, copiate la directory ''src/webserver/default/'' in ''~/.aMule/webserver/'' (createla se necessario).&lt;br /&gt;
Se volete un qualsiasi altro template (probabilmente ''php-default''), copiate anche quello. Quindi tornate al passo precedente.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== aMuleWeb con versioni precedenti di aMule ===&lt;br /&gt;
&lt;br /&gt;
Per istruzioni su come usare aMuleWeb con aMule pre-2.0.0 final, vedere [[Webserver-old|this page]] per il materiale archiviato.&lt;br /&gt;
&lt;br /&gt;
== Porte standard ==&lt;br /&gt;
&lt;br /&gt;
The ports can be set to anything, but by default aMule uses:&lt;br /&gt;
Le porte possono essere settate a qualunque valore, ma come predefinite aMule usa:&lt;br /&gt;
&lt;br /&gt;
*Connecssioni Esterne: 4712&lt;br /&gt;
*amuleweb: 4711&lt;br /&gt;
&lt;br /&gt;
Assicuratevi di non confondere le due; nella configurazione predefinita, dovrebbe essere così:&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;
== Percorsi dei Template (skin) ==&lt;br /&gt;
&lt;br /&gt;
aMuleWeb cerca i propri files in diversi posti:&lt;br /&gt;
&lt;br /&gt;
*Nella vostra 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;
*E nella sua directory di instalalzione, in questo ordine (di default, ''/usr/local/share/amule/webserver'' se avete compilato aMule, o ''/usr/share/amule/webserver'' se l'avete installato tramite pacchetto).&lt;br /&gt;
&lt;br /&gt;
Il nome del template di Default è 'default'.&lt;br /&gt;
&lt;br /&gt;
Se, ''dopo aver installato'' aMule, aMuleWeb si rifiuta di funzionare o non è in grado di caricare un template:&lt;br /&gt;
&lt;br /&gt;
*Per favore, segnalaci la situazione e poi&lt;br /&gt;
&lt;br /&gt;
*Create le directories ''webserver/default'' nella sottodirectory ''.aMule'' della vostra home, e copiate qui il contenuto della cartella ''src/webserver'' dall'archivio tarball di aMule (es, ''$HOME/.aMule/webserver/default'').&lt;br /&gt;
&lt;br /&gt;
== aMuled e aMuleWeb come servizi  ==&lt;br /&gt;
&lt;br /&gt;
Benchè lanciare aMuleWeb abilitandolo nelle preferenze di aMule sia il metodo da preferire, potete anche lanciare aMuleWeb insieme ad aMuled come servizi, attraverso uno script init.d . Questo è un esempio:&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;
Quindi semplicemente impostate che quello script venga eseguito all'accensione. Su [[Debian]] questo potrebbe essere fatto con il comando seguente:&lt;br /&gt;
&lt;br /&gt;
 update-rc.d amule defaults&lt;br /&gt;
&lt;br /&gt;
Quindi, per far partire i demoni dovete creare un file ''etc/default/amule'' che contenga una sola linea:&lt;br /&gt;
&lt;br /&gt;
 RUNAMULE=yes&lt;br /&gt;
&lt;br /&gt;
== Sviluppo e lingua dei Template  ==&lt;br /&gt;
&lt;br /&gt;
I template di aMuleWeb sono normali file HTML. Per renderli &amp;quot;interattivi&amp;quot;, il linguaggio lato server è implementato internamente. Questo linguaggio è un dialetto ridotto del PHP.  Informazioni maggiormente dettagliate possono essere trovate a [[aMuleWeb_PHP]].&lt;br /&gt;
&lt;br /&gt;
== Dove riportare problemi e domande? ==&lt;br /&gt;
&lt;br /&gt;
Per Problemi o Domande semplicemente scrivete sul forum http://forum.amule.org o entrate nel canale [[IRC]] [irc://irc.freenode.net/amule #amule] su [irc://irc.freenode.net irc.freenode.net]&lt;br /&gt;
&lt;br /&gt;
== Altre fonti di informazione ==&lt;br /&gt;
&lt;br /&gt;
Read the aMuleWeb man page, which is available in English, French, German, Hungarian and Spanish.&lt;br /&gt;
Leggete la pagina di manuale di aMuleWeb, che è disponibile in Inglese, Francese, Tedesco, Ungherese e Spagnolo.&lt;br /&gt;
&lt;br /&gt;
Per ulteriori informazioni leggete la [[FAQ_webserver|FAQ di aMuleWeb]].&lt;br /&gt;
&lt;br /&gt;
== Version ==&lt;br /&gt;
Created by &amp;quot;Unknown User&amp;quot; on 21.07.04 at 20:55&amp;lt;br&amp;gt;&lt;br /&gt;
Updated by Vollstrecker on 18.01.08 at 13:18&amp;lt;br&amp;gt;&lt;br /&gt;
Tradotto da--[[User:84.223.94.197|84.223.94.197]] 16:03, 14 June 2008 (CEST)&lt;/div&gt;</summary>
		<author><name>84.223.94.197</name></author>	</entry>

	<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>2008-06-14T13:36:59Z</updated>
		
		<summary type="html">&lt;p&gt;84.223.94.197: /* Configuring aMuleWeb */&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 if 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. If you're a debian or ubuntu user and you use Synaptic, be shure to install not only amule and amule-common package, but also amule-daemon package.&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 file|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;
(In fact, if you've installed aMule by package, installing also the amule-common and amule-daemon package, you shouldn't need to give this terminal commands; everything should work simply by correctly setting the &amp;quot;Remote Controls&amp;quot; page and restarting aMule)&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;br /&gt;
&lt;br /&gt;
== Version ==&lt;br /&gt;
Created by &amp;quot;Unknown User&amp;quot; on 21.07.04 at 20:55&amp;lt;br&amp;gt;&lt;br /&gt;
Updated by Vollstrecker on 18.01.08 at 13:18&lt;/div&gt;</summary>
		<author><name>84.223.94.197</name></author>	</entry>

	<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>2008-06-14T11:40:34Z</updated>
		
		<summary type="html">&lt;p&gt;84.223.94.197: /* Installing aMuleWeb */&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 if 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. If you're a debian or ubuntu user and you use Synaptic, be shure to install not only amule and amule-common package, but also amule-daemon package.&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 file|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;br /&gt;
&lt;br /&gt;
== Version ==&lt;br /&gt;
Created by &amp;quot;Unknown User&amp;quot; on 21.07.04 at 20:55&amp;lt;br&amp;gt;&lt;br /&gt;
Updated by Vollstrecker on 18.01.08 at 13:18&lt;/div&gt;</summary>
		<author><name>84.223.94.197</name></author>	</entry>

	</feed>