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 1st December 2010, 00:50
crypted crypted is offline
Senior Member
 
Join Date: Dec 2006
Location: Oklahoma, USA
Posts: 429
Thanks: 3
Thanked 14 Times in 6 Posts
Default web address loading wrong website

After the whole server restoration (other post discusses), one website continues to load the wrong website.

I have updated its DNS to force MyDNS to rewrite. I have changed settings on the Website configuration to get it to rewrite. Still, the problem persists.

Derekandgaby.com continues to load to another domain, franceskosak.com.

Here is some code:
Code:
y:/home/dingle# dig derekandgaby.com

; <<>> DiG 9.6-ESV-R1 <<>> derekandgaby.com
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 19157
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 2, ADDITIONAL: 0

;; QUESTION SECTION:
;derekandgaby.com.              IN      A

;; ANSWER SECTION:
derekandgaby.com.       86400   IN      A       66.118.142.210

;; AUTHORITY SECTION:
derekandgaby.com.       86400   IN      NS      ns1.derekgordon.com.
derekandgaby.com.       86400   IN      NS      ns2.derekgordon.com.

;; Query time: 128 msec
;; SERVER: 66.118.170.2#53(66.118.170.2)
;; WHEN: Tue Nov 30 18:47:23 2010
;; MSG SIZE  rcvd: 98

my:/home/dingle# cat /etc/apache2/sites-enabled/derekandgaby.com.vhost 
<Directory /var/www/derekandgaby.com>
    AllowOverride None
    Order Deny,Allow
    Deny from all
</Directory>

<VirtualHost 66.118.142.216:80>
      DocumentRoot /var/www/derekandgaby.com/web
  
    ServerName derekandgaby.com
    ServerAlias *.derekandgaby.com
    ServerAdmin webmaster@derekandgaby.com

    ErrorLog /var/log/ispconfig/httpd/derekandgaby.com/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/derekandgaby.com/web>
        Options FollowSymLinks
        AllowOverride All
        Order allow,deny
        Allow from all
    </Directory>
    <Directory /var/www/clients/client1/web29/web>
        Options FollowSymLinks
        AllowOverride All
        Order allow,deny
        Allow from all
    </Directory>


    # suexec enabled
    SuexecUserGroup web29 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 3600
      ProcessLifeTime 7200
      # MaxProcessCount 1000
      DefaultMinClassProcessCount 3
      DefaultMaxClassProcessCount 100
      IPCConnectTimeout 8
      IPCCommTimeout 360
      BusyTimeout 300
    </IfModule>
    <Directory /var/www/derekandgaby.com/web>
        AddHandler fcgid-script .php .php3 .php4 .php5
        FCGIWrapper /var/www/php-fcgi-scripts/web29/.php-fcgi-starter .php
        Options +ExecCGI
        AllowOverride All
        Order allow,deny
        Allow from all
    </Directory>
        <Directory /var/www/clients/client1/web29/web>
        AddHandler fcgid-script .php .php3 .php4 .php5
        FCGIWrapper /var/www/php-fcgi-scripts/web29/.php-fcgi-starter .php
        Options +ExecCGI
        AllowOverride All
        Order allow,deny
        Allow from all
    </Directory>

    # add support for apache mpm_itk
    <IfModule mpm_itk_module>
      AssignUserId web29 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>


</VirtualHost>



my:/home/dingle# cat /etc/apache2/sites-enabled/franceskosak.com.vhost 
<Directory /var/www/franceskosak.com>
    AllowOverride None
    Order Deny,Allow
    Deny from all
</Directory>

<VirtualHost 66.118.142.210:80>
      DocumentRoot /var/www/franceskosak.com/web
  
    ServerName franceskosak.com
    ServerAlias www.franceskosak.com
    ServerAdmin webmaster@franceskosak.com

    ErrorLog /var/log/ispconfig/httpd/franceskosak.com/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/franceskosak.com/web>
        Options FollowSymLinks
        AllowOverride All
        Order allow,deny
        Allow from all
    </Directory>
    <Directory /var/www/clients/client3/web12/web>
        Options FollowSymLinks
        AllowOverride All
        Order allow,deny
        Allow from all
The IP 210 does have VirtualHost enabled on it. I disabled and re-enabled it. Still no resolution.

