aMule Forum

English => en_Bugs => Topic started by: OldFrog on August 23, 2005, 12:53:06 AM

Title: Trouble with amuleweb since a few days
Post by: OldFrog on August 23, 2005, 12:53:06 AM
I had amuleweb working flawlessly for a long while, and since back home a few days ago, itt doesn't start with aMule (I enabled it) telling it could not find aMule.
Now I tried it from command line

amuleweb --port=8700 --password=dubois --config-file=/home/louis/.aMule/amule.conf

and I get this error :

FATAL ERROR: Cannot find template: default

Yet I got the directory /usr/share/amule/default/ and the file aMule.tmpl in it.

Any idea, someone ?
Title: Re: Trouble with amuleweb since a few days
Post by: GonoszTopi on August 23, 2005, 01:19:30 AM
You need the directory /usr/share/amule/webserver/default and aMule.tmpl in it.

You can start amuleweb with the -v (--verbose) switch to see where it tries to find the template.
Title: Re: Trouble with amuleweb since a few days
Post by: OldFrog on August 23, 2005, 07:20:51 AM
Thanks for the tip. I installed it in /usr/bin, yet it looks for webserver in /usr/local/share (I wrote a wrong path before).

It seems there is a hard coded absolute path in the webserver. May I suggest it be changed to a relative path, like "../share/webserver" ?

For now I just copy the necessary files in /usr/local/share
Title: Re: Trouble with amuleweb since a few days
Post by: lfroen on August 23, 2005, 09:13:18 AM
Quote
It seems there is a hard coded absolute path in the webserver. May I suggest it be changed to a relative path, like "../share/webserver" ?

No. ".." is bad solution in most cases. You can use $HOME/.aMule/webserver/  if you need user-specific template.
Title: Re: Trouble with amuleweb since a few days
Post by: OldFrog on August 23, 2005, 07:17:41 PM
The question is not having a specific template. The question is when I install in /usr/bin, I'd like to have the default data in /usr/share, not in /usr/local/share.
It did work before Aug 1st (Been on vacation since).
Title: Re: Trouble with amuleweb since a few days
Post by: ken on August 23, 2005, 07:28:25 PM
OldFrog, if you configure with --prefix=/usr, that's what will happen.  Data will be installed in /usr/share, not /usr/local/share.  That's what --prefix does: pick between "/usr", "/usr/local", "$HOME/mycustominstallplace", etc.