Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 3 > General

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 26th March 2011, 21:33
vibrancy vibrancy is offline
Junior Member
 
Join Date: Jul 2007
Posts: 26
Thanks: 3
Thanked 0 Times in 0 Posts
Default Squirrelmail downloads file...

Main hard drive on my server crashed the other day, so finally get to upgrade to Debian 6 and ISPConfig3 - i'm excited!

Spent most of yesterday fiddling around and getting acclimated to the new system and I had pretty much everything working flawlessly. I was able to send/receive e-mails no problem, access websites, etc...

Today though, nothing has changed mind you... now when I try to access my webmail it downloads a file instead of going to the site. Absolutely no settings have been changed manually... so what is going on here?

www.digitalvibrance.com/webmail

You can see what I mean... any help would be greatly appreciated!

---------------------------
Edit:
Found another thread mentioning the same issue, although his resolution was just simply reinstalling everything, which is not a great solution =\

I did make sure PHP is enabled for the site, have tried a few different settings all to no avail, tried FAST-cgi, mod-PHP, and suPHP but none worked, also checked permissions and "chmod 770 /var/lib/squirrelmail/data/" but nothing again... same result regardless of entering ip address vs domain name...

Last edited by vibrancy; 26th March 2011 at 22:46.
Reply With Quote
Sponsored Links
  #2  
Old 27th March 2011, 21:23
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,748 Times in 2,579 Posts
Default

Can you post the vhost confoguration of the www.digitalvibrance.com vhost?

What's the output of
Code:
ls -la
in the document root of the www.digitalvibrance.com web site?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #3  
Old 14th April 2011, 12:11
Ovidiu Ovidiu is offline
Senior Member
 
Join Date: Sep 2005
Posts: 1,270
Thanks: 84
Thanked 25 Times in 21 Posts
Default

exactly the same problem here. test it here: http://zice.ro/webmail
file gets downloaded and the content of that file says:

Code:
<?php

/**
 * index.php
 *
 * Redirects to the login page.
 *
 * @copyright 1999-2010 The SquirrelMail Project Team
 * @license http://opensource.org/licenses/gpl-license.php GNU Public License
 * @version $Id: index.php 13893 2010-01-25 02:47:41Z pdontthink $
 * @package squirrelmail
 */

// Are we configured yet?
if( ! file_exists ( 'config/config.php' ) ) {
    echo '<html><body><p><strong>ERROR:</strong> Config file ' .
        '&quot;<tt>config/config.php</tt>&quot; not found. You need to ' .
        'configure SquirrelMail before you can use it.</p></body></html>';
    exit;
}

// If we are, go ahead to the login page.
header('Location: src/login.php');

?>
but the webmail can perfectly fine be accessed via: https://h1870666.stratoserver.net:8080/webmail/

the vhost of zice.ro is:

Code:
<Directory /var/www/zice.ro>
    AllowOverride None
    Order Deny,Allow
    Deny from all
</Directory>

<VirtualHost *:80>
      DocumentRoot /var/www/zice.ro/web

    ServerName zice.ro
    ServerAlias *.zice.ro
    ServerAlias *.zice.md zice.md
    ServerAlias fisiere.zice.ro
    ServerAdmin webmaster@zice.ro

    ErrorLog /var/log/ispconfig/httpd/zice.ro/error.log


    <Directory /var/www/zice.ro/web>
        Options FollowSymLinks
        AllowOverride All
        Order allow,deny
        Allow from all
    </Directory>
    <Directory /var/www/clients/client1/web1/web>
        Options FollowSymLinks
        AllowOverride All
        Order allow,deny
        Allow from all
    </Directory>


    # suexec enabled
    SuexecUserGroup web1 client1
    # Clear PHP settings of this website
    <FilesMatch "\.ph(p3?|tml)$">
        SetHandler None
    </FilesMatch>
    # php as fast-cgi enabled
    <IfModule mod_fcgid.c>

          # SocketPath /tmp/fcgid_sock/

          # IdleTimeout n (3600 seconds)
          # An idle fastcgi application will be terminated after IdleTimeout seconds.
      IdleTimeout 3600

          # ProcessLifeTime n (7200 seconds)
      # A fastcgi application will be terminated if lifetime expired, even no error is detected.
      ProcessLifeTime 7200

          # MaxProcessCount n (1000)
      # The max count of total fastcgi process count.
      # MaxProcessCount 1000

          # DefaultMinClassProcessCount n (3)
      # The minimum number of fastcgi application instances for any one fastcgi application.
      # Idle fastcgi will not be killed if their count is less than n
      # Set this to 0, and tweak IdleTimeout
          DefaultMinClassProcessCount 0

          # DefaultMaxClassProcessCount n (100)
      # The maximum number of fastcgi application instances allowed to run for
      # particular one fastcgi application.
      DefaultMaxClassProcessCount 100

          # IPCConnectTimeout n (3 seconds)
      # The connect timeout to a fastcgi application.
      IPCConnectTimeout 8

          # IPCCommTimeout n (20 seconds)
      # The communication timeout to a fastcgi application. Please increase this
      # value if your CGI have a slow initialization or slow respond.
      IPCCommTimeout 360

          # BusyTimeout n (300 seconds)
      # A fastcgi application will be terminated if handing a single request
      # longer than busy timeout.
          BusyTimeout 300

    </IfModule>
    <Directory /var/www/zice.ro/web>
        AddHandler fcgid-script .php .php3 .php4 .php5
        FCGIWrapper /var/www/php-fcgi-scripts/web1/.php-fcgi-starter .php
        Options +ExecCGI
        AllowOverride All
        Order allow,deny
        Allow from all
    </Directory>
        <Directory /var/www/clients/client1/web1/web>
        AddHandler fcgid-script .php .php3 .php4 .php5
        FCGIWrapper /var/www/php-fcgi-scripts/web1/.php-fcgi-starter .php
        Options +ExecCGI
        AllowOverride All
        Order allow,deny
        Allow from all
    </Directory>

    RewriteEngine on
    RewriteCond %{HTTP_HOST}   ^fisiere.zice.ro [NC]
    RewriteRule   ^/(.*)$ /fisiere/$1  [L]

    # add support for apache mpm_itk
    <IfModule mpm_itk_module>
      AssignUserId web1 client1
    </IfModule>

    <IfModule mod_dav_fs.c>
      # DO NOT REMOVE THE COMMENTS!
      # IF YOU REMOVE THEM, WEBDAV WILL NOT WORK ANYMORE!
      # WEBDAV BEGIN
      # WEBDAV END
    </IfModule>
