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

C. Tomlinson asterisk_list at burntwires.com
Fri Feb 25 08:17:04 MST 2005


I am going to try out all the instructions and document it, and then submit
to the wiki so future installations are easier for all :-)

I will post the draft 1st here.

Thanks for the help, lets hope I get it working.

C

-----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 15:15
To: Time Bandit; Asterisk Users Mailing List - Non-Commercial Discussion
Subject: RE: [Asterisk-Users] FW: Getting PHP Config to work?

> I found some errors in phpconfig. Open the file cls_phpconfig.php
> 
> In the function OC_readConfFile around line 131
> change : $this->_OC_the_file[] = fgetc($file);
> to : $this->_OC_the_file[] = fgets($file);
> 
> In the function OC_checkAccess around line 438
> change : $accessFile[] = fgetc($file);
> to : $accessFile[] = fgets($file);
> 
> fgetc read one character at a time. fgets read one line at a time.
> 
> >I have moved asterisk.reload into /bin, and if I run it from the shell I
get
> You don't have to move it to /bin. You can just do this simple
> modification to have it run from the same place as the pages
> Open the file phpconfig.php
> Look for : $reset_cmd = "asterisk.reload"
> and change to $reset_cmd = "./asterisk.reload"

Some time ago, I had the same probs with phpconfig and had to search and
google quite a long time to get it running. Since our systems are now
running fine with phpconfig, I simply forgot the above fgetc/fgets issue.
Therefore...
A wonderful place for all this would be the wiki ;-)

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