[Asterisk-Users] FW: Getting PHP Config to work?
Hecken, Guido
guido.hecken at gwsnettech.de
Fri Feb 25 07:33:22 MST 2005
> ;
> [general]
> enabled = yes
> port = 5038
> bindaddr = 0.0.0.0
>
> [admin]
> secret = secret
> ;deny=0.0.0.0/0.0.0.0
> ;permit=209.16.236.73/255.255.255.0
Do this in manger.conf, where xxx.xxx.xxx.0 represents your network:
[admin]
secret = secret
permit=xxx.xxx.xxx.0/255.255.255.0
read = system,call,log,verbose,command,agent,user
write = system,call,log,verbose,command,agent,user
To get the reload script running, you must allow apache (or the account
apache runs under) to execute scripts. Therefore use visudo (in Fedora) to
add the following line in /etc/sudoers
apache ALL=(ALL) NOPASSWD: ALL
To write the config files in /etc/asterisk with phpconfig.php you need to
give apache the rights to do so. A simple chmod -R a+w /etc/asterisk should
do the job.
I know, there are more secure methods to do this, but it works for us.
Guido Hecken
More information about the asterisk-users
mailing list