View Full Version : ram problem
mcncyo
Mon 6th Aug '01, 7:39am
I am having a ram problem I think I been getting this error
Fatal error: Allowed memory size of 8388608 bytes exhausted (tried
to allocate 184320 bytes in
/home/domains/christianforum/htdocs/showthread.php(437) : eval()'d
code on line 83 d code on line 83
Does anyone know how to fix this problem.
eva2000
Mon 6th Aug '01, 7:45am
if you're on a dedicated server you can increased php max memory in the php.ini file..
i have in my php.ini file
;;;;;;;;;;;;;;;;;;;
; Resource Limits ;
;;;;;;;;;;;;;;;;;;;
max_execution_time = 60 ; Maximum execution time of each script, in seconds
memory_limit = 16M ; Maximum amount of memory a script may consume (8MB)
the defaults are 30 seconds and 8M which i upped
not sure if you can do that using a .htaccess file though
eva2000
Mon 6th Aug '01, 7:51am
okay found it, if you put in a .htaccess file in the directory of the php page (i think)
php_value memory_limit 16M
mcncyo
Mon 6th Aug '01, 8:04am
I can't find the php.ini file
this is how i configure it
./configure \
--localstatedir=/var \
--enable-discard-path \
--with-config-file-path=/usr/local/etc \
--disable-debug \
--with-db2 \
--with-gdbm \
--enable-ftp \
--with-jpeg-dir=/usr \
--with-mysql=/usr/local/mysql \
--with-zlib \
--enable-memory-limit \
--with-apxs=/usr/local/apache/bin/apxs
eva2000
Mon 6th Aug '01, 9:13am
you should have a phpinfo.php file in your vB zip file load it on your site i.e.
http://vbulletin.com/forum/phpinfo.php
look at the 6th line
Configuration File (php.ini) Path /usr/local/php/lib/php.ini
then telnet into your server, switch to root user and find a file named php.ini-optimized at prompt
locate php.ini-optimized
i.e. it might return /usr/local/src/php-4.0x/php.ini-optimized
copy and rename that file to the path outlined in phpinfo line 6
cp php.ini-optimized /usr/local/php/lib/php.ini
then edit the php.ini file
pico /usr/local/php/lib/php.ini
after editing save file and restart apache
mcncyo
Mon 6th Aug '01, 10:58am
thanks
vBulletin® v3.8.0 Beta 4, Copyright ©2000-2008, Jelsoft Enterprises Ltd.