web address loading wrong website

Discussion in 'General' started by crypted, Dec 1, 2010.

  1. crypted

    crypted Member

    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 [email protected]
    
        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 [email protected]
    
        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.
     
    Last edited: Dec 1, 2010
  2. falko

    falko Super Moderator Howtoforge Staff

    Can you post the contents of the derekandgaby.com.vhost file? What's the output of
    Code:
    ifconfig
    ?
     
  3. crypted

    crypted Member

    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 [email protected]
    
        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
     
    Last edited: Dec 1, 2010
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    Check the ispconfig monitor for errors.
     
  5. crypted

    crypted Member

    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.
     
  6. till

    till Super Moderator Staff Member ISPConfig Developer

    And the jobqueue is empty?
     
  7. crypted

    crypted Member

    Nope, there is content in the jobqueue:

    Code:
    2010-11-30 19:02 	my.derekgordon.com 	Update 	web_domain 	
    2010-11-30 18:59 	my.derekgordon.com 	Insert 	server_ip 	
    2010-11-30 18:58 	my.derekgordon.com 	Delete 	server_ip 	
    2010-11-30 18:51 	my.derekgordon.com 	Update 	web_domain 	
    2010-11-30 18:50 	my.derekgordon.com 	Update 	web_domain 	
    2010-11-30 18:50 	my.derekgordon.com 	Update 	web_domain 	
    2010-11-30 10:46 	my.derekgordon.com 	Update 	web_domain 	
    2010-11-30 10:41 	my.derekgordon.com 	Update 	server_ip 	
    2010-11-30 10:35 	my.derekgordon.com 	Update 	server_ip 	
    2010-11-29 19:56 	my.derekgordon.com 	Update 	web_domain 	
    2010-11-29 19:48 	my.derekgordon.com 	Update 	web_domain 	
    2010-11-29 19:46 	my.derekgordon.com 	Update 	web_domain 	
    2010-11-29 19:46 	my.derekgordon.com 	Update 	dns_rr 	
    2010-11-29 19:46 	my.derekgordon.com 	Update 	dns_soa 	
    2010-11-29 19:46 	my.derekgordon.com 	Update 	dns_rr
    2010-11-29 19:46 	my.derekgordon.com 	Update 	dns_soa 	
    2010-11-29 19:46 	my.derekgordon.com 	Update 	dns_rr 	
    2010-11-29 19:46 	my.derekgordon.com 	Update 	dns_soa 	
    2010-11-29 19:45 	my.derekgordon.com 	Update 	web_domain 	
    2010-11-29 19:44 	my.derekgordon.com 	Update 	web_domain 	
    2010-11-29 19:29 	my.derekgordon.com 	Update 	web_domain 	
    2010-11-29 19:29 	my.derekgordon.com 	Update 	web_domain
    
    This is very weird.

    Again, the Frances domain is disabled and has been since 29 Nov. But, it still is enabled in apache and derekandgaby.com load to that disabled website, too.

    This makes no sense.

    Originally, derekandgaby.com was on the *.216 IP address. But when I restored the server after the harddrive crash, it would load to another website. So, I changed its IP to *.210. Now, it loads the frances website constantly.

    In an attempt to rectify that, I disabled the frances site. It never disabled in Apache, though, and still loads if you visit it.

    So, it seems like that domain is screwed in the system somewhere? I thought about deleting derekandgaby.com entirely and re-adding it. But, deleting derekandgaby.com wouldn't solve the whole problem if Apache still operates websites that are disabled.
     
    Last edited: Dec 1, 2010
  8. till

    till Super Moderator Staff Member ISPConfig Developer

    Ok, then this makes sense. If the jobs in the jobqueue can not be processed, then no changes get written to disk. Please take a look in the ispconfig system log if there are any errors.
     
  9. crypted

    crypted Member

    All logs under "MONITOR" in ISPC are dated: "Data from: 2010-11-28 05:40" so they are not updating at all. So, no new content is provided to find errors that way.

    Unfortunately, I won't be able to get onto SSH for another hour to open up /var/log/ispconfig/ files. Stay tuned on that one.
     
  10. crypted

    crypted Member

    Refer to my last post above regarding ISPCONFIG's MONITOR not updating any of the logfiles for its display.

    ispconfig.log shows errors from the initial recovery. But, I reset the dbispconfig user and the error quit happening:
    Code:
    29.11.2010-19:23 - WARNING - DB::connect()-> mysql_select_db Unknown database 'dbispconfig'
    29.11.2010-19:23 - WARNING - DB::connect()-> mysql_select_db Unknown database 'dbispconfig'
    29.11.2010-19:23 - WARNING - DB::connect()-> mysql_select_db Unknown database 'dbispconfig'
    29.11.2010-19:23 - WARNING - DB::connect()-> mysql_select_db Unknown database 'dbispconfig'
    29.11.2010-19:23 - WARNING - DB::connect()-> mysql_select_db Unknown database 'dbispconfig'
    29.11.2010-19:23 - WARNING - DB::connect()-> mysql_select_db Unknown database 'dbispconfig'
    29.11.2010-19:23 - WARNING - DB::connect()-> mysql_select_db Unknown database 'dbispconfig'
    29.11.2010-19:23 - WARNING - DB::connect()-> mysql_select_db Unknown database 'dbispconfig'
    29.11.2010-19:23 - WARNING - DB::connect()-> mysql_select_db Unknown database 'dbispconfig'
    29.11.2010-19:23 - WARNING - DB::connect()-> mysql_select_db Unknown database 'dbispconfig'
    29.11.2010-19:23 - WARNING - DB::connect()-> mysql_select_db Unknown database 'dbispconfig'
    cron.log has no errors either.
     
  11. till

    till Super Moderator Staff Member ISPConfig Developer

    What is the name of your ispconfig database?
     
  12. crypted

    crypted Member

    dbispconfig with user ispconfig on localhost.

    The DB shouldn't be the problem I don't think. The ISPConsole shows everything fine. So, it's being accessed okay.

    The error was from my restoration of the server. It quit happening as soon as mysql databases and users were restored...
     
  13. till

    till Super Moderator Staff Member ISPConfig Developer

    Ok. And the jobs in the jobqueue were processed after your restore? Or are all jobs since the restore in the jobqueue?
     
  14. crypted

    crypted Member

    I don't that that ANY jobs have been processed since the restoration.

    So, nothing has been functioning as far as administration goes.


    EDIT:
    One job did process. I changed the DNS IP for derekandgaby.com from 216 to 210. It resolves to 210 so that one must have worked.

    But, in the SITE configuration part of CONSOLE the IP for derekandgaby.com shows as 210. In Apache vhost it shows as 216 still.
     
  15. crypted

    crypted Member

    Refer to above post, continue with this note:

    I see that there are about 15 connections from user ispconfig to dbispconfig when I view "Processes" in PhpMyAdmin.

    They are all sleeping.

    Each time I run server.sh on my own, it creates another process/connection to the database.

    But, it just sits there as "SLEEPING" and nothing updates.

    Code:
    Show Full Queries 	ID 	User 	Host 	Database 	Command 	Time 	Status 	SQL query
    Kill 	420 	ispconfig 	localhost 	dbispconfig 	Sleep 	10 	--- 	---
    Kill 	846 	ispconfig 	localhost 	dbispconfig 	Sleep 	882 	--- 	---
    Kill 	901 	ispconfig 	localhost:42725 	dbispconfig 	Sleep 	701 	--- 	---
    Kill 	1090 	ispconfig 	localhost:41247 	dbispconfig 	Sleep 	161 	--- 	---
    Kill 	1091 	ispconfig 	localhost:41248 	dbispconfig 	Sleep 	161 	--- 	---
    Kill 	1092 	ispconfig 	localhost:41249 	dbispconfig 	Sleep 	161 	--- 	---
    Kill 	1146 	ispconfig 	localhost 	dbispconfig 	Sleep 	74 	--- 	---
    Kill 	1147 	ispconfig 	localhost 	dbispconfig 	Sleep 	74 	--- 	---
    Kill 	1167 	ispconfig 	localhost:41304 	dbispconfig 	Sleep 	8 	--- 	---
    Kill 	1168 	ispconfig 	localhost:41305 	dbispconfig 	Sleep 	8 	--- 	---
    Kill 	1169 	ispconfig 	localhost:41306 	dbispconfig 	Sleep 	8 	--- 	---
    Kill 	1170 	ispconfig 	localhost:41307 	dbispconfig 	Sleep 	8 	--- 	---
    Kill 	1171 	ispconfig 	localhost:41308 	dbispconfig 	Sleep 	8 	--- 	---
    Kill 	1172 	ispconfig 	localhost:41309 	dbispconfig 	Sleep 	8 	--- 	---
    Kill 	1178 	c1inter5 	localhost 	c1inter5 	Sleep 	0 	--- 	---
    The user ispconfig has ALL GRANTED privileges to ANYTHING on mysql, not just the dbispconfig database at this point...

    Executing ISPC's server.sh just hangs there. It flashes the cursor indefinitely.

    -------------
    I've enabled debugging in the config.inc.php
    Code:
    my:/home/dingle# /usr/local/ispconfig/server/server.sh
    01.12.2010-18:20 - DEBUG - Set Lock: /usr/local/ispconfig/server/temp/.ispconfig_lock
    01.12.2010-18:20 - DEBUG - Found 31 changes, starting update process.
    
    Fatal error: Class 'client_module' not found in /usr/local/ispconfig/server/lib/classes/modules.inc.php on line 54
    my:/home/dingle# 
    So, I see that all of the files in mods-enabled are blank. I copied them over from another source.

    New error:
    Code:
    Fatal error: Class 'apache2_plugin' not found in /usr/local/ispconfig/server/lib/classes/plugins.inc.php on line 66
     
    Last edited: Dec 2, 2010
  16. crypted

    crypted Member

    OMFG that was a pain but I fixed it.

    Apparently, the tarball installation didn't copy all of the files over, so that caused a headache.

    I moved an entire /usr/local/ISPCONFIG over from my test server.

    That fixed missing file problems. But, I had to deal with SQL passwords.

    Apparently, there are other areas storing the SQL user password because the password I put in config.inc.php wouldn't work for server.sh.

    I had to use the same password for the SQL user as was used on my test server.

    Holy crap.
     
  17. crypted

    crypted Member

    Now, I'm left with the VHOST errors:

    Code:
    Restarting web server: apache2[Wed Dec 01 18:53:35 2010] [warn] NameVirtualHost 66.118.142.216:80 has no VirtualHosts
    [Wed Dec 01 18:53:35 2010] [warn] NameVirtualHost 66.118.142.216:443 has no VirtualHosts
    [Wed Dec 01 18:53:35 2010] [warn] NameVirtualHost 66.118.142.217:443 has no VirtualHosts
    [Wed Dec 01 18:53:35 2010] [warn] NameVirtualHost 66.118.142.210:443 has no VirtualHosts
    [Wed Dec 01 18:53:35 2010] [warn] NameVirtualHost 66.118.142.211:443 has no VirtualHosts
    [Wed Dec 01 18:53:35 2010] [warn] NameVirtualHost 66.118.142.214:443 has no VirtualHosts
    [Wed Dec 01 18:53:35 2010] [warn] NameVirtualHost 66.118.142.215:80 has no VirtualHosts
    [Wed Dec 01 18:53:35 2010] [warn] NameVirtualHost 66.118.142.215:443 has no VirtualHosts
    [Wed Dec 01 18:53:35 2010] [warn] NameVirtualHost 66.118.142.212:443 has no VirtualHosts
    [Wed Dec 01 18:53:35 2010] [warn] NameVirtualHost 66.118.142.213:443 has no VirtualHosts
     ... waiting .[Wed Dec 01 18:53:37 2010] [warn] NameVirtualHost 66.118.142.216:80 has no VirtualHosts
    [Wed Dec 01 18:53:37 2010] [warn] NameVirtualHost 66.118.142.216:443 has no VirtualHosts
    [Wed Dec 01 18:53:37 2010] [warn] NameVirtualHost 66.118.142.217:443 has no VirtualHosts
    [Wed Dec 01 18:53:37 2010] [warn] NameVirtualHost 66.118.142.210:443 has no VirtualHosts
    [Wed Dec 01 18:53:37 2010] [warn] NameVirtualHost 66.118.142.211:443 has no VirtualHosts
    [Wed Dec 01 18:53:37 2010] [warn] NameVirtualHost 66.118.142.214:443 has no VirtualHosts
    [Wed Dec 01 18:53:37 2010] [warn] NameVirtualHost 66.118.142.215:80 has no VirtualHosts
    [Wed Dec 01 18:53:37 2010] [warn] NameVirtualHost 66.118.142.215:443 has no VirtualHosts
    [Wed Dec 01 18:53:37 2010] [warn] NameVirtualHost 66.118.142.212:443 has no VirtualHosts
    [Wed Dec 01 18:53:37 2010] [warn] NameVirtualHost 66.118.142.213:443 has no VirtualHosts
    These errors have existed since I started using ISPC3 in April 2010. So, I have just left them alone.

    Till: I have tried your IP suggestion numerous times and on every IP. Disabling "HTTP NameVirtualHost," waiting for the update to process, and re-enabling it has not resolved this.
     
  18. till

    till Super Moderator Staff Member ISPConfig Developer

    There are no other files for the ispconfig user password. But you might have missed that this file exists once for the interface and once for the server.

    Then there are 3 possibilities:

    1) The server.sh still does not write to disk.
    2) The IP addresses does not match.
    3) the code that you copied for the server part does not match with other components like the dataase or the interface part.
     
  19. crypted

    crypted Member

    Till: The DB username/password is used in tons of other files (postfix, pam.d, courier, pureftpd, etc...). That was the problem. I copied the basic components over and the old database/user/password.

    So, I changed the ISPCONFIG's config.inc.php password but that wasn't enough. Ended up finding every ISPCONFIG-related file and modifying it. That fixed it all up except for the VHOST thing.

    The IP's are correct.

    IP ADDR SHOW:
    Code:
    2: eth2: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000
        link/ether 00:14:22:7c:08:8d brd ff:ff:ff:ff:ff:ff
        inet 66.118.142.78/24 brd 66.118.142.255 scope global eth2
        inet 66.118.142.79/24 brd 66.118.142.255 scope global secondary eth2:0
        inet 66.118.142.210/24 brd 66.118.142.255 scope global secondary eth2:1
        inet 66.118.142.211/24 brd 66.118.142.255 scope global secondary eth2:2
        inet 66.118.142.212/24 brd 66.118.142.255 scope global secondary eth2:3
        inet 66.118.142.213/24 brd 66.118.142.255 scope global secondary eth2:4
        inet 66.118.142.214/24 brd 66.118.142.255 scope global secondary eth2:5
        inet 66.118.142.215/24 brd 66.118.142.255 scope global secondary eth2:6
        inet 66.118.142.216/24 brd 66.118.142.255 scope global secondary eth2:7
        inet 66.118.142.217/24 brd 66.118.142.255 scope global secondary eth2:8
        inet6 fe80::214:22ff:fe7c:88d/64 scope link 
           valid_lft forever preferred_lft forever
    APACHE2 MESSAGE:
    /etc/init.d/apache2 restart
    Code:
    Restarting web server: apache2[Thu Dec 02 01:18:49 2010] [warn] NameVirtualHost 66.118.142.216:80 has no VirtualHosts
    [Thu Dec 02 01:18:49 2010] [warn] NameVirtualHost 66.118.142.216:443 has no VirtualHosts
    [Thu Dec 02 01:18:49 2010] [warn] NameVirtualHost 66.118.142.217:443 has no VirtualHosts
    [Thu Dec 02 01:18:49 2010] [warn] NameVirtualHost 66.118.142.210:443 has no VirtualHosts
    [Thu Dec 02 01:18:49 2010] [warn] NameVirtualHost 66.118.142.211:443 has no VirtualHosts
    [Thu Dec 02 01:18:49 2010] [warn] NameVirtualHost 66.118.142.214:443 has no VirtualHosts
    [Thu Dec 02 01:18:49 2010] [warn] NameVirtualHost 66.118.142.215:80 has no VirtualHosts
    [Thu Dec 02 01:18:49 2010] [warn] NameVirtualHost 66.118.142.215:443 has no VirtualHosts
    [Thu Dec 02 01:18:49 2010] [warn] NameVirtualHost 66.118.142.212:443 has no VirtualHosts
    [Thu Dec 02 01:18:49 2010] [warn] NameVirtualHost 66.118.142.213:443 has no VirtualHosts
     ... waiting [Thu Dec 02 01:18:50 2010] [warn] NameVirtualHost 66.118.142.216:80 has no VirtualHosts
    [Thu Dec 02 01:18:50 2010] [warn] NameVirtualHost 66.118.142.216:443 has no VirtualHosts
    [Thu Dec 02 01:18:50 2010] [warn] NameVirtualHost 66.118.142.217:443 has no VirtualHosts
    [Thu Dec 02 01:18:50 2010] [warn] NameVirtualHost 66.118.142.210:443 has no VirtualHosts
    [Thu Dec 02 01:18:50 2010] [warn] NameVirtualHost 66.118.142.211:443 has no VirtualHosts
    [Thu Dec 02 01:18:50 2010] [warn] NameVirtualHost 66.118.142.214:443 has no VirtualHosts
    [Thu Dec 02 01:18:50 2010] [warn] NameVirtualHost 66.118.142.215:80 has no VirtualHosts
    [Thu Dec 02 01:18:50 2010] [warn] NameVirtualHost 66.118.142.215:443 has no VirtualHosts
    [Thu Dec 02 01:18:50 2010] [warn] NameVirtualHost 66.118.142.212:443 has no VirtualHosts
    [Thu Dec 02 01:18:50 2010] [warn] NameVirtualHost 66.118.142.213:443 has no VirtualHosts
    Looking at that output, port 443 is SSL right? No site is using SSL. Then, there is a port 80 on IP 215. That IP has no sites.

    So, Apache2 seems to have this output where the specific HTTPS or HTTP is not in-use for that IP.

    The same message appears in ISPC's cronlog:
    Code:
    [Wed Dec 01 18:54:01 2010] [warn] NameVirtualHost 66.118.142.216:443 has no VirtualHosts
    [Wed Dec 01 18:54:01 2010] [warn] NameVirtualHost 66.118.142.217:443 has no VirtualHosts
    [Wed Dec 01 18:54:01 2010] [warn] NameVirtualHost 66.118.142.210:443 has no VirtualHosts
    [Wed Dec 01 18:54:01 2010] [warn] NameVirtualHost 66.118.142.211:443 has no VirtualHosts
    [Wed Dec 01 18:54:01 2010] [warn] NameVirtualHost 66.118.142.214:443 has no VirtualHosts
    [Wed Dec 01 18:54:01 2010] [warn] NameVirtualHost 66.118.142.215:80 has no VirtualHosts
    [Wed Dec 01 18:54:01 2010] [warn] NameVirtualHost 66.118.142.215:443 has no VirtualHosts
    [Wed Dec 01 18:54:01 2010] [warn] NameVirtualHost 66.118.142.212:443 has no VirtualHosts
    [Wed Dec 01 18:54:01 2010] [warn] NameVirtualHost 66.118.142.213:443 has no VirtualHosts
    [Wed Dec 01 18:54:03 2010] [warn] NameVirtualHost 66.118.142.216:80 has no VirtualHosts
    [Wed Dec 01 18:54:03 2010] [warn] NameVirtualHost 66.118.142.216:443 has no VirtualHosts
    [Wed Dec 01 18:54:03 2010] [warn] NameVirtualHost 66.118.142.217:443 has no VirtualHosts
    [Wed Dec 01 18:54:03 2010] [warn] NameVirtualHost 66.118.142.210:443 has no VirtualHosts
    [Wed Dec 01 18:54:03 2010] [warn] NameVirtualHost 66.118.142.211:443 has no VirtualHosts
    [Wed Dec 01 18:54:03 2010] [warn] NameVirtualHost 66.118.142.214:443 has no VirtualHosts
    [Wed Dec 01 18:54:03 2010] [warn] NameVirtualHost 66.118.142.215:80 has no VirtualHosts
    [Wed Dec 01 18:54:03 2010] [warn] NameVirtualHost 66.118.142.215:443 has no VirtualHosts
    [Wed Dec 01 18:54:03 2010] [warn] NameVirtualHost 66.118.142.212:443 has no VirtualHosts
    [Wed Dec 01 18:54:03 2010] [warn] NameVirtualHost 66.118.142.213:443 has no VirtualHosts
    DEBUG is turned on, and ispconfig.log shows:
    Code:
    02.12.2010-01:16 - DEBUG - No Updated records found, starting only the core.
    02.12.2010-01:16 - DEBUG - Remove Lock: /usr/local/ispconfig/server/temp/.ispconfig_lock
    02.12.2010-01:17 - DEBUG - Set Lock: /usr/local/ispconfig/server/temp/.ispconfig_lock
    02.12.2010-01:17 - DEBUG - No Updated records found, starting only the core.
    02.12.2010-01:17 - DEBUG - Remove Lock: /usr/local/ispconfig/server/temp/.ispconfig_lock
    02.12.2010-01:18 - DEBUG - Set Lock: /usr/local/ispconfig/server/temp/.ispconfig_lock
    02.12.2010-01:18 - DEBUG - No Updated records found, starting only the core.
    02.12.2010-01:18 - DEBUG - Remove Lock: /usr/local/ispconfig/server/temp/.ispconfig_lock
    02.12.2010-01:19 - DEBUG - Set Lock: /usr/local/ispconfig/server/temp/.ispconfig_lock
    02.12.2010-01:19 - DEBUG - No Updated records found, starting only the core.
    02.12.2010-01:19 - DEBUG - Remove Lock: /usr/local/ispconfig/server/temp/.ispconfig_lock
    02.12.2010-01:20 - DEBUG - Set Lock: /usr/local/ispconfig/server/temp/.ispconfig_lock  
    02.12.2010-01:20 - DEBUG - No Updated records found, starting only the core.               
    02.12.2010-01:20 - DEBUG - Remove Lock: /usr/local/ispconfig/server/temp/.ispconfig_lock   
    
    Prior to that, all updates were processed and I've changed a lot of settings to test it out. No other Jobqueue issues.

    Hmmmmmmm.
     
  20. crypted

    crypted Member

    Refer above.

    The hypothesis that the VHOST error relates to no SSL in-use is incorrect.

    I enabled SSL on a domain on the .214 IP. The same error exists after server.sh updated the files.

    Hmmmmmm....
     

Share This Page