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 13th January 2010, 12:01
IzaKamakazi IzaKamakazi is offline
Junior Member
 
Join Date: Jan 2010
Location: Wales UK
Posts: 17
Thanks: 1
Thanked 1 Time in 1 Post
Send a message via MSN to IzaKamakazi
Default Problems hosting 2 domains.

Hi guys, I mentioned this problem in another post which I have now abandoned due to resolving another issue there.

My problem is tha I have installed Ubuntu 9.10 with Ispconfig 3 using the perfect server tutorial which was excellent!.

I have 2 domains that I am trying to get working correctly. www.izabay.co.uk and www.lookylooky.co.uk. I used Ispconfig to set these up and are somewhat visible from the web.

My problem is that although a default webpage has been installed into var/www/izabay.co.uk/web . when I enter either web address from a slave PC I get to what I believe to be var/www .

If I enter the web addresses from the server PC, both addresses seem to point to var/www/izabay.co.uk/web as the test webpage is visible.

Could someone please give me some advice as to where I have gone wrong.

Many thanks in advance

Kam.
Reply With Quote
Sponsored Links
  #2  
Old 14th January 2010, 10:44
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,715 Times in 2,557 Posts
Default

Can you post the izabay.co.uk vhost configuration? What's the output of
Code:
ifconfig
?
__________________
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 January 2010, 14:42
IzaKamakazi IzaKamakazi is offline
Junior Member
 
Join Date: Jan 2010
Location: Wales UK
Posts: 17
Thanks: 1
Thanked 1 Time in 1 Post
Send a message via MSN to IzaKamakazi
Default

Hi Falko, firstly thank you for taking the time to give me advice.

The output from ifconfig is:

Code:
eth0      Link encap:Ethernet  HWaddr 00:1a:92:62:81:b4  
          inet addr:82.13.2.79  Bcast:82.13.2.255  Mask:255.255.255.0
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
          Interrupt:28 Base address:0x2000 

eth1      Link encap:Ethernet  HWaddr 00:1a:92:62:84:e7  
          inet addr:192.168.0.3  Bcast:192.168.0.255  Mask:255.255.255.0
          inet6 addr: 2002:520d:24f:1234:21a:92ff:fe62:84e7/64 Scope:Global
          inet6 addr: fe80::21a:92ff:fe62:84e7/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:1431 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1174 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:203832 (203.8 KB)  TX bytes:1062746 (1.0 MB)
          Interrupt:29 Base address:0x4000 

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:2213 errors:0 dropped:0 overruns:0 frame:0
          TX packets:2213 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:1135144 (1.1 MB)  TX bytes:1135144 (1.1 MB)

Im not sure if this is the exact file you require but this is from etc/apache2/sites-enabled/izabay.co.uk.vhost

Code:
<Directory /var/www/izabay.co.uk>
    AllowOverride None
    Order Deny,Allow
    Deny from all
</Directory>

<VirtualHost 82.13.2.79:80>
      DocumentRoot /var/www/izabay.co.uk/web
  
    ServerName izabay.co.uk
    ServerAdmin webmaster@izabay.co.uk

    ErrorLog /var/log/ispconfig/httpd/izabay.co.uk/error.log

    ErrorDocument 400 /error/400.html
    ErrorDocument 401 /error/401.html
    ErrorDocument 403 /error/403.html
    ErrorDocument 404 /error/404.html
    ErrorDocument 405 /error/405.html
    ErrorDocument 500 /error/500.html
    ErrorDocument 503 /error/503.html
	
    <Directory /var/www/izabay.co.uk/web>
        Options FollowSymLinks
        AllowOverride All
        Order allow,deny
        Allow from all
        
        # ssi enabled
        AddType text/html .shtml
        AddOutputFilter INCLUDES .shtml
        Options +Includes
    </Directory>
    <Directory /var/www/clients/client1/web13/web>
        Options FollowSymLinks
        AllowOverride All
        Order allow,deny
        Allow from all
        
        # ssi enabled
        AddType text/html .shtml
        AddOutputFilter INCLUDES .shtml
        Options +Includes
    </Directory>

    # cgi enabled
	<Directory /var/www/clients/client1/web13/cgi-bin>
      Order allow,deny
      Allow from all
    </Directory>
    ScriptAlias  /cgi-bin/ /var/www/clients/client1/web13/cgi-bin/
    AddHandler cgi-script .cgi
    AddHandler cgi-script .pl
    # suexec enabled
    SuexecUserGroup web13 client1
    # php as fast-cgi enabled
    <Directory /var/www/izabay.co.uk/web>
        AddHandler fcgid-script .php .php3 .php4 .php5
        FCGIWrapper /var/www/php-fcgi-scripts/web13/.php-fcgi-starter .php
        Options +ExecCGI
        AllowOverride all
        Order allow,deny
        Allow from all
    </Directory>


