Support A2Billing :

provided by Star2Billing S.L.

Support A2Billing :
It is currently Thu Apr 25, 2024 1:24 am
VoIP Billing solution


All times are UTC




Post new topic Reply to topic  [ 13 posts ] 
Author Message
 Post subject: Fatal Error when editing sip.conf
PostPosted: Mon Apr 27, 2009 6:57 am 
Offline

Joined: Thu May 25, 2006 10:51 am
Posts: 19
Location: London
I have this error when editing sip.conf, iax.conf and extensions.conf with the config editor:

Code:
Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 16 bytes) in /var/www/a2billing/admin/Public/cls_phpconfig.php on line 136


I am pretty sure it is nothing to do with php size limit as it does also happen even if i increase the memory linit to 512M.

The linux i am using is a debian and i did follow the steps in the WIKI not only once but twice.


Top
 Profile  
 
 Post subject: Re: Fatal Error when editing sip.conf
PostPosted: Tue May 05, 2009 2:51 pm 
Offline

Joined: Sat Nov 15, 2008 4:57 pm
Posts: 42
Location: Italy
You have to change the "memory limit" in your php.ini to 16 MB.
If this doesnt work, verify the owner and permissions to .conf files.

Bye


Top
 Profile  
 
 Post subject: Re: Fatal Error when editing sip.conf
PostPosted: Tue May 05, 2009 3:28 pm 
Offline
Moderator
User avatar

Joined: Thu Jun 22, 2006 2:19 pm
Posts: 2890
Location: Devon, UK
unisport wrote:
I am pretty sure it is nothing to do with php size limit as it does also happen even if i increase the memory linit to 512M.
The error message would tend to indicate that it is most definitely related to lack of memory. Perhaps you forgot to restart Apache after changing php.ini?


Top
 Profile  
 
 Post subject: Re: Fatal Error when editing sip.conf
PostPosted: Tue May 05, 2009 3:31 pm 
Offline

Joined: Thu May 25, 2006 10:51 am
Posts: 19
Location: London
I think the problem is owner and permissions as changing memory limit did not help.

What owners and permissions should i set to the .conf files?


Top
 Profile  
 
 Post subject: Re: Fatal Error when editing sip.conf
PostPosted: Tue May 05, 2009 3:39 pm 
Offline
Moderator
User avatar

Joined: Thu Jun 22, 2006 2:19 pm
Posts: 2890
Location: Devon, UK
unisport wrote:
I think the problem is owner and permissions as changing memory limit did not help.
If that were the case, surely it would be throwing an error about 'permission denied' rather than 'memory exhausted'.
Quote:
What owners and permissions should i set to the .conf files?
They must be readable & writable by the user Apache runs as, and readable by the user Asterisk runs as.


Top
 Profile  
 
 Post subject: Re: Fatal Error when editing sip.conf
PostPosted: Tue May 05, 2009 3:40 pm 
Offline

Joined: Thu May 25, 2006 10:51 am
Posts: 19
Location: London
stavros wrote:
unisport wrote:
I am pretty sure it is nothing to do with php size limit as it does also happen even if i increase the memory linit to 512M.
The error message would tend to indicate that it is most definitely related to lack of memory. Perhaps you forgot to restart Apache after changing php.ini?


apache is indeed restarted with command
Code:
Asterix-A2Billing:~# /etc/init.d/apache2 restart
Restarting web server: apache2 ... waiting .
Asterix-A2Billing:~#


Top
 Profile  
 
 Post subject: Re: Fatal Error when editing sip.conf
PostPosted: Tue May 05, 2009 6:40 pm 
Offline
Moderator
User avatar

Joined: Thu Jun 22, 2006 2:19 pm
Posts: 2890
Location: Devon, UK
I've only looked at the .conf file editor briefly, but I found it incredibly slow. If your .conf files are burgeoning with SIP/IAX peer definitions I imagine your results will be even less satisfactory. It didn't exhaust 128M (the same as you have configured) when I tried it, but it did take nearly 5 minutes to display a simple .conf file.


Top
 Profile  
 
 Post subject: Re: Fatal Error when editing sip.conf
PostPosted: Wed May 06, 2009 7:38 am 
Offline

Joined: Sat Nov 15, 2008 4:57 pm
Posts: 42
Location: Italy
I had the same problem: I worked around memory size and permissions.

My memory limit in /etc/php5/apache2/php.ini (ubuntu) is 43 MB
I left root as owner of .conf files, with 666 permission.

All works good. I don't experience the slowness about was talking stavros (which I thank again for the support always fast and valuable).


Top
 Profile  
 
 Post subject: Re: Fatal Error when editing sip.conf
PostPosted: Wed May 06, 2009 8:18 am 
Offline

Joined: Thu May 25, 2006 10:51 am
Posts: 19
Location: London
sciopen65 wrote:
I had the same problem: I worked around memory size and permissions.

My memory limit in /etc/php5/apache2/php.ini (ubuntu) is 43 MB
I left root as owner of .conf files, with 666 permission.

All works good. I don't experience the slowness about was talking stavros (which I thank again for the support always fast and valuable).


Surely this was the solution...
Code:
/etc/php5/apache2/php.ini (Debian) is 43 MB

and
Code:
.conf files permission to 666


Top
 Profile  
 
 Post subject: Re: Fatal Error when editing sip.conf
PostPosted: Wed May 06, 2009 9:49 am 
Offline

Joined: Sat Nov 15, 2008 4:57 pm
Posts: 42
Location: Italy
sciopen65 wrote:
My memory limit in /etc/php5/apache2/php.ini (ubuntu) is 43 MB


I'm sorry: my memory limit is 32 MB instead of 43 MB (writing error...)
Bye


Top
 Profile  
 
 Post subject: Re: Fatal Error when editing sip.conf
PostPosted: Tue Jun 30, 2009 5:10 pm 
Offline

Joined: Tue Jun 30, 2009 4:54 pm
Posts: 2
I have increased the memory size to 20M to 16M in /etc/php5/apache2/php.ini and permission to 666 . But still i have the following error . i have increased the size several time . but still i have the problem .

Fatal error: Allowed memory size of 20971520 bytes exhausted (tried to allocate 16 bytes) in /var/www/a2billing/admin/Public/cls_phpconfig.php on line 136


Top
 Profile  
 
 Post subject: Re: Fatal Error when editing sip.conf
PostPosted: Tue Jun 30, 2009 6:25 pm 
Offline

Joined: Sat Nov 15, 2008 4:57 pm
Posts: 42
Location: Italy
mehdy wrote:
I have increased the memory size to 20M to 16M in /etc/php5/apache2/php.ini and permission to 666

Did you reboot ?


Top
 Profile  
 
 Post subject: Re: Fatal Error when editing sip.conf
PostPosted: Wed Jul 01, 2009 6:00 pm 
Offline

Joined: Tue Jun 30, 2009 4:54 pm
Posts: 2
yes i did . but i have the error .


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 13 posts ] 
Hosted Voice Broadcast


All times are UTC


Who is online

Users browsing this forum: No registered users and 24 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group