L
liquidg3
Guest
Alright, you ready for some fun?
I needed to up my memory_limit in php so I could upload bigger files (upload works, using phpThumb to resize them if they are bigger than 1024x768 doesn't). SOOOoooo...
Updated the php.ini file so memory_limit = -1 (that's what php.net says will disable it).
Restarted apache, still 8MB (according to phpinfo()).
Updated php.ini so memory_limit = 32MB
Restarted apache, still 8MB
Getting frustrated.... do a little research, find others are having trouble with changes in php.ini not holding.
Restart SERVER, still 8M (though 32MB is still in the file)
Thought, lets try M instead of MB in the ini.
Updated php.ini so memory_limit = 32M
Restarted apache, still 8M
Updated php.ini so memory_limit = 32MB (just to put it back to what it was)
Looked around more and learned about ini_set()
Add this to top of page: init_set('memory_limit','32MB');
Boom, nothing happens, page won't even load. Same thing that happens when I run the script (phpThumb to resize large image). It seems that when memory runs out, the whole thing just stops.
Thinking positive, research and learn about vhost.conf file. Set one up for the domain.
<Directory /directory/iknow/is/right>
php_admin_flag memory_limit 32M
</Directory>
Nothing, then I learn about this thing: websrvmng
Run code from Plesk manual and now there is an include in the httpd.include pointing to my vhost.conf, yay.
Restart apache.... BOOM, nothing loads, this is so much fun.
Take out host php_admin_flag memory_limit 32M
Restart apache, works now.. goody!
Think to myself, I wonder if setting it in anyway works...
Edit vhost.conf file to say memory_limit 8M
Restart apache..
You guessed it, NOTHING, nothing loads, it's like trying to set it in anyway causes bad things... J#$#*@$&#
Someone please help, my wrists are looking very clean and in need of some slicing... please help!!
Thanx in advance.... i'll answer any questions you all have about my setup. I'm no expert in this, but not newbie either. This is just my first plesk based server.
I needed to up my memory_limit in php so I could upload bigger files (upload works, using phpThumb to resize them if they are bigger than 1024x768 doesn't). SOOOoooo...
Updated the php.ini file so memory_limit = -1 (that's what php.net says will disable it).
Restarted apache, still 8MB (according to phpinfo()).
Updated php.ini so memory_limit = 32MB
Restarted apache, still 8MB
Getting frustrated.... do a little research, find others are having trouble with changes in php.ini not holding.
Restart SERVER, still 8M (though 32MB is still in the file)
Thought, lets try M instead of MB in the ini.
Updated php.ini so memory_limit = 32M
Restarted apache, still 8M
Updated php.ini so memory_limit = 32MB (just to put it back to what it was)
Looked around more and learned about ini_set()
Add this to top of page: init_set('memory_limit','32MB');
Boom, nothing happens, page won't even load. Same thing that happens when I run the script (phpThumb to resize large image). It seems that when memory runs out, the whole thing just stops.
Thinking positive, research and learn about vhost.conf file. Set one up for the domain.
<Directory /directory/iknow/is/right>
php_admin_flag memory_limit 32M
</Directory>
Nothing, then I learn about this thing: websrvmng
Run code from Plesk manual and now there is an include in the httpd.include pointing to my vhost.conf, yay.
Restart apache.... BOOM, nothing loads, this is so much fun.
Take out host php_admin_flag memory_limit 32M
Restart apache, works now.. goody!
Think to myself, I wonder if setting it in anyway works...
Edit vhost.conf file to say memory_limit 8M
Restart apache..
You guessed it, NOTHING, nothing loads, it's like trying to set it in anyway causes bad things... J#$#*@$&#
Someone please help, my wrists are looking very clean and in need of some slicing... please help!!
Thanx in advance.... i'll answer any questions you all have about my setup. I'm no expert in this, but not newbie either. This is just my first plesk based server.