</VirtualHost>
Hope I have given you the coorect information.

Thanks again Kam.


P.S. I noticed these in the var/log/apache2/error log


[Thu Jan 14 16:50:37 2010] [error] [client 192.168.0.2] client denied by server configuration: /var/www/clients/
[Thu Jan 14 16:50:37 2010] [error] [client 192.168.0.2] client denied by server configuration: /var/www/izabay.co.uk/
[Thu Jan 14 16:50:37 2010] [error] [client 192.168.0.2] client denied by server configuration: /var/www/php-fcgi-scripts/
[Thu Jan 14 16:50:37 2010] [error] [client 192.168.0.2] client denied by server configuration: /var/www/lookylooky.co.uk/
[Thu Jan 14 16:50:37 2010] [error] [client 192.168.0.2] File does not exist: /var/www/favicon.ico
[Thu Jan 14 17:07:29 2010] [error] [client 192.168.0.2] client denied by server configuration: /var/www/clients/
[Thu Jan 14 17:07:29 2010] [error] [client 192.168.0.2] client denied by server configuration: /var/www/izabay.co.uk/
[Thu Jan 14 17:07:29 2010] [error] [client 192.168.0.2] client denied by server configuration: /var/www/php-fcgi-scripts/
[Thu Jan 14 17:07:29 2010] [error] [client 192.168.0.2] client denied by server configuration: /var/www/lookylooky.co.uk/
[Thu Jan 14 17:07:29 2010] [error] [client 192.168.0.2] File does not exist: /var/www/favicon.ico
[Thu Jan 14 17:15:39 2010] [error] [client 192.168.0.2] File does not exist: /var/www/favicon.ico

Last edited by IzaKamakazi; 14th January 2010 at 19:29.
Reply With Quote
  #4  
Old 15th January 2010, 13:29
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,715 Times in 2,557 Posts
Default

Looks ok. What's the output of
Code:
ls -la /var/www/izabay.co.uk/web/
?
__________________
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 15th January 2010, 14:20
IzaKamakazi IzaKamakazi is offline
Junior Member
 
Join Date: Jan 2010
Location: Wales UK
Posts: 17
Thanks: 1
Thanked 1 Time in 1 Post
Send a message via MSN to IzaKamakazi
Default

Hi Falko,

Here is the output of your code:

Code:
kamakazi@server:~$ ls -la /var/www/izabay.co.uk/web/
total 2404
drwxr-xr-x 5 web13 client1    4096 2010-01-13 15:08 .
drwxr-xr-x 6 root  root       4096 2010-01-13 14:39 ..
drwxr-xr-x 2 web13 client1    4096 2010-01-13 14:39 error
-rwxr-xr-- 1 web13 client1    1406 2010-01-13 14:39 favicon.ico
-rw-r--r-- 1 root  root    2413009 2007-03-19 19:31 gamezone.psd
-rwxr-xr-- 1 web13 client1       0 2010-01-13 14:39 .htaccess
drwxr-xr-x 2 root  root       4096 2010-01-11 19:04 images
-rw-r--r-- 1 root  root       5889 2007-03-19 19:24 index.htm
-rwxr-xr-- 1 web13 client1      34 2010-01-13 14:39 robots.txt
drwxr-xr-x 2 root  root       4096 2010-01-13 14:39 stats
-rw-r--r-- 1 root  root       7026 2007-03-19 19:22 style.css
kamakazi@server:~$
Many thanks.

Kam
Reply With Quote
  #6  
Old 16th January 2010, 15:20
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,715 Times in 2,557 Posts
Default

What are the outputs of
Code:
ls -la /etc/apache2/sites-available
ls -la /etc/apache2/sites-eenabled
?
__________________
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 16th January 2010, 15:37
IzaKamakazi IzaKamakazi is offline
Junior Member
 
Join Date: Jan 2010
Location: Wales UK
Posts: 17
Thanks: 1
Thanked 1 Time in 1 Post
Send a message via MSN to IzaKamakazi
Default

Hi Again,

Here is the code you requested:

