GUI install on ubuntu 8.04 problems

I followed the tutorial in asterisk-guru and some other sites,
first i had to install G++ because gcc could not create output files, then there was a 404 problem which was solved by the following link (i found that at paul maunders web log) :

ln -s /var/lib/asterisk/static-http/ /usr/share/asterisk/

then i could access gui by using myip:8088/asterisk/static/config/cfgbasic.html
but FILE EDITOR would not work, giving a weird 404.
im guessing it would be another missing link? which one?

also, i want to run it on port 80, but changing this option at http.conf doesnt work… i tried with port 8800 to see if i was changing the correct http.conf and it worked…

i have also added the “prefix=” to eliminate the long url. (and it worked too)
here is my http.conf

;!
;! Automatically generated configuration file
;! Filename: http.conf (/etc/asterisk/http.conf)
;! Generator: Manager
;! Creation Date: Fri May  2 06:35:10 2008
;!
[general]
;
; Whether HTTP interface is enabled or not.  Default is no.
;
enabled = yes
;
; Whether Asterisk should serve static content from http-static
; Default is no.
;
enablestatic = yes
;
; Address to bind to.  Default is 0.0.0.0
;
bindaddr = 0.0.0.0
;
; Port to bind to (default is 8088)
;
bindport = 80
prefix = 

Can anyone help me with my 2 problems? (File editor 404 and http server not working on port 80)

Btw i installed asterisk using apt-get install asterisk

no one has the same problem??

im no expert, but your bind port should be 8088… or at least something different than 80. 80 is the standard http port and if you have an http server running, then it will conflict.

you also need to modify the manager.conf file.

i believe my manager.conf is correct (see below)? also, i checked if there was any web server installed but couldnt find any. im running a vmware image of ubuntu 8.04 by bagside.
also, netstat showed me there is no application listening on port 80. i just want the url to be the cleanest possible… just myip

Any help on the 404 File editor bug?
thanks for the answers =)

[code][general]
enabled = yes
port = 5038
bindaddr = 0.0.0.0
webenabled = yes

[admin]
secret = ****
read = system,call,log,verbose,command,agent,config
write = system,call,log,verbose,command,agent,config

#include “manager.d/*.conf”
[/code]

i did a couple of new tests and seems i cant use any port between 1 and 1023… only 1024 and above… is this an asterisk restriction?

bump

[quote=“mrguga”]i believe my manager.conf is correct (see below)? also, i checked if there was any web server installed but couldnt find any. im running a vmware image of ubuntu 8.04 by bagside.
also, netstat showed me there is no application listening on port 80. i just want the url to be the cleanest possible… just myip

Any help on the 404 File editor bug?
thanks for the answers =)

[code][general]
enabled = yes
port = 5038
bindaddr = 0.0.0.0
webenabled = yes

[admin]
secret = ****
read = system,call,log,verbose,command,agent,config
write = system,call,log,verbose,command,agent,config

#include “manager.d/*.conf”
[/code]

i did a couple of new tests and seems i cant use any port between 1 and 1023… only 1024 and above… is this an asterisk restriction?[/quote]

I wasn’t talking about your manager.conf, I was taling about the http.conf file having the port set to 80

yeah, im trying port 80 (and others below 1023) on http.conf
i just posted manager.conf because you said i needed to modify it as well, i had already modified it and i believe its correct because it works when i use bindport > 1023 on http.conf

edit: i read an article today saying that only root can open listening services on ports < 1024, how do i change asterisk so it runs as root?

edit2: i made it listen on port 80 by using

sudo asterisk -r
stop now
sudo asterisk

but when i restart the system it stops working again… how can i make it always run with root privileges? i dont care about security, the machine is on a private network.

bump

My memory might be somewhat hazy on this since I have not dealt with this in a long while.

Running Asterisk as root is NOT a good idea unless you truly are on a private network. Even then it may depend on the rest of the network involved

Now that I got that outta the way

To launch asterisk as root with a Debian based distro look at the /etc/init.d/asterisk file, the rest should be self explained.

Keep in mind that if other odd things are happening, it may not me related to privileges, instead you may have issues with PATH as defined in that file not including directories that it should.

When apps are launched from init they do not have the default PATH assigned It is defined though in this init script for asterisk.
If something works correct from command line and not init examine the PATH in the /etc/environment file to find possible related omissions to the PATH variable in the /etc/init.d/asterisk file

I just mention this as it came up for me. This took a couple hours before I came to the semi embarrassing realization of what was going on.

You can followo this howto its really good. It takes you through the installation on a Debia Etch, which is very similar to Ubunto.

howtoforge.org/asterisk-zapt … ebian-etch

Good luck

[quote=“mrguga”]I followed the tutorial in asterisk-guru and some other sites,
first i had to install G++ because gcc could not create output files, then there was a 404 problem which was solved by the following link (i found that at paul maunders web log) :

ln -s /var/lib/asterisk/static-http/ /usr/share/asterisk/

then i could access gui by using myip:8088/asterisk/static/config/cfgbasic.html
but FILE EDITOR would not work, giving a weird 404.
im guessing it would be another missing link? which one?

also, i want to run it on port 80, but changing this option at http.conf doesnt work… i tried with port 8800 to see if i was changing the correct http.conf and it worked…

i have also added the “prefix=” to eliminate the long url. (and it worked too)
here is my http.conf

;!
;! Automatically generated configuration file
;! Filename: http.conf (/etc/asterisk/http.conf)
;! Generator: Manager
;! Creation Date: Fri May  2 06:35:10 2008
;!
[general]
;
; Whether HTTP interface is enabled or not.  Default is no.
;
enabled = yes
;
; Whether Asterisk should serve static content from http-static
; Default is no.
;
enablestatic = yes
;
; Address to bind to.  Default is 0.0.0.0
;
bindaddr = 0.0.0.0
;
; Port to bind to (default is 8088)
;
bindport = 80
prefix = 

Can anyone help me with my 2 problems? (File editor 404 and http server not working on port 80)

Btw i installed asterisk using apt-get install asterisk[/quote]

Try this: chown asterisk:asterisk /usr/share/asterisk/static-http/* -R

thanks tiagao! that worked! valeuuu!

about the port 80 problem, i have apache on the same machine, so i just created a site and redirected to asterisk-gui.