aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Author Topic: Can't get webserver working  (Read 2606 times)

saulius

  • Newbie
  • Karma: 0
  • Offline Offline
  • Posts: 4
Can't get webserver working
« on: November 14, 2006, 10:41:47 AM »

Installed aMule with dselect on Debian (no GUI). Only daemon. Trying to start web server. When I try to start aMule daemon with command:
Code: [Select]
amuledit reports:
Code: [Select]
saulius@serveris:~$ amuled
amuled: OnInit - starting timer
Initialising aMule
Checking if there is an instance already running...
No other instances are running.
Loading temp files from /home/saulius/.aMule/Temp.

All PartFiles Loaded.
ListenSocket: Ok.

*** TCP socket (ECServer) listening on 0.0.0.0:4712
*** Server UDP socket (TCP+3) at 0.0.0.0:4665
*** TCP socket (TCP) listening on 0.0.0.0:4662
*** Client UDP socket (extended eMule) at 0.0.0.0:4672
Empty dir /home/saulius/.aMule/Incoming/ shared
and hangs.
When I try to start web server with command:
Code: [Select]
amulewebit reports:
Code: [Select]
saulius@serveris:~$ amuleweb
This is amuleweb 2.1.3

Creating client...
and it hangs.
I break these hangings with ctrl+c. Maybe someone has an idea what I do wrong (I am beginner in linux).
Thank you in advance.

Here is amule.conf
Code: [Select]
ProxyName=
ProxyPort=1080
ProxyEnablePassword=0
ProxyUser=
ProxyPassword=
[WebServer]
Enabled=0
Password=
PasswordLow=
Port=4711
UseGzip=1
UseLowRightsUser=0
PageRefreshTime=120
Template=
[ExternalConnect]
AcceptExternalConnections=1
ECAddress=
ECPort=4712
ECPassword=06a23afb91c2f93137b788271c15f398
ShowProgressBar=1
ShowPercent=0
UseSrcSeeds=0
UseSecIdent=1
IpFilterOn=1
[Razor_Preferences]
FastED2KLinksHandler=1
FullQueueSources=0
HighQueueRankingSources=0
HighQueueRanking=1200
AutoDropTimer=240
NoNeededSourcesHandling=2
[SkinGUIOptions]
UseSkinFile=0
SkinFile=
[Statistics]
MaxClientVersions=0
TotalDownloadedBytes=0
TotalUploadedBytes=0
and remote.conf
Code: [Select]
Locale=
[EC]
Host=localhost
Port=4712
Password=06a23afb91c2f93137b788271c15f398
[Webserver]
Port=-1
Template=php-default
UseGzip=0
AllowGuest=0
AdminPassword=
GuestPassword=

Logged

wuischke

  • Developer
  • Hero Member
  • *****
  • Karma: 183
  • Offline Offline
  • Posts: 4292
Re: Can't get webserver working
« Reply #1 on: November 14, 2006, 08:35:23 PM »

Hi saulius!

amuled doesn't hang, this is the desired behaviour of a running amuled. :)
If you don't want to have these not-interactive display, start amuled with the 'amuled -f' command or use 'amuled &'.

Please change the port setting in the remote.conf file to 4712 and insert the md5-hash of a password at least for Adminpassword and tell us if it works now.
Logged

saulius

  • Newbie
  • Karma: 0
  • Offline Offline
  • Posts: 4
Re: Can't get webserver working
« Reply #2 on: November 15, 2006, 10:20:46 AM »

It still does not work. I made changes as wuischke told. Now it connects to the server ip through port 4712, but the window of the browser stays blank. (if I don't start amuled it says "unable to connect" in a browser). I start amuled as a user.Directory with all files, including amule.conf and remote.conf are in my user directory.
I have a feeling that it might be something with one of these:
1. Something wrong in amule.conf or remote.conf (are below).
2. Something wrong with firewall. But then it probably always would tell me in the browser that "unable to connect", and now when I start amuled it shows a blank page. ???
3. During instalation I missed part
Code: [Select]
./configure --enable-amulecmd --enable-webserver --disable-monolithic --enable-amule-daemonsince I installed it through dselect (Debian).
4. Problem that I am not aware of.

Maybe someone could give me a tip?
Thank you.

amule.conf related part (as I believe related):
Code: [Select]
[Proxy]
ProxyEnableProxy=0
ProxyType=0
ProxyName=
ProxyPort=1080
ProxyEnablePassword=0
ProxyUser=
ProxyPassword=
[WebServer]
Enabled=1
Password=06a23afb91c2f93137b788271c15f398
PasswordLow=
Port=4712
UseGzip=1
UseLowRightsUser=0
PageRefreshTime=120
Template=
[ExternalConnect]
AcceptExternalConnections=1
ECAddress=
ECPort=4712
ECPassword=06a23afb91c2f93137b788271c15f398
ShowProgressBar=1
ShowPercent=0
UseSrcSeeds=0
UseSecIdent=1
IpFilterOn=1
[Razor_Preferences]
FastED2KLinksHandler=1
FullQueueSources=0
HighQueueRankingSources=0
HighQueueRanking=1200
AutoDropTimer=240
NoNeededSourcesHandling=2
remote.conf:
Code: [Select]
Locale=
[EC]
Host=localhost
Port=4712
Password=06a23afb91c2f93137b788271c15f398
[Webserver]
Port=4712
Template=php-default
UseGzip=0
AllowGuest=1
AdminPassword=06a23afb91c2f93137b788271c15f398
GuestPassword=06a23afb91c2f93137b788271c15f398
Logged

wuischke

  • Developer
  • Hero Member
  • *****
  • Karma: 183
  • Offline Offline
  • Posts: 4292
Re: Can't get webserver working
« Reply #3 on: November 15, 2006, 10:52:38 AM »

OK, as you now start aMuleweb automatically when you start amuled (Enabled=1), there's no need for remote.conf anymore.

But for debugging matters I would disable this and start aMule manually. Then please delete your remote.conf and create a new one with the command:
Code: [Select]
amuleweb --create-config-from=~/.aMule/amule.conf
Now start amuleweb in a terminal and tell us what happens when you access it (and there's a blank page).
Logged

saulius

  • Newbie
  • Karma: 0
  • Offline Offline
  • Posts: 4
Re: Can't get webserver working
« Reply #4 on: November 15, 2006, 11:49:24 AM »

I deleted remote.conf file. It did create the new one. But trying to access the webserver I still see blank page. You can try it too, I will leave it on for a while:
http://193.219.66.50:4712/

here is the report from terminal
Code: [Select]
saulius@serveris:~$ amuleweb --create-config-from=~/.aMule/amule.conf
saulius@serveris:~$ amuled
amuled: OnInit - starting timer
Initialising aMule
Checking if there is an instance already running...
No other instances are running.
Loading temp files from /home/saulius/.aMule/Temp.

All PartFiles Loaded.
ListenSocket: Ok.

*** TCP socket (ECServer) listening on 0.0.0.0:4712
*** Server UDP socket (TCP+3) at 0.0.0.0:4665
*** TCP socket (TCP) listening on 0.0.0.0:4662
*** Client UDP socket (extended eMule) at 0.0.0.0:4672
Empty dir /home/saulius/.aMule/Incoming/ shared
« Last Edit: November 16, 2006, 07:31:24 AM by saulius »
Logged

Kry

  • Ex-developer
  • Retired admin
  • Hero Member
  • *****
  • Karma: -665
  • Offline Offline
  • Posts: 5795
Re: Can't get webserver working
« Reply #5 on: November 15, 2006, 05:11:02 PM »

I bet on template
Logged