Login problem Squirrelmail

Discussion in 'General' started by Kozley, Jun 7, 2011.

  1. Kozley

    Kozley Member

    I didn't understand why I cannot login when the message says:

    Code:
    Error opening ../config/default_pref
    Could not create initial preference file!
    /var/lib/squirrelmail/data/ should be writable by user www-data
    Please contact your system administrator and report this error.
    I check on configtest.php, but I got the error page, grrrr
    What have I found from old thread here at howtoforge http://www.howtoforge.com/forums/showthread.php?t=32739, yes it tells
    chmod -R 777 /var/lib/squirrelmail/data but it doesnt works for me. Why? I has check which owner by /squirrelmail/data and its www-data.

    Here are the error log:

    Code:
    [Tue Jun 07 12:14:28 2011] [error] [client 81.170.155.71] PHP Warning:  file_exists(): open_basedir restriction in effect. File(/etc/mailname) is not within the allowed path(s): (/var/www/clients/client0/web3/web:/var/www/clients/client0/web3/tmp:/var/www/quantum-guild.eu/web:/srv/www/quantum-guild.eu/web:/usr/share/php5:/tmp:/usr/share/phpmyadmin:/etc/phpmyadmin:/var/lib/phpmyadmin:/usr/share/squirrelmail:/etc/squirrelmail) in /etc/squirrelmail/config.php on line 30, referer: http://www.quantum-guild.eu/webmail/src/login.php
    [Tue Jun 07 12:14:28 2011] [error] [client 81.170.155.71] PHP Warning:  file(): open_basedir restriction in effect. File(/etc/hostname) is not within the allowed path(s): (/var/www/clients/client0/web3/web:/var/www/clients/client0/web3/tmp:/var/www/quantum-guild.eu/web:/srv/www/quantum-guild.eu/web:/usr/share/php5:/tmp:/usr/share/phpmyadmin:/etc/phpmyadmin:/var/lib/phpmyadmin:/usr/share/squirrelmail:/etc/squirrelmail) in /etc/squirrelmail/config.php on line 30, referer: http://www.quantum-guild.eu/webmail/src/login.php
    [Tue Jun 07 12:14:28 2011] [error] [client 81.170.155.71] PHP Warning:  file(/etc/hostname): failed to open stream: Operation not permitted in /etc/squirrelmail/config.php on line 30, referer: http://www.quantum-guild.eu/webmail/src/login.php
    [Tue Jun 07 12:14:28 2011] [error] [client 81.170.155.71] PHP Warning:  implode(): Invalid arguments passed in /etc/squirrelmail/config.php on line 30, referer: http://www.quantum-guild.eu/webmail/src/login.php
    [Tue Jun 07 12:20:22 2011] [error] [client 66.249.66.79] File does not exist: /var/www/quantum-guild.eu/web/Themes
    [Tue Jun 07 12:24:22 2011] [error] [client 81.170.155.71] client denied by server configuration: /usr/share/squirrelmail/src/configtest.php
    Do have you better idea how to solve this dumb error? Thank!
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    Does squirrelmail work when you access it trogh the IP address of your webserver and not trogh a website?
     
  3. Kozley

    Kozley Member

    Yes, it work.

    EDIT: Could suEXEC a privilege issues?
     
    Last edited: Jun 7, 2011
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    Yes, thats the most likely reason.
     
  5. Kozley

    Kozley Member

    Okay. I have Boonex Dolphin and it needs suEXEC to be enable because phot, video and etc could upload if suEXEC is enable. Do there is a solution of squirrelmail to get working while suEXEC enable e.g SSL or wildcard?
     
  6. till

    till Super Moderator Staff Member ISPConfig Developer

    It is always a problem to access a centrally installed web app on a secure webserver that uses different priveliges for the websites. For that reason I use a dedicated webmail vhost on my servers by creating a nwe websiite like webmail.hostingcompany.com and install a webmail app in that site and let all customers access their email trough that vhost.
     

Share This Page