aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Author Topic: aMule webserver  (Read 7713 times)

thedogsbollock

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 10
aMule webserver
« on: September 10, 2005, 06:02:55 AM »

Hi folks

I am running aMule 2.0 on my Apple iBook (OS X 10.4.2) - I tried the CVS version out of interest but it appears to quit immediately when I start it up - and now I have just adjusted the preferences in an effort to run the webserver.

When using MLDonkey previously, I found it easier operating it from within my browser (Safari) but I believe I've adjusted the aMule preferences as per the instructions and no matter whether I try with Safari or IE, I cannot seem to load the page http://localhost:4711/ (or 4712)

Any advice would be most appreciated, but please bear in mind that it would be best to make like you are advising an eight year old, as otherwise I am likely to struggle to understand

With my utmost thanks in advance for any assistance you can lend
Big Love
Bernard
« Last Edit: September 10, 2005, 06:08:56 AM by thedogsbollock »
Logged

wuischke

  • Developer
  • Hero Member
  • *****
  • Karma: 183
  • Offline Offline
  • Posts: 4292
Re: aMule webserver
« Reply #1 on: September 10, 2005, 09:05:55 AM »

Hi Bernard!
I don't know about Mac-specific problems, but at least at Linux the newest CVS run very well. If you compile 'em for yourself, try to compile a new one. I just compiled todays CVS (20050910) and it works like a charm, compiled with kad and webserver.
If you don't want to compile I would propose to use 2.0.3.
Regarding your settings, this should be all necessary things. (Don't forget the pw's)
Code: [Select]
[ExternalConnect]
AcceptExternalConnections=1
ECUseTCPPort=1
ECPort=4712
[WebServer]
Enabled=1
Port=4711
On startup there should be sth. like
Code: [Select]
*** TCP socket (ECServer) listening on 0.0.0.0:4712
...
webserver running on pid 10168
...
New external connection accepted
Connecting client: aMuleweb CVS
Access granted.
in the log in the server tab. If this works you should be able to connect through safari.
Logged

stefanero

  • Some Support
  • Developer
  • Hero Member
  • *****
  • Karma: 8
  • Offline Offline
  • Posts: 4235
Re: aMule webserver
« Reply #2 on: September 10, 2005, 10:23:59 AM »

btw amuleweb is a seperated app on Mac and Linux, so its not like mldonkey which fires up the webserver at start for default

but you can set this in preferences to.
just make sure that the amuleweb binary is in path.
Logged
In its default setup, Windows XP on the Internet amounts to a car
parked in a bad part of town, with the doors unlocked, the key in
the ignition and a Post-It note on the dashboard saying, "Please
don't steal this."

thedogsbollock

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 10
Very much appreciate your help guys
« Reply #3 on: September 10, 2005, 11:33:29 AM »

..but sorry to say wuischke that the reason I became a Mac user in the first place is because it's so idiot proof. I am afraid I haven't the foggiest whenn it comes to issuing commands as you've very kindly gone to the trouble of detailing

Stefanero, after setting the prefs in aMule app (I got CVS to work by trashing the hidden ".amule" folder from the previous version, which was quite impressive for me :-) to "run aMuleweb on startup" I am hoping that the reasonit won't work if I go to localhost:4711 with my browser is because I must be missing something, like the nesessary binaries?

If it's not too much trouble do you think you could point me in the right direction, as I haven't got the foggiest when presented with a list of downloads, which ones might be most suitable for my purpose

Sorry to be such a pest and many thanks for your continued patience with this techno nincompoop
TTFN
Bernard
Logged

stefanero

  • Some Support
  • Developer
  • Hero Member
  • *****
  • Karma: 8
  • Offline Offline
  • Posts: 4235
Re: aMule webserver
« Reply #4 on: September 10, 2005, 12:15:56 PM »

heh no problem ;)
but 1st could you please stop opening up 2-3threads for teh same problem :)

