View Full Version : impex fetal error
raagaswaram
Wed 15th Mar '06, 12:27pm
Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 1 bytes) in /var/www/html/forums/impex/ImpExDatabase_350.php on line 87
Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 46 bytes) in /var/www/html/forums/includes/functions.php on line 4412
this happened when i was importing the posts
Steve Machol
Wed 15th Mar '06, 12:49pm
This is a server memory limit. To temporarily up your limits edit your includes/config.php file and add these lines right under the <?php line:
ini_set('memory_limit', 32 * 1024 * 1024);
raagaswaram
Wed 15th Mar '06, 12:52pm
hey,
how do i set the limit on the server ?
it is now set to 8MB i want to change it to 16MB
Colin F
Wed 15th Mar '06, 12:58pm
You can change that either in your php.ini, or by adding this to a .htaccess file:
php_value memory_limit 16M
Steve Machol
Wed 15th Mar '06, 1:01pm
That will only set this for your web sites though. To change this server-wide, you need to edit your php.ini file:
memory_limit = 16M
raagaswaram
Wed 15th Mar '06, 1:02pm
[root@vasuki root]# memory_limit = 16M
-bash: memory_limit: command not found
Colin F
Wed 15th Mar '06, 1:04pm
You'll have to actually edit the php.ini file, that's not a command to run.
raagaswaram
Wed 15th Mar '06, 1:24pm
thtx not working
raagaswaram
Wed 15th Mar '06, 1:31pm
i edited php.ini still didn't work i know it used to work on php4 but php5 is not working is ther anything else i hav to do?
Steve Machol
Wed 15th Mar '06, 1:31pm
What's 'ot working' exactly? You need to be more specific.
raagaswaram
Wed 15th Mar '06, 1:34pm
memory limit setting i edited the php.ini to limit it as 16m but still not working im sing PHP5
Boxy
Wed 15th Mar '06, 1:40pm
After editing the php.ini file you need to restart the webserver for the changes to take effect.
raagaswaram
Wed 15th Mar '06, 1:40pm
memory limit setting i edited the php.ini to limit it as 16m but still not working im sing PHP5
Zachery
Wed 15th Mar '06, 1:42pm
Did you restart apache after the change was made?
raagaswaram
Wed 15th Mar '06, 1:43pm
i did restartin too
Zachery
Wed 15th Mar '06, 1:45pm
Then if you are still getting the error message you either did not, or could not change the php.ini file. Do ou have root access?
vBulletin® v3.8.0 Release Candidate 1, Copyright ©2000-2008, Jelsoft Enterprises Ltd.