Then, I disabled the other website that the domain was loading to. I waited 15 minutes, and it still works and it still shows up in sites-enabled.
Code:
my:/home/dingle# ls /etc/apache2/sites-enabled/
000-apps.vhost           areyouliberal.com.vhost         inter5.org.vhost               pwcsportsman.com.vhost
000-default              cassidyphotographers.com.vhost  katiespivey.com.vhost          schlechthatchery.com.vhost
000-ispconfig.conf       derekandgaby.com.vhost          lawncraftersonline.com.vhost   sebastianlodge.com.vhost
000-ispconfig.vhost      derekgordon.com.vhost           masonicwiki.info.vhost         shawnmccalla.com.vhost
andovermeat.com.vhost    forkup.info.vhost               monitor.derekgordon.com.vhost  springhollowcrossbreds.com.vhost
antoniosparma.com.vhost  franceskosak.com.vhost          peruvianprincess.org.vhost     thermalimagingla.com.vhost
my:/home/dingle#
All contents in /etc/apache2/* is owned by www-data www-data (user group).

I do not see why this is not updating Apache.

MyDNS and SQL tasks update fine.

No errors or events logged in /var/log/ISPCONFIG logs.
__________________
ISPC3 on Debian! It's great!

Last edited by crypted; 1st December 2010 at 01:09.
Reply With Quote
Sponsored Links
  #2  
Old 1st December 2010, 13:37
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,739 Times in 2,574 Posts
Default

Can you post the contents of the derekandgaby.com.vhost file? 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 1st December 2010, 14:11
crypted crypted is offline
Senior Member
 
Join Date: Dec 2006
Location: Oklahoma, USA
Posts: 429
Thanks: 3
Thanked 14 Times in 6 Posts
Default

Code:
y:/home/dingle# ifconfig
eth2      Link encap:Ethernet  HWaddr 00:14:22:7c:08:8d  
          inet addr:66.118.142.78  Bcast:66.118.142.255  Mask:255.255.255.0
          inet6 addr: fe80::214:22ff:fe7c:88d/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:3496816 errors:0 dropped:0 overruns:0 frame:0
          TX packets:3408000 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:663696039 (632.9 MiB)  TX bytes:3289735648 (3.0 GiB)
          Interrupt:16 

eth2:0    Link encap:Ethernet  HWaddr 00:14:22:7c:08:8d  
          inet addr:66.118.142.79  Bcast:66.118.142.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          Interrupt:16 

eth2:1    Link encap:Ethernet  HWaddr 00:14:22:7c:08:8d  
          inet addr:66.118.142.210  Bcast:66.118.142.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          Interrupt:16 

eth2:2    Link encap:Ethernet  HWaddr 00:14:22:7c:08:8d  
          inet addr:66.118.142.211  Bcast:66.118.142.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          Interrupt:16 

eth2:3    Link encap:Ethernet  HWaddr 00:14:22:7c:08:8d  
          inet addr:66.118.142.212  Bcast:66.118.142.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          Interrupt:16 

eth2:4    Link encap:Ethernet  HWaddr 00:14:22:7c:08:8d  
          inet addr:66.118.142.213  Bcast:66.118.142.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          Interrupt:16 

eth2:5    Link encap:Ethernet  HWaddr 00:14:22:7c:08:8d  
          inet addr:66.118.142.214  Bcast:66.118.142.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          Interrupt:16 

eth2:6    Link encap:Ethernet  HWaddr 00:14:22:7c:08:8d  
          inet addr:66.118.142.215  Bcast:66.118.142.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          Interrupt:16 

eth2:7    Link encap:Ethernet  HWaddr 00:14:22:7c:08:8d  
          inet addr:66.118.142.216  Bcast:66.118.142.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          Interrupt:16 

eth2:8    Link encap:Ethernet  HWaddr 00:14:22:7c:08:8d  
          inet addr:66.118.142.217  Bcast:66.118.142.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          Interrupt:16 

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:475202 errors:0 dropped:0 overruns:0 frame:0
          TX packets:475202 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:67912646 (64.7 MiB)  TX bytes:67912646 (64.7 MiB)

my:/home/dingle# cat /etc/apache2/sites-enabled/derekandgaby.com.vhost 
<Directory /var/www/derekandgaby.com>
    AllowOverride None
    Order Deny,Allow
    Deny from all
</Directory>

<VirtualHost 66.118.142.216:80>
      DocumentRoot /var/www/derekandgaby.com/web
  
    ServerName derekandgaby.com
    ServerAlias *.derekandgaby.com
    ServerAdmin webmaster@derekandgaby.com

    ErrorLog /var/log/ispconfig/httpd/derekandgaby.com/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/derekandgaby.com/web>
        Options FollowSymLinks
        AllowOverride All
        Order allow,deny
        Allow from all
    </Directory>
    <Directory /var/www/clients/client1/web29/web>
        Options FollowSymLinks
        AllowOverride All
        Order allow,deny
        Allow from all
    </Directory>


    # suexec enabled
    SuexecUserGroup web29 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 3600
      ProcessLifeTime 7200
      # MaxProcessCount 1000
      DefaultMinClassProcessCount 3
      DefaultMaxClassProcessCount 100
      IPCConnectTimeout 8
      IPCCommTimeout 360
      BusyTimeout 300
    </IfModule>
    <Directory /var/www/derekandgaby.com/web>
Again, I disabled the franceskosak.com website and it still shows up in /sites-enabled/ and it still loads in the browser. AND, derekandgaby.com still load franceskosak.com.

It's as if ISPCONFIG isn't able to configure Apache. But, permissions look right.

Code:
my:/home/dingle# cd /etc/apache2/
my:/etc/apache2# ls -lah
total 60K
drwxr-xr-x   8 www-data www-data 4.0K 2010-11-29 19:31 .
drwxr-xr-x 109 root     root      12K 2010-11-30 05:07 ..
-rw-r--r--   1 www-data www-data 9.9K 2010-11-29 19:31 apache2.conf
drwxr-xr-x   2 www-data www-data 4.0K 2010-11-29 19:31 backup-sites-enabeled
drwxr-xr-x   2 www-data www-data 4.0K 2010-11-29 19:31 conf.d
-rw-r--r--   1 www-data www-data  378 2010-11-29 19:31 envvars
-rw-r--r--   1 www-data www-data    0 2010-11-29 19:31 httpd.conf
drwxr-xr-x   2 www-data www-data 4.0K 2010-11-29 19:42 mods-available
drwxr-xr-x   2 www-data www-data 4.0K 2010-11-29 19:31 mods-enabled
-rw-r--r--   1 www-data www-data  509 2010-11-29 19:31 ports.conf
drwxr-xr-x   2 www-data www-data 4.0K 2010-11-29 19:31 sites-available
drwxr-xr-x   2 www-data www-data 4.0K 2010-11-29 19:31 sites-enabled
Code:
my:/etc/apache2# cat envvars 
# envvars - default environment variables for apache2ctl

# Since there is no sane way to get the parsed apache2 config in scripts, some
# settings are defined via environment variables and then used in apache2ctl,
# /etc/init.d/apache2, /etc/logrotate.d/apache2, etc.
export APACHE_RUN_USER=www-data
export APACHE_RUN_GROUP=www-data
export APACHE_PID_FILE=/var/run/apache2.pid
my:/etc/apache2# apache2 -t
apache2: bad user name ${APACHE_RUN_USER}
my:/etc/apache2#
Code:
my:/etc/apache2# cat /etc/group |grep www-d
www-data:x:33:
ispapps:x:5003:www-data
ispconfig:x:5004:www-data
client1:x:5005:www-data
client3:x:5006:www-data
client4:x:5007:www-data
client2:x:5008:www-data
client5:x:5009:www-data
client6:x:5021:www-data
my:/etc/apache2# cat /etc/passwd |grep www-d
www-data:x:33:33:www-data:/var/www:/bin/sh
__________________
ISPC3 on Debian! It's great!

Last edited by crypted; 1st December 2010 at 14:14.
Reply With Quote
  #4  
Old 1st December 2010, 15:38
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,717
Thanks: 820
Thanked 5,322 Times in 4,175 Posts
Default

Check the ispconfig monitor for errors.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #5  
Old 1st December 2010, 15:41
crypted crypted is offline
Senior Member
 
Join Date: Dec 2006
Location: Oklahoma, USA
Posts: 429
Thanks: 3
Thanked 14 Times in 6 Posts
Default

No errors:

Code:
Server: my.derekgordon.com (Debian Lenny)
ISPConfig 3.0.3
State: ok (0 unknown, 0 info, 0 warning, 0 critical, 0 error)
More information...
The two ISPCONFIG logs don't have any errors either.
__________________
ISPC3 on Debian! It's great!
Reply With Quote
  #6  
Old 1st December 2010, 17:04
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,717
Thanks: 820
Thanked 5,322 Times in 4,175 Posts
Default

And the jobqueue is empty?
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
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
Sending mail ISPConfig 3 but not receivind catza Installation/Configuration 20 19th May 2010 12:47
IP address of the ISPConfig web dstme Installation/Configuration 2 15th August 2008 11:00
testing web site by its external ip address rosa hsiao General 9 12th January 2006 21:32
How to shorten the web site address? rosa hsiao General 5 5th December 2005 13:29
IP address of the ISPConfig web indicator72 Installation/Configuration 6 16th November 2005 19:59


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


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