Setting up asterisk-gui on Ubuntu
Tonight I had a go at installing Digium’s asterisk-gui. I followed some instructions from Asterisk Guru, but then had to apply a fix at the end because the static-http folder was in the wrong place.
Installation Instructions
Download the asterisk-gui source code from SVN:
mkdir -p ~/downloads/asterisk-gui cd ~/downloads/asterisk-gui svn checkout http://svn.digium.com/svn/asterisk-gui/trunk .
Compile the source code:
./configure ./make ./make install
Backup your asterisk config:
cp -r /etc/asterisk /etc/asterisk.backup
Install the sample settings if you wish (this adds things like a list of VOIP providers to use as a PSTN gateway).
./make samples
Edit /etc/asterisk/manager.conf to enable the web management interface and to add a user:
enabled = yes webenabled = yes [administrator] secret = YoUrPaSwOrD read = system,call,log,verbose,command,agent,user,config write = system,call,log,verbose,command,agent,user,config
Edit /etc/asterisk/http.conf to enable asterisk’s mini webserver. If you are accessing from your local machine use 127.0.0.1 otherwise you might want to bind to a public ip, but be aware this is less secure.
enabled=yes enablestatic=yes bindaddr=127.0.0.1
Run make checkconfig to verify your configuration settings:
./make checkconfig
I then had to do an additional step to link the static http scripts folder to inside /usr/share/asterisk as it seems asterisk was looking in here instead of /var/lib/asterisk/
sudo ln -s /var/lib/asterisk/static-http/ /usr/share/asterisk/
After that you should be able to login to the control panel at http://127.0.0.1:8088/asterisk/static/config/cfgbasic.html (replacing the IP address with whichever one you chose).



paul I followed your notes and this is what got
Not Found
Nothing to see here. Move along.
Asterisk Server
Am running edubuntu
Thanks for the instructions. Unfortunately the URL is broken
steve@M:~/downloads/asterisk-gui$ svn checkout http://svn.digium.com/svn/asterisk-gui/trunk .
svn: URL \’http://svn.digium.com/svn/asterisk-gui/trunk\’ doesn\’t exist
Hmm… it looks like they have removed the trunk. You could try a different repository url such as:
http://svn.digium.com/svn/asterisk-gui/branches/2.0/
I don’t have the ’svn’ command on my system. What package would I install to get it?
To install the svn command, simply install the subversion package…
sudo apt-get install subversion
I am stumped as to how to get the HTTP service running. I am running a port scan from my mac and though make checkconfig says all is fine, no ports on my new ubuntu server are listing. Running Asterisk 1.6.01 and installed GUI 2.0. Anyone have any thoughts?
I too get a 404 page:
”
Not Found
Nothing to see here. Move along.
Asterisk Server
”
This is after I restarted the asterisk server with an attached console
Using Ubuntu 8.04 64 bit, asterisk 1.4.17
Same problem here.. I have reinstalled several times assumingI did somthing wrong..
I keep getting nothing to see here too..
WTF.
thats with 1.4x and 1.6x
Please help
i have success install asterisk and asterisk gui (asterisk-1.6.0.5 and asterisk-gui-2-1), and succes for access it via web but i cannot login with error:
Verifying Dialplan contexts needed for gui
I running on slackware 12.1
thank’s
dias
figured out the lame ‘nothing to see error’
create a symbolic link to /usr/share/asterisk/static-http
Eli,
Where did you put your symbolic link to?
Ashley
On ubuntu it seems to be an empty folder that blocks the creation of the symbolic link. I run this three command to remove the folder (since its empty), create the link and restart asterisk.
rm -rf /usr/share/asterisk/static-http/
ln -s /var/lib/asterisk/static-http/ /usr/share/asterisk/
/etc/init.d/asterisk restart
Tja, nice, thank you, good commands. Fixed the timeout and 404 errors for me perfectly
“install” file is not created,
when i tried “make install” , there is no file install… ??? pls help
how do i define location of static-http folder ?
Hello.
Thanks for your procedure. I just would like to add that after finishing the procedure, I always had the messge “Checking write permission for gui folder” and the system hangs.
Searching a little with command “strace” I found that the origin of the problem was that the directory /var/lib/asterisk/static-http was owned by root and that the user asterix could not write in. Fixing it solves my issue.
Pierre
Thanks Tja
rm -rf /usr/share/asterisk/static-http/
ln -s /var/lib/asterisk/static-http/ /usr/share/asterisk/
/etc/init.d/asterisk restart
Hi all.
Who know how to install asterisk-gui to another directory.
For instance, i have installed asterisk to my directory:
/usr/local/asteriskInstalled/.
And i want to install GUI to this folder. But after make install i see that it tries copy files to /var/lib/asterisk/… (static-http and others) instead of /usr/local/asteriskInstalled/var/lib/asterisk.
I tried use options: –prefix, –exec-prefix, env var PREFIX, but they take no effetc.
thx