LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   apache and php (https://www.linuxquestions.org/questions/linux-software-2/apache-and-php-108721/)

mindcry 10-26-2003 12:35 PM

apache and php
 
I am running a cyrus imap server using squirrel mail. Everything works fine except I have a few folders that have quite a few emails. The work fine when using evolution but when I use it through the web and I go to these larger folders I get this error and apache basically dies, any ideas?

[Sun Oct 26 13:31:01 2003] [error] PHP Fatal error: Allowed memory size of 8388608 bytes exhausted at (null):0 (tried to allocate 44 bytes) in Unknown on line 0

david_ross 10-26-2003 12:48 PM

Take a look at php.ini and increase the memory_limit variable to say 16M rather than 8M:
memory_limit = 16M

You may also need to tweak the execution as well:
max_execution_time = 30

mindcry 10-26-2003 01:05 PM

thanks, it works perfect now, no errors. is there and vulnerabilities now by raising the memory limit?

david_ross 10-26-2003 01:12 PM

Not really - it is there as a safeguard to stop applications from taking over all your server resources - I wouldn't worry about increasing the value by such a small amount though.

mindcry 10-29-2003 10:21 PM

I was wondering if I installed zend if this would also help out with this problem.

evil_Tak 10-30-2003 11:30 AM

I've had good luck with turck-mmcache. Incidentally, do you have squirrelmail set to display all messages in the folder, or N per page?

mindcry 11-05-2003 05:12 PM

It displays a certain amount per page. I think I have it set to 30


All times are GMT -5. The time now is 04:33 AM.