LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 10-26-2003, 12:35 PM   #1
mindcry
Member
 
Registered: Nov 2002
Distribution: Libranet 2.8 Debian Solaris 9
Posts: 118

Rep: Reputation: 15
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
 
Old 10-26-2003, 12:48 PM   #2
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 66
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
 
Old 10-26-2003, 01:05 PM   #3
mindcry
Member
 
Registered: Nov 2002
Distribution: Libranet 2.8 Debian Solaris 9
Posts: 118

Original Poster
Rep: Reputation: 15
thanks, it works perfect now, no errors. is there and vulnerabilities now by raising the memory limit?
 
Old 10-26-2003, 01:12 PM   #4
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 66
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.
 
Old 10-29-2003, 10:21 PM   #5
mindcry
Member
 
Registered: Nov 2002
Distribution: Libranet 2.8 Debian Solaris 9
Posts: 118

Original Poster
Rep: Reputation: 15
I was wondering if I installed zend if this would also help out with this problem.
 
Old 10-30-2003, 11:30 AM   #6
evil_Tak
Member
 
Registered: Oct 2003
Distribution: Debian/unstable
Posts: 85

Rep: Reputation: 15
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?
 
Old 11-05-2003, 05:12 PM   #7
mindcry
Member
 
Registered: Nov 2002
Distribution: Libranet 2.8 Debian Solaris 9
Posts: 118

Original Poster
Rep: Reputation: 15
It displays a certain amount per page. I think I have it set to 30
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Apache 2, PHP 5, SuSE 9.2 - cannot run php files dickohead Linux - Networking 6 06-28-2006 10:25 AM
php apache or php cgi - php learner rblampain Linux - Security 3 12-17-2004 11:10 PM
slackware, apache and PHP from .tgz - problems with PHP szymon Slackware 2 09-06-2004 04:57 PM
reinstalled apache, php, still no php support SuSE 8.2 hindenbergbaby Linux - Software 1 10-14-2003 01:42 PM
php-nuke with apache php mysql c0c0deuz Linux - Software 0 03-30-2003 06:23 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:13 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration