Allowed memory size exhausted

maryp

Verified User
Joined
Jun 22, 2006
Messages
23
I'm trying to install an IPB Forum on one of my domains. I've got one installed on another domain on the same server.
When I try to install I get this error:

Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 130 bytes) in /home/admin/domains/heathandmichelle.com/public_html/forum/ips_kernel/class_xml.php on line 657

I never got that error before.
Is there some setting that I can change?
 
maryp said:
I'm trying to install an IPB Forum on one of my domains. I've got one installed on another domain on the same server.
When I try to install I get this error:



I never got that error before.
Is there some setting that I can change?

In the file
"/usr/local/lib/php.ini" you can change

PHP:
;;;;;;;;;;;;;;;;;;;
; Resource Limits ;
;;;;;;;;;;;;;;;;;;;

max_execution_time = 30     ; Maximum execution time of each script, in seconds
max_input_time = 60     ; Maximum amount of time each script may spend parsing request data
memory_limit = 8M      ; Maximum amount of memory a script may consume (8MB)

You can change that 8M to whatever you like, I'd recomend starting small, adding a few MB (1 or 2 MB) then going to 16MB then 24MB etc, depending on what your script needs. After you make this setting, you need to restarte apache, you can do this by typing service
service httpd restart
in your shell..

One note of caution, allowing a script more memory can cause problems. for one, sloppily programmed scripts can run amok and eat your available memory, or cause even worse problems.

Hope this helps.

Robert E. Plummer
PP&F NetWorks, LLC
 
Thanks, I hope I can find this stuff.. however, I had to upgrade to a dedicated server however I only use it for my own sites not for hosting and wasn't prepared to have to handle all of this stuff.. I'm really not familiar with any of it.

for instance how to get to that php.ini ? Under what heading on DirectAdmin? And where do "type service httpd restart".

This is all a bit over my head.
 
Ok.. I've been doing alot of "googling"

Installed Putty and accessed my account..
however NO commands work

I've looked up different commands.. tried them all and get "command cannot be found"

How do I edit the file??
 
maryp said:
Ok.. I've been doing alot of "googling"

Installed Putty and accessed my account..
however NO commands work

I've looked up different commands.. tried them all and get "command cannot be found"

How do I edit the file??

What commands did you use to edit the file?

Try the following

Code:
1. First did you login as the master user root?

Type: [b]whoami[/b]

Did it come back with "root"
if not...

Type: [b]su -[/b]

Login with your root user password.

Code:
2. To edit the file type

[b]nano /usr/local/lib/php.ini[/b]

Change the settings in there. When done use ctrl + x keys to save it.

Code:
3. Restarting the webserver.

This can be done in directadmin or on the shell.

Type: [b]/sbin/service httpd restart[/b]
 
Last edited:
Thanks..
I was logged in as admin.. I thought that had "root" priviledges but it doesn't.
I have a support ticket in with the people who "manage" my dedicated server to edit the file.

Atleast he "nano" command did work.. so I learned something :D
 
Got my response from support..
and decided to post this just in case any other "newbies" like me are reading this...
I had no idea that I had a "root" log in with the same password as my "admin" log in.
Once I logged into Putty with that..
edited the php.ini with the "nano" command..
saved it with the Ctrl-X
Rebooted via the Direct Admin CP..
and voila..problem solved. I managed to get the IPB forum installed in a flash.

Thanks for the help here.. it headed me in the correct direction.
 
It's not secure for the two passwords to be the same.

That's something done by whoever set up your server.

Jeff
 
Back
Top