Code:
kamakazi@server:~$ ls -la /etc/apache2/sites-available
total 44
drwxr-xr-x 2 root root 4096 2010-01-13 14:47 .
drwxr-xr-x 7 root root 4096 2010-01-11 18:30 ..
-rw-r--r-- 1 root root  948 2009-11-12 22:48 default
-rw-r--r-- 1 root root 7364 2009-11-12 22:48 default-ssl
-rw-r--r-- 1 root root 1020 2010-01-13 13:41 ispconfig.conf
-rw-r--r-- 1 root root 1440 2010-01-13 14:47 ispconfig.vhost
-rw-r--r-- 1 root root 1465 2010-01-13 14:36 ispconfig.vhost~
-rw-r--r-- 1 root root 1834 2010-01-13 14:39 izabay.co.uk.vhost
-rw-r--r-- 1 root root 1862 2010-01-13 14:41 lookylooky.co.uk.vhost
-rw-r--r-- 1 root root 1857 2010-01-10 20:50 lookylooky.co.uk.vhost~
kamakazi@server:~$
And

Code:
kamakazi@server:~$ ls -la /etc/apache2/sites-enabled
total 16
drwxr-xr-x 2 root root 4096 2010-01-13 14:39 .
drwxr-xr-x 7 root root 4096 2010-01-11 18:30 ..
lrwxrwxrwx 1 root root   26 2010-01-10 17:51 000-default -> ../sites-available/default
lrwxrwxrwx 1 root root   43 2010-01-10 18:19 000-ispconfig.conf -> /etc/apache2/sites-available/ispconfig.conf
lrwxrwxrwx 1 root root   44 2010-01-10 18:19 000-ispconfig.vhost -> /etc/apache2/sites-available/ispconfig.vhost
lrwxrwxrwx 1 root root   48 2010-01-13 14:39 izabay.co.uk.vhost -> /etc/apache2/sites-available//izabay.co.uk.vhost
-rw-r--r-- 1 root root  114 2010-01-13 14:12 izabay.co.uk.vhost~
lrwxrwxrwx 1 root root   52 2010-01-13 14:39 lookylooky.co.uk.vhost -> /etc/apache2/sites-available//lookylooky.co.uk.vhost
-rw-r--r-- 1 root root  118 2010-01-13 14:12 lookylooky.co.uk.vhost~
kamakazi@server:~$
Thanks again Falko.

Kam
Reply With Quote
  #8  
Old 17th January 2010, 02:49
maxhdcse maxhdcse is offline
Junior Member
 
Join Date: Jan 2010
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Same problem, vanilla install of 3.0.1.6 on Ubuntu 8.04, on EC2

I'm having strange behavior, on the first site, one page load it will display the default Welcome page, and on the next load it displays /var/www/. The second site will display the default Welcome page almost always.

This is on EC2, with an Elastic IP. I configured the hostname to be the ec2-204-xxx-xxx-xxx.compute-1.amazonaws.com of the Elastic IP, which is supposed to utilize both the internal and external IP depending on the source of the request. I also used this value for configuration of ISPConfig.

If I leave the IP unconfigured in ISPConfig so that a new site will use * by default the results are still mixed and undesirable.

Hopefully this is limited to my misconfiguration - the values to use for this setup isnt entirely apparent to me using EC2 and this is my umpteenth variation in installing a cp on Ubuntu. :P One day it'll happen, hehe.

Thanks for any input!
Reply With Quote
  #9  
Old 17th January 2010, 10:49
IzaKamakazi IzaKamakazi is offline
Junior Member
 
Join Date: Jan 2010
Location: Wales UK
Posts: 17
Thanks: 1
Thanked 1 Time in 1 Post
Send a message via MSN to IzaKamakazi
Default

maxhdcse,

Please do not hijack my post, if you have the same problem then please be patient and give Falko time to assist me in resolving my issue.

If/when he does this and the solution does not help you then by all means ask for help.

Thanks

Kam
Reply With Quote
  #10  
Old 17th January 2010, 15:00
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,715 Times in 2,557 Posts
 
Default

What happens when you comment out these lines at the beginning of /etc/apache2/sites-enabled/izabay.co.uk.vhost?

Code:
<Directory /var/www/izabay.co.uk>
    AllowOverride None
    Order Deny,Allow
    Deny from all
</Directory>
Don't forget to 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
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
problems receiving mails Amorphous Installation/Configuration 2 15th October 2009 11:04
mail - 8080 - couple of others clemens General 9 6th June 2009 10:27
Exim Gateway with mailwatch (Unable to receive emails) siul0_0 HOWTO-Related Questions 10 8th May 2009 23:00
Web Hosting Only For Individual Domains bails Installation/Configuration 2 19th August 2008 16:35
Spamassassin not working hairydog2 General 7 12th July 2008 21:15


All times are GMT +2. The time now is 18:15.


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