The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Squirrelmail issue's

Discussion in 'E-mail Discussions' started by billau, Jul 17, 2004.

  1. billau

    billau Well-Known Member

    Joined:
    Dec 24, 2003
    Messages:
    65
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Brisbane, Australia
    * "Fatal error: Failed opening required '../config/config.php ....."

    Mean that the file in /squirrelmail-1.2.X/config/config.php need to be viewable by the web-browser. To fix this, type

    chmod 644 /squirrelmail-1.2.X/config/config.php



    * "Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 4097 bytes) in ./mail/functions/imap_general.php on line 82"

    Try increasing your "post_max_size" in php.ini from 8MB to 10MB .

    Also, if you are using qmail-ldap with courier-imap there is a bug in auth_imap in versions prior to qmail-ldap20020901 patch. The error message appears when you log in with a wrong password.

    If you have thousands of mails, you have to increase memory_limit = 8M in php.ini



    * "Fatal error: Maximum execution time of 30 seconds exceeded in ..."

    php was unable to parse the page at default maximum execution time. Usually this happens if you have folder with many messages.

    Check your php.ini and increase value of
    max_execution_time = 30

    (This may be about 10 emails per second on a p350, confirmation anyone? and dont forget to restart apache)


    * Fatal error: Call to undefined function: mb_detect_encoding() in

    /home/squirrelmail/functions/mime.php on line 322

    PHP must be compiled with the --enable-mbstring option to support multi-byte characters like those used with Korean, and Japanese.


    * Preference database error (connect failed). Exiting abnormally - when trying to use Mysql as a preference database.

    One such possible solution is that your using Mysql 4.08 and it is using Safe mode, it seems when PHP is compiled it sets sql.safe_mode to being on. Check phpinfo to see if it is, if it is then mysql logs will show up with the user of PHP not the user you specified in the DSN of squirrelmail.

    Find the line sql.safe_mode = on and set it to sql.safe_mode = off

    And restart your webserver.
     
  2. anton_latvia

    anton_latvia Well-Known Member
    PartnerNOC

    Joined:
    May 11, 2004
    Messages:
    348
    Likes Received:
    3
    Trophy Points:
    18
    Location:
    Latvia
    cPanel Access Level:
    Root Administrator
    Sorry for bringing this issue from the past to the top... but I have a problem - some customers are unable to send emails with large attachments (more than 15Mb). It breaks with error:

    Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 4194304 bytes) in /usr/local/cpanel/base/3rdparty/squirrelmail/functions/imap_general.php on line 244

    I tried rising memory_limit to 256Mb in /usr/local/cpanel/3rdparty/etc/php.ini, but it doesn't seem to help..

    Where could be a problem? Why would PHP consume so much memory for this?... (second question is probably quite rhetoric..)

    Anton.
     
  3. linux-image

    linux-image Well-Known Member

    Joined:
    Jun 8, 2004
    Messages:
    1,192
    Likes Received:
    1
    Trophy Points:
    38
    Location:
    India
    cPanel Access Level:
    Root Administrator
    i suppose "post_max_size" should be raised, since you are posting the attachment. also, please do not keep the memory_limit so high or else you might end up with a server crash soon.
     
  4. anton_latvia

    anton_latvia Well-Known Member
    PartnerNOC

    Joined:
    May 11, 2004
    Messages:
    348
    Likes Received:
    3
    Trophy Points:
    18
    Location:
    Latvia
    cPanel Access Level:
    Root Administrator
    max_post_size is set to 55Mb. And PHP error complains about all memory used.. Doesn't anyone else have this problem?..
     
  5. linux-image

    linux-image Well-Known Member

    Joined:
    Jun 8, 2004
    Messages:
    1,192
    Likes Received:
    1
    Trophy Points:
    38
    Location:
    India
    cPanel Access Level:
    Root Administrator
    just in case you did not; restart your apache after the change of values inside the php.ini
     
  6. anton_latvia

    anton_latvia Well-Known Member
    PartnerNOC

    Joined:
    May 11, 2004
    Messages:
    348
    Likes Received:
    3
    Trophy Points:
    18
    Location:
    Latvia
    cPanel Access Level:
    Root Administrator
    I assume - cpanel? as it's webmail we are talking about?
     
  7. linux-image

    linux-image Well-Known Member

    Joined:
    Jun 8, 2004
    Messages:
    1,192
    Likes Received:
    1
    Trophy Points:
    38
    Location:
    India
    cPanel Access Level:
    Root Administrator
    yea; edit /usr/local/cpanel/3rdparty/etc/php.ini and change upload_max_filesize to a value that you desire and try restarting cpanel. i just tested it now and turning off php upload :

    file_uploads = Off ; Whether to allow HTTP file uploads
    ------------------------------------------------------------------------------------------------------

    turns off file attachments in squirrelmail; and so it should work with the upload_max_filesize as well.
     
Loading...

Share This Page