Ubuntu 10.10 /webmail

Discussion in 'Server Operation' started by lightning200mph, Feb 3, 2011.

  1. lightning200mph

    lightning200mph New Member

    I've setup my server following the perfect server Ubuntu 10.10 guide and at the end of the 5th page it shows how to add /webmail to access the squirrel mail through the web address. The problem I'm having is that after I do those steps my browser downloads a file instead of opening the login page. If i use the ip/webmail then it will show the login screen. Is there another step I'm missing or could it be I have configured something wrong.
     
  2. falko

    falko Super Moderator ISPConfig Developer

    Did you enable PHP for your web sites in ISPConfig?
     
  3. lightning200mph

    lightning200mph New Member

    I can get the login screen to come up now, I switched from suphp to mod-php. But now I'm getting an error when trying to log in.

    "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."
     
  4. falko

    falko Super Moderator ISPConfig Developer

    What's the output of
    Code:
    ls -la /var/lib/squirrelmail/data/
    ?
     
  5. lightning200mph

    lightning200mph New Member

    Here is the output:
    Code:
    total 12
    drwx-wx--- 2 root     www-data 4096 2011-02-05 15:51 .
    drwxr-xr-x 3 root     root     4096 2011-02-02 16:37 ..
    -rw------- 1 www-data www-data  108 2011-02-05 15:51 postmaster@"website".com.pref
    Another issue that is happening is in chrome when i type in .com/webmail is will download the file of the page, but if i type out the whole /webmail/src/login.php it opens the page just fine. Now in IE just /webmail pulls up the log in page.
     
  6. falko

    falko Super Moderator ISPConfig Developer

    Try
    Code:
    chmod 770 /var/lib/squirrelmail/data/
     
  7. lightning200mph

    lightning200mph New Member

    I don't know what happened, but I did the chmod and that didn't help. The server was doing some weird stuff so I wiped the drive and reinstalled. Everything is working as it should now.

    Thanks for all of the input and help.
    Zach
     

Share This Page