the .zip file you download which contained the amule app, look inside and check if there is a binary called amuleweb, if yes

open a terminal!! and goto the path where this amuleweb binary is
then simple start aMule and type in teh terminal
./amuleweb

this should startup amuleweb for ya
I hope you read http://www.amule.org/wiki/index.php/Webserver for setup
basically you can do all with the amulegui under -> preferences -> remote-control

make sure everything is setup right then amuleweb should work for ya.

btw: if you want automatically startup to work, check that the path where teh amuleweb binary is, is in your terminal path
you can check taht by typing
amuleweb
 instead of
 ./amuleweb
when you are inside teh folder where teh amuleweb binary is

if you get an error with simple
amuleweb
then the automatically startup will not work. I dont have a mac, so if you want this to get working maybe join IRC freenode network and go to #macmule

hope that helps and was not to confusing ;)
stefanero
Logged
In its default setup, Windows XP on the Internet amounts to a car
parked in a bad part of town, with the doors unlocked, the key in
the ignition and a Post-It note on the dashboard saying, "Please
don't steal this."

stefanero

  • Some Support
  • Developer
  • Hero Member
  • *****
  • Karma: 8
  • Offline Offline
  • Posts: 4235
Re: aMule webserver
« Reply #5 on: September 10, 2005, 12:20:00 PM »

Logged
In its default setup, Windows XP on the Internet amounts to a car
parked in a bad part of town, with the doors unlocked, the key in
the ignition and a Post-It note on the dashboard saying, "Please
don't steal this."

ken

  • Hero Member
  • *****
  • Karma: 4
  • Offline Offline
  • Posts: 825
Re: aMule webserver
« Reply #6 on: September 11, 2005, 06:41:35 AM »

Well, stefanero is well-meaning, but almost all of his advice is wrong.  :P ;)  The threads he linked to are either out of date or not necessary for normal operation of amuleweb on the Mac.

Except that part about not posting the same question 3 times across the forum.  I agree with him: please don't do that.

To get the webserver working on the Mac:
  • You should be using the 2.0.3 binary (Go to the aMule homepage, click on "Download" on the left, find "aMule-Mac-2.0.3.zip" and download it.)  To check what version you have, look at the beginning of the log in aMule's Servers List Window.
  • In aMule, open the preferences dialog and select Remote Controls
  • Enable "Run amuleweb on startup".
  • To prevent other people from taking control of your aMule, set a "Full rights password".  This is the password you will use when you connect to amuleweb with your web browser.
  • The amuleweb program connects to aMule via an external connection.  So, enable "Accept External Connections".
  • For security purposes, external connections require a password.  Enter one in the "Password" field in the "External Connection Parameters" section.  If things go properly. you won't need to provide this again; it is only used behind the scenes between amuleweb and aMule.
  • Click OK to confirm these preference changes.
  • Restart aMule for the preference changes to take effect.  When aMule starts, it should run amuleweb for you with all the necessary configuration information.
  • Use your web browser to access amuleweb on your Mac.
  • You should get a login screen.  Enter the same password you specified earlier for "Full rights password".

That should do the job.  If it still doesn't work, then we'll need to see more information to figure out what is going wrong.  You should copy the log from aMule's Servers List Window and paste it to a post here.  Also, open /Applications/Utilities/Console.app to view the console.log.  Copy the stuff from the end, starting with "Initialising aMule", and paste it here, too.
Logged

stefanero

  • Some Support
  • Developer
  • Hero Member
  • *****
  • Karma: 8
  • Offline Offline
  • Posts: 4235
Re: aMule webserver
« Reply #7 on: September 11, 2005, 12:56:25 PM »

:P how am I supposed to know that they are out of date  :]

ken: maybe you should add a little section in teh amuleweb wiki about mac ;)
Logged
In its default setup, Windows XP on the Internet amounts to a car
parked in a bad part of town, with the doors unlocked, the key in
the ignition and a Post-It note on the dashboard saying, "Please
don't steal this."