Difference between revisions of "Webserver"

From AMule Project FAQ
Jump to: navigation, search
(links)
Line 1: Line 1:
== How to setup a Webserver with aMule2.0.0rc1 and later: ==
+
== How to setup a Webserver with [[aMule]] 2.0.0rc1 and later: ==
  
When you installed your aMule via deb package or rpm, the webserver source is not included.  
+
When you installed your [[aMule]] via deb package or rpm, the [[aMuleWeb|webserver]] source is not included.  
Please visit www.amule.org and download the tar.gz package for your aMule version.
+
Please visit http://www.amule.org and download the tar.gz package for your [[aMule]] version.
  
  
Line 8: Line 8:
 
'''SETUP'''
 
'''SETUP'''
  
0) Untar it and copy from the src folder:
+
0) Untar it and copy from the src directory:
  
-aMule.tmpl
+
*''aMule.tmpl''
  
-and the webserver folder
+
*And the [[aMuleWeb|webserver]] directory
  
   into your /home/usr_running_aMule/.aMule/ directory.  
+
   into your ''/home/usr_running_aMule/.aMule/'' directory.  
  
  
1) shutdown your aMule if it is still running
+
1) Shutdown your [[aMule]] if it is still running
  
  
2) edit your .eMule file:  
+
2) Edit your ''.eMule'' file:  
  
-locate the "[ExternalConnect]" section and change:
+
*Locate the ''[ExternalConnect]'' section and change:
  
AcceptExternalConnections=1 <-- to enable amule listening for external connections
+
**''AcceptExternalConnections=1'' <-- To enable [[aMule]] listening for [[External Connections]]
  
ECUseTCPPort=1 <-- the use the tcp port! very importand since unix sockets are disabled  
+
**''ECUseTCPPort=1'' <-- The use the TCP port! Very important since Unix sockets are disabled  
  
  
3) restart aMule
+
3) Restart [[aMule]]
  
  
4) go to your aMule preferences and the tab "remote connection":
+
4) Go to your Preferences -> Remote Connection (in [[aMule]]):
  
-enable your webserver
+
*Enable your [[aMuleWeb|webserver]]
  
-also setup your passwords here for external connection and webserver login
+
*Also setup your passwords here for [External Connections]] and [[aMuleWeb|webserver]] login
  
-when you change your ports for webserver and external connections here make sure to restart aMule!!
+
*When you change your ports for [[aMuleWeb|webserver]] and [[External Connections]] here make sure to restart [[aMule]]!!
  
  
5) after you are done, save your settings, go to console and type
+
5) After you are done, save your settings, go to console and type
-amuleweb
+
*''amuleweb''
  
  type in your password. This will startup your aMule webserver. If you changed your external connection port to someting else start amuleweb with
+
  Type in your password. This will startup your [[aMule]] [[aMuleWeb|webserver]]. If you changed your [[External Connections]] port to someting else start [[aMuleWeb|amuleweb]] with:
  
         -amuleweb -p new_port
+
         *''amuleweb -p '''new_port'''''
  
 
   at the end it should look something like this:
 
   at the end it should look something like this:
  
 
+
<code>
 
Web Server: Started  
 
Web Server: Started  
  
Line 60: Line 60:
  
 
WSThread: created socket listening on :4711  
 
WSThread: created socket listening on :4711  
 +
</code>
  
 +
6) To make sure it is working use your favorite browser to browse:
  
6) to make sure it is working use your favorite browser:
+
*''http://localhost:4711''
 
+
-http://localhost:4711
+
  
this is the default port of your aMuleweb. If you connect to 4712 this will not work since it is the external connections port, connecting here will result in error messages by aMule.
+
This (port 4711) is the default port of your [[aMuleWeb]]. If you connect to 4712 this will not work since it is the [[External Connections]] port, so connecting here will result in error messages by [[aMule]].
  
For Problems or Questions just report on forum or join channel #amule on IRC Network : FREENODE.  
+
For Problems or Questions just report on [http://forum.amule.org forum] or join [[IRC]] channel #amule at irc.freenode.net
  
  
Stefanero
+
'''Stefanero'''

Revision as of 07:07, 17 July 2004

How to setup a Webserver with aMule 2.0.0rc1 and later:

When you installed your aMule via deb package or rpm, the webserver source is not included. Please visit http://www.amule.org and download the tar.gz package for your aMule version.


SETUP

0) Untar it and copy from the src directory:

*aMule.tmpl

*And the webserver directory

 into your /home/usr_running_aMule/.aMule/ directory. 


1) Shutdown your aMule if it is still running


2) Edit your .eMule file:

*Locate the [ExternalConnect] section and change:

**AcceptExternalConnections=1 <-- To enable aMule listening for External Connections

**ECUseTCPPort=1 <-- The use the TCP port! Very important since Unix sockets are disabled


3) Restart aMule


4) Go to your Preferences -> Remote Connection (in aMule):

*Enable your webserver

*Also setup your passwords here for [External Connections]] and webserver login

*When you change your ports for webserver and External Connections here make sure to restart aMule!!


5) After you are done, save your settings, go to console and type *amuleweb

 Type in your password. This will startup your aMule webserver. If you changed your External Connections port to someting else start amuleweb with:
       *amuleweb -p new_port
  at the end it should look something like this:

Web Server: Started

amuleweb$

WSThread: Thread started

WSThread: created service

WSThread: created socket listening on :4711

6) To make sure it is working use your favorite browser to browse:

*http://localhost:4711

This (port 4711) is the default port of your aMuleWeb. If you connect to 4712 this will not work since it is the External Connections port, so connecting here will result in error messages by aMule.

For Problems or Questions just report on forum or join IRC channel #amule at irc.freenode.net


Stefanero