View Full Version : php.ini memory_limit
bne123
2004-08-18, 12:32 PM
I want to change my memort_limit in my php.ini file, but for the life of me I can't seem to do it. I have uploaded the changed file and it still says the orginal size. I have the Zend Optimizer install, I believe it is version 2.5.3. I have also tried to edit the php.ini file in the Zend folder, still a no go. Thanks.
Tino Didriksen
2004-08-18, 16:51 PM
Sounds like you have multiple php.ini around.
Run locate php.ini to see which ini files you have around, or look at the phpinfo() output to see which ini file it's using.
For example, mine says "Configuration File (php.ini) Path /usr/local/lib/php.ini".
Also, PHP doesn't enforce memory_limit unless it is compiled with it (probably not valid in your case, but just in case).
awsolutions
2004-08-18, 18:13 PM
Uploaded the changed file???????
You can't upload to the etc directory (by default).
You need to shell in and change the /etc/php.ini
bne123
2004-08-19, 01:51 AM
Ok, i have searched for all of my php.ini files and have replaced every single one of the, only to find out nothing has changed. Any more ideas?
awsolutions
2004-08-19, 09:22 AM
Restart apache after changing the file;
service httpd restart
webDude
2004-08-22, 23:08 PM
There several things in php.ini and usually there is 2 or more php.ini files
you need to change the maxmemory size and the max upload resources in the php.ini
if you dont know what you are doing then I suggest you read up on editing php.ini
as you can leave yourself open to hacks and abuse of yoru server.
a 50MB php script upload is about the maximum you want to allow
anything more your server will first whine then squeak then fall to its knees
massive file sizes uploaded via php is NOT A GOOD IDEA
vBulletin® v3.6.8, Copyright ©2000-2008, Jelsoft Enterprises Ltd.