[Asterisk-Users] FW: Getting PHP Config to work?

C. Tomlinson asterisk_list at burntwires.com
Fri Feb 25 09:39:21 MST 2005


Thanks for the chmod, it definitely needed that!
I didn't have to change the etc.sudoers file though. I'm running Debian, via
the great Xorcom rapid installation.

I didn't change the permit lines either as this is just  attesting box and
im not worried about security.

-----Original Message-----
From: asterisk-users-bounces at lists.digium.com
[mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Hecken, Guido
Sent: 25 February 2005 14:33
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: RE: [Asterisk-Users] FW: Getting PHP Config to work?

> ;
> [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

_______________________________________________
Asterisk-Users mailing list
Asterisk-Users at lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users





More information about the asterisk-users mailing list