Debian - The Perfect Server Setup

Discussion in 'Installation/Configuration' started by micko_escalade, Jan 4, 2011.

  1. falko

    falko Super Moderator ISPConfig Developer

    Please try mod_php instead of FastCGI.
     
  2. micko_escalade

    micko_escalade New Member

    I've tried mod_php instead of FastCGI and its the same thing.
     
  3. danstinebaugh

    danstinebaugh New Member

    Agreed, I've switched the site to mod-php and it's still just sending me the file.

    If you would like a site for reference, one of the site's I'm having issues with is http://drinkingironchef.com/webmail
     
  4. micko_escalade

    micko_escalade New Member

    Actually after I've tried it from a work computer it was opening login page. So enabling mod_php helped!! I've clicked on your link and it shows login page. You might want to clear your browser's cache.

    After I enter info and hit login I get this error

     
    Last edited: Feb 11, 2011
  5. danstinebaugh

    danstinebaugh New Member

    strange I'm also recieving this message and it should be writable here's the ls output

    Code:
    daniel@webserver:/var/lib/squirrelmail$ ls -hal
    total 12K
    drwxr-xr-x  3 root root     4.0K Feb  8 16:20 .
    drwxr-xr-x 48 root root     4.0K Feb  8 16:20 ..
    drwx-wx---  2 root www-data 4.0K Feb 10 16:57 data
    
     
  6. micko_escalade

    micko_escalade New Member

    Here's my output, if it matters:

     
  7. falko

    falko Super Moderator ISPConfig Developer

    Can you try
    Code:
    chown www-data /var/lib/squirrelmail/data
    ?
     
  8. danstinebaugh

    danstinebaugh New Member

    Still does the same thing.
    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.
    Also I'd just like to say thanks to all trying to help :) I appreciate it a bunch!
     
    Last edited: Feb 12, 2011
  9. micko_escalade

    micko_escalade New Member

    I can also confirm that it gives me same error.


    [​IMG]
     
    Last edited: Feb 12, 2011
  10. falko

    falko Super Moderator ISPConfig Developer

    Please try
    Code:
    chmod 731 /var/lib/squirrelmail/data
     
  11. micko_escalade

    micko_escalade New Member

    falko,

    Thanks for trying to help but unfortonetly it gives the same error:

    [​IMG]
     
  12. danstinebaugh

    danstinebaugh New Member

    ditto. same thing here.
     
  13. falko

    falko Super Moderator ISPConfig Developer

    What about
    Code:
    chmod 777 /var/lib/squirrelmail/data
    ?
     
  14. micko_escalade

    micko_escalade New Member

    Still same thing.
     
  15. danstinebaugh

    danstinebaugh New Member

    also the same result, somehow still not writeable by www-data, chown'd the owner to www-data group www-data also still the same result, really got me on this one! world writable and it can't write? is it possibly jailkit or something?
     
  16. falko

    falko Super Moderator ISPConfig Developer

    On my system the permissions are as follows:

    Code:
    server1:/var/lib/squirrelmail# ls -l
    total 4
    drwx-wx--- 2 root www-data 4096 Aug 11  2010 data
    server1:/var/lib/squirrelmail#
    Does /etc/squirrelmail/default_pref exist? What are the outputs of
    Code:
    ls -la /usr/share/squirrelmail/
    and
    Code:
    ls -la /etc/squirrelmail/
    ?
     
  17. micko_escalade

    micko_escalade New Member


    here's what it shows on my system:
    Let me know if you need anything else.
     
    Last edited: Feb 14, 2011
  18. danstinebaugh

    danstinebaugh New Member

    squirrelmail/data is: (I changed it back to 731 from 777)
    Code:
    drwx-wx--x 2 www-data www-data 4096 Feb 10 16:57 data
    
    usr/share/squirrelmail:
    Code:
    total 52
    drwxr-xr-x  12 root root 4096 Feb  8 16:20 .
    drwxr-xr-x 136 root root 4096 Feb  8 16:20 ..
    drwxr-xr-x   5 root root 4096 Feb  8 16:20 class
    lrwxrwxrwx   1 root root   17 Feb  8 16:20 config -> /etc/squirrelmail
    drwxr-xr-x   4 root root 4096 Feb  8 16:20 functions
    drwxr-xr-x  29 root root 4096 Feb  8 16:20 help
    drwxr-xr-x   2 root root 4096 Feb  8 16:20 images
    drwxr-xr-x   3 root root 4096 Feb  8 16:20 include
    -rw-r--r--   1 root root  671 Jul 31  2010 index.php
    drwxr-xr-x  53 root root 4096 Feb  8 16:20 locale
    drwxr-xr-x  20 root root 4096 Feb  8 16:20 plugins
    drwxr-xr-x   2 root root 4096 Feb  8 16:20 po
    drwxr-xr-x   2 root root 4096 Feb  8 16:20 src
    drwxr-xr-x   3 root root 4096 Feb  8 16:20 themes
    
    /etc/squirrelmail :
    Code:
    total 80
    drwxr-xr-x   2 root root  4096 Feb  8 16:20 .
    drwxr-xr-x 103 root root  4096 Feb 12 19:53 ..
    -rw-r--r--   1 root root  1189 Feb  8 16:31 apache.conf
    -rw-r--r--   1 root root 31242 Jul 31  2010 config_default.php
    -rw-r--r--   1 root root   459 Jul 31  2010 config_local.php
    -rw-r--r--   1 root root  8400 Feb  8 16:21 config.php
    lrwxrwxrwx   1 root root    32 Feb  8 16:20 conf.pl -> /usr/sbin/squirrelmail-configure
    -rw-r--r--   1 root root    41 Jul 31  2010 default_pref
    -rw-r--r--   1 root root  6583 Jul 31  2010 filters_setup.php
    -rw-r--r--   1 root root   478 Jul 31  2010 index.php
    -rw-r--r--   1 root root  1654 Jul 31  2010 sqspell_config.php
    
     
    Last edited: Feb 15, 2011
  19. falko

    falko Super Moderator ISPConfig Developer

    On my system it looks the same, so I have no idea why it's not working for you... :confused:

    Code:
    server1:~# ls -la /etc/squirrelmail/
    total 80
    drwxr-xr-x  2 root root  4096 Feb 14 16:27 .
    drwxr-xr-x 94 root root  4096 Feb  8 04:28 ..
    -rw-r--r--  1 root root  1392 Jan 17 22:26 apache.conf
    lrwxrwxrwx  1 root root    32 Aug 21 20:34 conf.pl -> /usr/sbin/squirrelmail-configure
    -rw-r--r--  1 root root  8278 Aug 21 20:35 config.php
    -rw-r--r--  1 root root 30942 Aug 11  2010 config_default.php
    -rw-r--r--  1 root root   460 Jul 10  2007 config_local.php
    -rw-r--r--  1 root root    41 Feb  7  2007 default_pref
    -rw-r--r--  1 root root  6581 Feb  4  2006 filters_setup.php
    -rw-r--r--  1 root root   479 Jul 10  2007 index.php
    -rw-r--r--  1 root root  1652 Aug 11  2010 sqspell_config.php
    server1:~# ls -la /usr/share/squirrelmail/
    total 52
    drwxr-xr-x  12 root root 4096 Aug 21 20:34 .
    drwxr-xr-x 124 root root 4096 Aug 21 20:34 ..
    drwxr-xr-x   5 root root 4096 Aug 21 20:34 class
    lrwxrwxrwx   1 root root   17 Aug 21 20:34 config -> /etc/squirrelmail
    drwxr-xr-x   4 root root 4096 Aug 21 20:34 functions
    drwxr-xr-x  30 root root 4096 Aug 21 20:34 help
    drwxr-xr-x   2 root root 4096 Aug 21 20:34 images
    drwxr-xr-x   3 root root 4096 Aug 21 20:34 include
    -rw-r--r--   1 root root  672 Jan 13  2007 index.php
    drwxr-xr-x  48 root root 4096 Aug 21 20:34 locale
    drwxr-xr-x  20 root root 4096 Aug 21 20:34 plugins
    drwxr-xr-x   2 root root 4096 Aug 21 20:34 po
    drwxr-xr-x   2 root root 4096 Aug 21 20:34 src
    drwxr-xr-x   3 root root 4096 Aug 21 20:34 themes
    server1:~#
     
  20. danstinebaugh

    danstinebaugh New Member

    Yea you got me as well. It works for the primary domain so I suppose that's good enough, just figured I'd let you know.

    Thanks for all the help and for trying! Mabye I'll take it over to the squirrelmail guys. See if they can figure it out.

    Again thanks Falko, your guides rock!
     

Share This Page