Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Server Operation

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 17th May 2009, 21:46
stefanos stefanos is offline
Junior Member
 
Join Date: Nov 2008
Posts: 29
Thanks: 6
Thanked 1 Time in 1 Post
Default 404 webmail but phpmyadmin OK

Hi,

I have a problem that I cannot fix (well I don't know where to start to look).

Could someone have a look for me and point me in the direction that I need to work on.

ERROR http://may.gr/webmail

If I use the IP address for may.gr
OK http://93.12.253.208/webmail

If I use the FQDN of the server {same IP as above}
OK http://web01.cet.com/webmail

It appears to me that if I create a site in ISPConfig I loose the webmail for that domain.

If I were to take a wild guess I would say that if the domain resolves to the default server then it works, if on the other hand you create a site phpmyadmin still works but the webmail stops and you get a 404.

What am I doing wrong? Or what is happening?

Kind Regards
Stephen

>> It's not a fix but it's better than nothing: I created a cname for web01 as mail.cet.com and you could use a rev proxy to get the webmail login...i.e. http://mail.cet.com/ as the webmail login page. But I still think domain.tld/webmail is the best!!!

Last edited by stefanos; 27th May 2009 at 09:15. Reason: change domain names info
Reply With Quote
Sponsored Links
  #2  
Old 18th May 2009, 12:06
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,752 Times in 2,582 Posts
Default

Did you install webmail in the correct 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 18th May 2009, 13:04
stefanos stefanos is offline
Junior Member
 
Join Date: Nov 2008
Posts: 29
Thanks: 6
Thanked 1 Time in 1 Post
Default

Hi Falco,

I installed it according to the perfect server 'Debian Lenny'


A direct copy/past job.

It works for the default server but not for any sites I create. What/where/how is webmail set in the apache config files as I cannot find it.

I did from /etc
a find . -type f | xargs grep -i webmail
and did not find anything except for squirrelmail's apache.conf
as follows:

Alias /squirrelmail /usr/share/squirrelmail

<Directory /usr/share/squirrelmail>
Options Indexes FollowSymLinks
<IfModule mod_php4.c>
php_flag register_globals off
</IfModule>
<IfModule mod_php5.c>
php_flag register_globals off
</IfModule>
<IfModule mod_dir.c>
DirectoryIndex index.php
</IfModule>

# access to configtest is limited by default to prevent information leak
<Files configtest.php>
order deny,allow
deny from all
allow from 127.0.0.1
</Files>
</Directory>

Stephen
Reply With Quote
  #4  
Old 19th May 2009, 15:59
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,752 Times in 2,582 Posts
Default

Can you post a vhost configuration of one of the sites where SquirrelMail isn't working?

Are you using ISPConfig 2 or 3?
__________________
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 22nd May 2009, 09:26
stefanos stefanos is offline
Junior Member
 
Join Date: Nov 2008
Posts: 29
Thanks: 6
Thanked 1 Time in 1 Post
Default

Hi Falco,

I am on ISPConfig 3.0.1.1

The vhosts file is as follows:

[09:14:45 root]$ cat may.gr.vhost
<Directory /var/www/may.gr>
AllowOverride None
Order Deny,Allow
Deny from all
</Directory>

<VirtualHost *:80>
DocumentRoot /var/www/may.gr/web

ServerName may.gr
ServerAlias www.may.gr
ServerAdmin webmaster@may.gr

ErrorLog /var/log/ispconfig/httpd/may.gr/error.log

<Directory /var/www/may.gr/web>
Options FollowSymLinks
AllowOverride Indexes AuthConfig Limit
Order allow,deny
Allow from all
<Files ~ '.php[s3-6]{0,1}$'>
Order allow,deny
Deny from all
Allow from none
</Files>
</Directory>
<Directory /var/www/clients/client1/web2/web>
Options FollowSymLinks
AllowOverride Indexes AuthConfig Limit
Order allow,deny
Allow from all
<Files ~ '.php[s3-6]{0,1}$'>
Order allow,deny
Deny from all
Allow from none
</Files>
</Directory>

# cgi enabled
<Directory /var/www/clients/client1/web2/cgi-bin>
Order allow,deny
Allow from all
</Directory>
ScriptAlias /cgi-bin/ /var/www/clients/client1/web2/cgi-bin/
AddHandler cgi-script .cgi
AddHandler cgi-script .pl


</VirtualHost>



I looked at this and there was nothing but I did find in the conf.d a symlink for phpmyadmin that works on all sites

lrwxrwxrwx 1 root root 28 2009-05-12 20:27 phpmyadmin.conf -> ../../phpmyadmin/apache.conf

In the /etc/squirrelmail/ I see a apache.conf but it did not work when i linked to it so I removed it again.

Any ideas.

Thanks
Stephen

Last edited by stefanos; 27th May 2009 at 09:12. Reason: change domain names
Reply With Quote
  #6  
Old 23rd May 2009, 14:06
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,752 Times in 2,582 Posts
Default

What's in the phpmyadmin/apache.conf file?
__________________
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
  #7  
Old 23rd May 2009, 15:40
stefanos stefanos is offline
Junior Member
 
Join Date: Nov 2008
Posts: 29
Thanks: 6
Thanked 1 Time in 1 Post
Default

Hi Falko,

[15:29:07 root]$ cat conf.d/phpmyadmin.conf
# phpMyAdmin default Apache configuration

Alias /phpmyadmin /usr/share/phpmyadmin

<Directory /usr/share/phpmyadmin>
Options Indexes FollowSymLinks
DirectoryIndex index.php

# Authorize for setup
# <Files setup.php>
# # For Apache 1.3 and 2.0
# <IfModule mod_auth.c>
# AuthType Basic
# AuthName "phpMyAdmin Setup"
# AuthUserFile /etc/phpmyadmin/htpasswd.setup
# </IfModule>
# # For Apache 2.2
# <IfModule mod_authn_file.c>
# AuthType Basic
# AuthName "phpMyAdmin Setup"
# AuthUserFile /etc/phpmyadmin/htpasswd.setup
# </IfModule>
# Require valid-user
# </Files>
<IfModule mod_php4.c>
AddType application/x-httpd-php .php

php_flag magic_quotes_gpc Off
php_flag track_vars On
php_flag register_globals Off
php_value include_path .
</IfModule>
<IfModule mod_php5.c>
AddType application/x-httpd-php .php

php_flag magic_quotes_gpc Off
php_flag track_vars On
php_flag register_globals Off
php_value include_path .
</IfModule>
</Directory>

where would the alias be set for the webmail?
I have a Debian Lenny perfect server btw.

Thanks
Stephen
Reply With Quote
  #8  
Old 24th May 2009, 20:59
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,752 Times in 2,582 Posts
Default

Can you replace
Code:
<IfModule mod_php4.c>
php_flag register_globals off
</IfModule>
<IfModule mod_php5.c>
php_flag register_globals off
</IfModule>
with
Code:
<IfModule mod_php4.c>
AddType application/x-httpd-php .php

php_flag magic_quotes_gpc Off
php_flag track_vars On
php_flag register_globals Off
php_value include_path .
</IfModule>
<IfModule mod_php5.c>
AddType application/x-httpd-php .php

php_flag magic_quotes_gpc Off
php_flag track_vars On
php_flag register_globals Off
php_value include_path .
</IfModule>
in the SquirrelMail configuration and restart Apache?
__________________
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
The Following User Says Thank You to falko For This Useful Post:
stefanos (27th May 2009)
  #9  
Old 25th May 2009, 14:33
stefanos stefanos is offline
Junior Member
 
Join Date: Nov 2008
Posts: 29
Thanks: 6
Thanked 1 Time in 1 Post
Default

Hi Falko,

It's working but not as I expected at all
ERROR http://may.gr/webmail
If I use the IP
OK http://93.12.253.208/webmail
OK http://may.gr/squirrelmail

What interests me is with the IP you need to use /webmail but with the domain you need to use /squirrelmail

I also needed to add a symlink from the /etc/apache2/conf.d/ to ../../squirrelmail/apache.conf for it to work.

I followed the debian lenny tutorial step by step and I can also see a symlink in /var/www as webmail -> /usr/share/squirrelmail/

Did something go wrong during the install?

Thanks
Stephen

Last edited by stefanos; 27th May 2009 at 09:14. Reason: change domain names
Reply With Quote
  #10  
Old 26th May 2009, 23:50
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,752 Times in 2,582 Posts
 
Default

You can add
Code:
Alias /webmail /usr/share/squirrelmail
to SquirrelMail's apache.conf.
__________________
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
The Following User Says Thank You to falko For This Useful Post:
stefanos (27th May 2009)
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
apt-get update Fails For UBUNTU Gutsy Gibbon giganet Server Operation 1 1st May 2009 16:24
Errors on Build Your Own Debian/Ubuntu LAMP Server ngungo Installation/Configuration 5 10th March 2007 16:34
problem in: The Perfect Setup - Ubuntu 6.06 LTS Server PermaNoob HOWTO-Related Questions 6 15th January 2007 20:13
apt-get failure yap HOWTO-Related Questions 1 19th November 2006 23:33
log files, rotation and emailing them hairydog2 General 65 11th October 2006 14:18


All times are GMT +2. The time now is 12:06.


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