Lost access to ISPConfig Panel

Discussion in 'Installation/Configuration' started by macciuk, Sep 1, 2014.

  1. macciuk

    macciuk New Member

    Hi, I have lost access to ISPConfig panel - it means it was registered under, let's say panel.domain.com - and now, when I am trying to enter this site address like before - got nothing!:
    It works!

    This is the default web page for this server.

    The web server software is running but no content has been added, yet.

    Do you Guys have any idea how to debug this? Where should I look in a first place?

    Many thanks!
     
    Last edited: Sep 1, 2014
  2. pedro2061

    pedro2061 New Member

    try called by the ip address :8080
     
  3. macciuk

    macciuk New Member

    tried already - nothing.
    Error code: ERR_CONNECTION_REFUSED
     
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    take a look in the ispconfig vhost file, you should be able to see there under which port and ip / domain it is reachable.
     
  5. macciuk

    macciuk New Member

    I think i have found it...

    does it seems to be broken?

    I will just add information, that when I enter address that last time it worked for ISPConfig panel (panel.domain.com) i have the html file in result from the path below:
    PHP:
    ######################################################
    # This virtual host contains the configuration
    # for the ISPConfig controlpanel
    ######################################################

    # Listen 80
    NameVirtualHost *:80

    <VirtualHost _default_:80>
      
    ServerAdmin webmaster@localhost

      
    <FilesMatch "\.ph(p3?|tml)$">
        
    SetHandler None
      
    </FilesMatch>

      <
    IfModule mod_fcgid.c>
        
    DocumentRoot /var/www/ispconfig/
        
    SuexecUserGroup ispconfig ispconfig
        
    <Directory /var/www/ispconfig/>
          
    Options -Indexes +FollowSymLinks +MultiViews +ExecCGI
          AllowOverride AuthConfig Indexes Limit Options FileInfo
              
    <FilesMatch "\.php$">
                      
    SetHandler fcgid-script
              
    </FilesMatch>
          
    FCGIWrapper /var/www/php-fcgi-scripts/ispconfig/.php-fcgi-starter .php
                Order allow
    ,deny
          Allow from all
                  
    </Directory>
        
    IPCCommTimeout  7200
            MaxRequestLen 15728640
      
    </IfModule>

      <
    IfModule mpm_itk_module>
        
    DocumentRoot /usr/local/ispconfig/interface/web/
            
    AssignUserId ispconfig ispconfig
        AddType application
    /x-httpd-php .php
        
    <Directory /usr/local/ispconfig/interface/web>
          
    # php_admin_value open_basedir "/usr/local/ispconfig/interface:/usr/share:/tmp"
          
    Options +FollowSymLinks
          AllowOverride None
                Order allow
    ,deny
          Allow from all
                      php_value magic_quotes_gpc        0
     
    </Directory>
      </
    IfModule>

      
    # ErrorLog /var/log/apache2/error.log
      # CustomLog /var/log/apache2/access.log combined
      
    ServerSignature Off

      
    <IfModule mod_security2.c>
        
    SecRuleEngine Off
      
    </IfModule>

      
    # SSL Configuration
      
    SSLEngine On
      SSLCertificateFile 
    /usr/local/ispconfig/interface/ssl/ispserver.crt
      SSLCertificateKeyFile 
    /usr/local/ispconfig/interface/ssl/ispserver.key
      
    #SSLCACertificateFile /usr/local/ispconfig/interface/ssl/ispserver.bundle

    </VirtualHost>

    <
    Directory /var/www/php-cgi-scripts>
        
    AllowOverride None
                Order Deny
    ,Allow
        Deny from all
            
    </Directory>

    <
    Directory /var/www/php-fcgi-scripts>
        
    AllowOverride None
            Order Deny
    ,Allow
        Deny from all
            
    </Directory>
     
    Last edited: Sep 1, 2014
  6. till

    till Super Moderator Staff Member ISPConfig Developer

    Replace _default_ with the IP address of your server and restart apache.
     
  7. macciuk

    macciuk New Member

    I gained the access to the panel -however - I have lost access to all of my sites ...got this msg: This is strange as I haven't change any port... and still tried to access on http..
    Bad Request

    Your browser sent a request that this server could not understand.
    Reason: You're speaking plain HTTP to an SSL-enabled server port.
    Instead use the HTTPS scheme to access this URL, please.
     
  8. macciuk

    macciuk New Member

    Gents,

    I have solved the issue - and also I got deep to the root cause of it - I think it may be helpful for anyone...

    Root cause is the upgrade to the newest version: ISPConfig Version: 3.0.5.4p3

    It seems that file /etc/apache2/sites-enabled/000-ispconfig.vhost was overwritten by this upgrade. I could not locate it - as I remember that panel was working fine after the upgrade.. of course to the first apache server restart. Since that time problem happens - now I realized that but I thought i done something else during my work on the server.

    Anyway, I recovered my last backup of Virtual Machine and have found that this file (beginning of it) looks like below:
    PHP:
    ######################################################
    # This virtual host contains the configuration
    # for the ISPConfig controlpanel
    ######################################################

    # Listen 80
    #NameVirtualHost *:80

    #<VirtualHost _default_:80>
    <VirtualHost *:80>

            
    ServerName panel.domain.com
            ServerAdmin webmaster
    @localhost

      
    <FilesMatch "\.ph(p3?|tml)$">
        
    SetHandler None
      
    </FilesMatch>
    if you compare it to the above, you can clearly notice that it was overwritten - as in the backup i have the original statements hashed.

    This can be closed now. Till - many thanks for the info of vhost files :) i have completely forgot about it!
     
    Last edited: Sep 1, 2014

Share This Page