<IfModule mod_fcgid.c>
   IPCConnectTimeout 300
   IPCCommTimeout 360
   MaxRequestLen 16777216
</IfModule>
</VirtualHost>
and the ls -al of the root web folder is too long to post here, what specifically are you looking for?

btw. I followed this howto: http://www.howtoforge.com/enabling-s...r-ubuntu-10.10

maybe this info helps:

Code:
h1870666:/etc/squirrelmail# ls -al
total 80
drwxr-xr-x   2 root root  4096 Apr 14 10:57 .
drwxr-xr-x 108 root root  4096 Apr 14 10:35 ..
-rw-r--r--   1 root root  1145 Mar  6 18:52 apache.conf
lrwxrwxrwx   1 root root     7 Apr 14 10:57 config -> config/
-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  8401 Mar  6 18:44 config.php
lrwxrwxrwx   1 root root    32 Mar  6 18:43 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
h1870666:/etc/squirrelmail# cd config
bash: cd: config: Too many levels of symbolic links
h1870666:/etc/squirrelmail#
oh and I do have added the right entries /user/share/squirelmail and /etc/squirrelmail to my php_open_base_dir variable.
also fixed the above symlinks problem by removing and re-installing squirrelmail according to the ispcfg3 tutorial..

Last edited by Ovidiu; 14th April 2011 at 12:23.
Reply With Quote
  #4  
Old 15th April 2011, 15:01
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,748 Times in 2,579 Posts
Default

Does it work with mod_php?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #5  
Old 16th April 2011, 01:11
Ovidiu Ovidiu is offline
Senior Member
 
Join Date: Sep 2005
Posts: 1,270
Thanks: 84
Thanked 25 Times in 21 Posts
Default

how would I test that? The squirrelmail config file for apache loads as an alias for all sites...
I don't want to set all my sites to mod_php :-)

I have set one site to mod_php, waited for the changes to be saved to file and tried: still the same result...
Reply With Quote
  #6  
Old 21st April 2011, 15:42
Ovidiu Ovidiu is offline
Senior Member
 
Join Date: Sep 2005
Posts: 1,270
Thanks: 84
Thanked 25 Times in 21 Posts
Default

any other ideas?
Reply With Quote
  #7  
Old 3rd October 2012, 12:38
breauxlg breauxlg is offline
Junior Member
 
Join Date: Jul 2009
Posts: 27
Thanks: 3
Thanked 0 Times in 0 Posts
Default What did you do to fix this

I see that vibrancy and ovidiu have fixed their websites, but didn't post how. Mine is still broken. I get this:
<?php

/**
* index.php
*
* Redirects to the login page.
*
* @copyright 1999-2010 The SquirrelMail Project Team
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
* @version $Id: index.php 13893 2010-01-25 02:47:41Z pdontthink $
* @package squirrelmail
*/

// Are we configured yet?
if( ! file_exists ( 'config/config.php' ) ) {
echo '<html><body><p><strong>ERROR:</strong> Config file ' .
'&quot;<tt>config/config.php</tt>&quot; not found. You need to ' .
'configure SquirrelMail before you can use it.</p></body></html>';
exit;
}

// If we are, go ahead to the login page.
header('Location: src/login.php');

?>
Reply With Quote
  #8  
Old 3rd October 2012, 13:38
till till is online now
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 36,801
Thanks: 840
Thanked 5,613 Times in 4,424 Posts
Default

Which tutorial did you use to install your server? If you follow the perfects etup to the letter, squirrelmail will work out of the box. The most likely reason for your problem is that you missed to install the apache mod_php package as described in the ispconfig perfect server guides.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #9  
Old 3rd October 2012, 17:37
cbj4074 cbj4074 is offline
Senior Member
 
Join Date: Nov 2010
Posts: 395
Thanks: 30
Thanked 58 Times in 50 Posts
Default

breauxlg, did you read my posts in this thread? They describe the problem and how to fix it in exhaustive detail.
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Postfix delivery problem erebus Installation/Configuration 8 29th July 2014 21:17
rkhunter warnings esezako General 7 27th September 2011 08:28
All my mail is going to /var/mail/vmail _sluimers_ Installation/Configuration 21 10th January 2011 14:21
Chroot SSH + ISPConfig Norman Installation/Configuration 27 26th March 2007 04:40
Systemimager (rsync) doesn't copy all comedit HOWTO-Related Questions 11 19th January 2007 18:17


All times are GMT +2. The time now is 16:46.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.