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

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 12th April 2006, 16:06
benjami benjami is offline
Member
 
Join Date: Nov 2005
Location: Mediterranean Sea > Majorca Island
Posts: 30
Thanks: 0
Thanked 0 Times in 0 Posts
Default How to add manual site (with Squirrelmail)

Hello,

I need to add one manual site: /home/john/public_html/squirrelmail-1.4.6/ that works with the domain webmail.the-domain.com

I've added:

Entry in Apache 2 sites-available:

Code:
$ cat /etc/apache2/sites-available/webmail_the-domain_com
NameVirtualHost *:80
<VirtualHost *:80>

        ServerName webmail_the-domain_com
        DocumentRoot /home/john/public_html/squirrelmail-1.4.6
        <Directory /home/john/public_html/squirrelmail-1.4.6>
                Options -Indexes SymLinksIfOwnerMatch MultiViews
                AllowOverride None
                Order allow,deny
                allow from all
        </Directory>

        LogLevel warn
        ServerSignature Off
        ErrorLog /var/log/apache2/webmail_the-domain_com.error.log
        CustomLog /var/log/apache2/webmail_the-domain_com.access.log combined

</VirtualHost>
Symlink from sites-enabled:

Code:
$ ls -l /etc/apache2/sites-enabled/
total 0
lrwxrwxrwx  1 root root 36 2005-06-30 22:11 000-default -> /etc/apache2/sites-available/default
lrwxrwxrwx  1 root root 47 2006-04-12 05:55 050-webmail_the-domain_com -> /etc/apache2/sites-available/webmail_the-domain_com
After apache2 reload (and restart) I can see the new log files, seems that apache2 «see» this configuration:

Code:
$ ls -l /var/log/apache2/webmail_the-domain_com*
-rw-r--r--  1 root root 0 2006-04-12 05:55 /var/log/apache2/webmail_the-domain_com.access.log
-rw-r--r--  1 root root 0 2006-04-12 05:55 /var/log/apache2/webmail_the-domain_com.error.log
But when I type webmail.the-domain.com appears the ISPConfig «Shared IP» page, the /etc/apache2/vhosts/Vhosts_ispconfig.conf default page:
Code:
$ head -n 15 /etc/apache2/vhosts/Vhosts_ispconfig.conf
###################################
#
# ISPConfig vHost Configuration File
#         Version 1.0
#
###################################
#
NameVirtualHost 192.168.0.150:80
<VirtualHost 192.168.0.150:80>
  ServerName localhost
  ServerAdmin root@localhost
  DocumentRoot /var/www/sharedip
</VirtualHost>
#
#
Seems trivial, but I don't see the solution Any idea?

Thanks!

Regards,

--Benjamí

Last edited by benjami; 12th April 2006 at 16:10.
Reply With Quote
Sponsored Links
  #2  
Old 12th April 2006, 16:11
till till is online now
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,186
Thanks: 829
Thanked 5,417 Times in 4,259 Posts
Default

Its not a good idae to use the "sites-available" configuration together with ISPConfig. To get squirrelmail as webmailclient:

1) Create a website webmail.the-domain.com in ISPConfig.
2) Go to the website directory that ISPConfig created for you and install squirrelmail inside this directory. You can just follow the squirrelmail installation instructions available in the squirrelmail .tar.gz bundle.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #3  
Old 12th April 2006, 16:31
benjami benjami is offline
Member
 
Join Date: Nov 2005
Location: Mediterranean Sea > Majorca Island
Posts: 30
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by till
Its not a good idae to use the "sites-available" configuration together with ISPConfig.
Thanks!

Is one server with old web applications that works with http://ip/~user/application/ . Now have ISPConfig.

Is necessary that I move all of old web applications to the ISPConfig domains?

The problem is that some users have the habit of use http://ip/~user/application

Regards.
Reply With Quote
  #4  
Old 12th April 2006, 23:23
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,741 Times in 2,575 Posts
Default

Quote:
Originally Posted by benjami
Is one server with old web applications that works with http://ip/~user/application/ . Now have ISPConfig.

Is necessary that I move all of old web applications to the ISPConfig domains?
If you use ISPConfig, then yes.
__________________
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 13th April 2006, 03:46
benjami benjami is offline
Member
 
Join Date: Nov 2005
Location: Mediterranean Sea > Majorca Island
Posts: 30
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks for the clarification, falko

Just curiosity: what's the technical reason because isn't good idea to use apache2 "sites-available"?

Thanks again!
Reply With Quote
  #6  
Old 13th April 2006, 08:22
till till is online now
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,186
Thanks: 829
Thanked 5,417 Times in 4,259 Posts
Default

Quote:
Originally Posted by benjami
Just curiosity: what's the technical reason because isn't good idea to use apache2 "sites-available"?
The simple rason is that every setting you do in apache2 "sites-available" might conflict with your ISPConfig settings and in most cases you wont get the expected results then.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #7  
Old 25th April 2006, 08:01
benjami benjami is offline
Member
 
Join Date: Nov 2005
Location: Mediterranean Sea > Majorca Island
Posts: 30
Thanks: 0
Thanked 0 Times in 0 Posts
 
Default Thanks

Thanks, till
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
Shared IP error when adding new site amoswright Installation/Configuration 15 15th June 2006 15:04
Squirrelmail on Suse 9.3 rfburn Technical 5 18th February 2006 12:13
Removed site, but it is still there mromer General 2 21st December 2005 17:46
ISPConfig wiki site sabotaged repeatedly Azathoth General 2 20th December 2005 12:45
can't delete a site KenMcGinnis Installation/Configuration 2 14th August 2005 15:02


All times are GMT +2. The time now is 14:53.


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