Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 3 > Installation/Configuration

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 20th May 2011, 12:21
vwpete vwpete is offline
Junior Member
 
Join Date: Apr 2011
Posts: 18
Thanks: 2
Thanked 1 Time in 1 Post
Default squirrelmail probs with http://www.example.com/webmail

I have squirrelmail working just fine as hostname with url http://serverlots.example.com/webmail

But I would like it to work with http://www.example.com/webmail
So i followed the destructions at http://www.howtoforge.com/enabling-s...r-debian-lenny

But when I goto http://www.example.com/webmail my browser wants to download a file which when downloaded has this contents
<?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');

?>

For fun I typed in the full url to the login page
http://www.example.com/webmail/src/login.php

and my browser just prompted me to download logon.php

Its like I have a mime type error and .php has become an unknown file type so its downloaded

anyways any clues

cheers

Pete
Reply With Quote
Sponsored Links
  #2  
Old 20th May 2011, 13:09
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,749
Thanks: 840
Thanked 5,601 Times in 4,412 Posts
Default

Which Linux distribution and version do you use?
Do you have mod_php installed?
Is PHP enabled in all websites?
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #3  
Old 23rd May 2011, 08:50
vwpete vwpete is offline
Junior Member
 
Join Date: Apr 2011
Posts: 18
Thanks: 2
Thanked 1 Time in 1 Post
Default

Hi yes mod_php is installed and running when accessing the server by hostname http://server1.example.com

However I am using the default fast-cgi for the websites.
When I use fast-cgi the SquirrelMail does not work with http://www.example.com/webmail

But it does work if I change it to mod_php
I am using Ubuntu 10.4LTS and followed the build info at
http://www.howtoforge.com/perfect-se...ispconfig-3-p3

so do I need to run all my sites as mod_php to make SquirrelMail work as
http://www.example.com/webmail ?

cheers
Pete
Reply With Quote
  #4  
Old 25th May 2011, 09:24
baralak baralak is offline
Junior Member
 
Join Date: Jul 2009
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I have the exact same problem...

System Debian 6 with Bind and courier.

It downloads the same file as well.
Reply With Quote
  #5  
Old 26th May 2011, 18:15
baralak baralak is offline
Junior Member
 
Join Date: Jul 2009
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Does anyone have any help on this topic?
Reply With Quote
  #6  
Old 26th May 2011, 18:24
vwpete vwpete is offline
Junior Member
 
Join Date: Apr 2011
Posts: 18
Thanks: 2
Thanked 1 Time in 1 Post
Default

well as i said, did you try making the website mod_php instead of fast-cgi, cos that worked for me, i also had to add the "/var/lib/squirrelmail/data/" and "/var/spool/squirrelmail/attach/" folders to PHP open_basedir. Then it all works fine.

Mind You once you have had to do all this, ya might as well just just add the complete SquirrelMail package to a webmail folder of each domain.

If anyone has a better idea, would be glad ta know it.
cheers
pete
Reply With Quote
  #7  
Old 27th May 2011, 06:29
erosbk erosbk is offline
Senior Member
 
Join Date: Mar 2011
Posts: 337
Thanks: 49
Thanked 36 Times in 30 Posts
Default

In /etc/apache2/conf.d create a file named sqmail.conf

Add the following in the file, save, and restart apache2

next, try to access www.somehost.com/testmail

Code:
Alias /testmail /usr/share/squirrelmail

<Directory /usr/share/squirrelmail>
  AddHandler application/x-httpd-php .php .php3 .php4 .php5
  php_admin_value open_basedir none
        AllowOverride None
        Order deny,allow
        Allow from all
</Directory>
I don't work with squirremail, so, I don't know what is the correct path for squirrelmail... if this work, ok, change the alias for the one you like most (if it will be the same that you have right now, just rename the older alias in the older file, or try to add the handler in the current squirrelmail conf file for apache2).

Regards
Reply With Quote
  #8  
Old 13th June 2011, 01:07
olieb olieb is offline
Junior Member
 
Join Date: Jun 2011
Posts: 7
Thanks: 2
Thanked 0 Times in 0 Posts
 
Default

Quote:
Originally Posted by erosbk View Post
In /etc/apache2/conf.d create a file named sqmail.conf

Add the following in the file, save, and restart apache2

next, try to access www.somehost.com/testmail

Code:
Alias /testmail /usr/share/squirrelmail

<Directory /usr/share/squirrelmail>
  AddHandler application/x-httpd-php .php .php3 .php4 .php5
  php_admin_value open_basedir none
        AllowOverride None
        Order deny,allow
        Allow from all
</Directory>
I don't work with squirremail, so, I don't know what is the correct path for squirrelmail... if this work, ok, change the alias for the one you like most (if it will be the same that you have right now, just rename the older alias in the older file, or try to add the handler in the current squirrelmail conf file for apache2).

Regards
Worked for me on my perfect server Ubutu 11.04 @ x86_64.

Thanks
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
Using Squirrelmail with ISPConfig 3 dpicella Installation/Configuration 15 7th January 2011 05:30
Odd problem with squirrelmail menahem Installation/Configuration 10 14th April 2010 23:14
Why did Squirrelmail, Dovecot/IMAP & Outbound mail break? websissy Technical 4 29th October 2009 23:39
Virtual users, domains Postfix.. & Squirrelmail laser144 HOWTO-Related Questions 6 5th May 2006 00:23


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


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