Can't acces to control panel after upgrade (is here i should post?)

Discussion in 'ISPConfig 3 Priority Support' started by mashbe, Sep 2, 2014.

  1. mashbe

    mashbe New Member

    Hi all's,
    After upgrading to ISPConfig version is 3.0.5.4p3
    when i try ton connect to https://www.mash-france.net:8080 like before i have this : ERR_SSL_PROTOCOL_ERROR.

    i tryed all what i find in the forum but for now i didnt know what to do :(
    apps.vhost


    PHP:
    ######################################################
    # This virtual host contains the configuration
    # for the ISPConfig apps vhost
    ######################################################

     
    Listen 8081
    # NameVirtualHost *:8081

    <VirtualHost _default_:8081>
      
    ServerAdmin webmaster@localhost


      
    <IfModule mod_fcgid.c>
        
    DocumentRoot /var/www/apps
        SuexecUserGroup ispapps ispapps
        
    <Directory /var/www/apps>
          
    Options Indexes FollowSymLinks MultiViews +ExecCGI
          AllowOverride AuthConfig Indexes Limit Options FileInfo
          AddHandler fcgid
    -script .php
          FCGIWrapper 
    /var/www/php-fcgi-scripts/apps/.php-fcgi-starter .php
          Order allow
    ,deny
          Allow from all
        
    </Directory>
      </
    IfModule>

      <
    IfModule mod_php5.c>
        
    DocumentRoot /var/www/apps
        AddType application
    /x-httpd-php .php
        
    <Directory /var/www/apps>
          
    Options FollowSymLinks
          AllowOverride None
          Order allow
    ,deny
          Allow from all
        
    </Directory>
      </
    IfModule>

      
    ServerSignature Off

    </VirtualHost>
    default.conf


    PHP:
    <VirtualHost *:80>
            
    ServerAdmin webmaster@localhost

            DocumentRoot 
    /var/www/

            <
    Directory /var/www/>
                    
    AllowOverride None
                    Order allow
    ,deny
                    allow from all
                   Options 
    +FollowSymLinks +SymLinksIfOwnerMatch
            
    </Directory>
             
    ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
            <
    Directory "/usr/lib/cgi-bin">
                    
    AllowOverride None
                    Options 
    +ExecCGI -MultiViews +SymLinksIfOwnerMatch
                    Order allow
    ,deny
                    Allow from all
            
    </Directory>
    <
    Directory /var/www/>
        
    AllowOverride all
    </Directory>
    ErrorLog ${APACHE_LOG_DIR}/error.log

    LogLevel warn

    CustomLog 
    ${APACHE_LOG_DIR}/access.log combined
    </VirtualHost>

    Ispconfig.vhost


    PHP:
    <VirtualHost *:80>
            
    ServerAdmin webmaster@localhost

            DocumentRoot 
    /var/www/

            <
    Directory /var/www/>
                    
    AllowOverride None
                    Order allow
    ,deny
                    allow from all
                   Options 
    +FollowSymLinks +SymLinksIfOwnerMatch
            
    </Directory>
             
    ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
            <
    Directory "/usr/lib/cgi-bin">
                    
    AllowOverride None
                    Options 
    +ExecCGI -MultiViews +SymLinksIfOwnerMatch
                    Order allow
    ,deny
                    Allow from all
            
    </Directory>
    <
    Directory /var/www/>
        
    AllowOverride all
    </Directory>
    ErrorLog ${APACHE_LOG_DIR}/error.log

    LogLevel warn

    CustomLog 
    ${APACHE_LOG_DIR}/access.log combined
    </VirtualHost>
    ispconfig.vhost
    PHP:
    ######################################################
    # This virtual host contains the configuration
    # for the ISPConfig controlpanel
    ######################################################

     
    Listen 8080
    NameVirtualHost 
    *:8080

    <VirtualHost _default_:8080>
      
    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
              
    Require all granted
                  
    </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
              
    Require all granted
                      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
                    
    Require all denied
            
    </Directory>

    <
    Directory /var/www/php-fcgi-scripts>
        
    AllowOverride None
            
    Require all denied
      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
                    
    Require all denied
            
    </Directory>

    <
    Directory /var/www/php-fcgi-scripts>
        
    AllowOverride None
            
    Require all denied
            
    </Directory>
    ssl.conf

    PHP:
    <VirtualHost *:443>
            
    ServerAdmin webmaster@localhost

            SSLEngine On

            SSLCertificateFile 
    /etc/ssl/private/mash-france.net.crt
            SSLCertificateKeyFile 
    /etc/ssl/private/mash-france.net.key
            SSLCertificateChainFile 
    /etc/ssl/private/sub.class1.server.ca.pem
            SSLCACertificateFile 
    /etc/ssl/private/ca.pem

            DocumentRoot 
    /var/www/

            <
    Directory /var/www/>
                    
    AllowOverride None
                    Order allow
    ,deny
                    allow from all
                   Options 
    +FollowSymLinks +SymLinksIfOwnerMatch
            
    </Directory>
             
    ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
            <
    Directory "/usr/lib/cgi-bin">
                    
    AllowOverride None
                    Options 
    +ExecCGI -MultiViews +SymLinksIfOwnerMatch
                    Order allow
    ,deny
                    Allow from all
            
    </Directory>
    <
    Directory /var/www/>
        
    AllowOverride all
    </Directory>
    ErrorLog ${APACHE_LOG_DIR}/error.log

    LogLevel warn

    CustomLog 
    ${APACHE_LOG_DIR}/access.log combined
    </VirtualHost>
    the server worng okay but no control panel :(

    thx for your help
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    Your problem is that you run already a different software on port 8080, currently you run tomcat there. you cant use the same port for two dameons at the same time, so you can either run ispconfig on port 8080 or tomcat but not both. The easiets way will be to change the ispconfig port to a different free port and then restart apache.
     
  3. mashbe

    mashbe New Member

    Hi Till, thanks for your post, i transforme
    i transform ispconfig.vhost to :

    PHP:
    ######################################################
    # This virtual host contains the configuration
    # for the ISPConfig controlpanel
    ######################################################

     
    Listen 8000
    NameVirtualHost 
    *:8000

    <VirtualHost _default_:8000>
      
    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
              
    Require all granted
                  
    </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
              
    Require all granted
                      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>
    </
    VirtualHost>

    <
    Directory /var/www/php-cgi-scripts>
        
    AllowOverride None
                    
    Require all denied
            
    </Directory>

    <
    Directory /var/www/php-fcgi-scripts>
        
    AllowOverride None
            
    Require all denied
            
    </Directory>


      
    # 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
                    
    Require all denied
            
    </Directory>

    <
    Directory /var/www/php-fcgi-scripts>
        
    AllowOverride None
            
    Require all denied
            
    </Directory>
    but i have connection refused
    I remove tomcat6 put the configuration back to 8080 same connection refused
     
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    Have you opened port 8000 in your firewall? An check with:

    netstat -ntap

    that apache is really listening on port 8000
     
  5. mashbe

    mashbe New Member

    that the matter since the control panel disapear i see nobody listen 8080

    ufw is inactive :'( i dont really understand what i have do
     
  6. till

    till Super Moderator Staff Member ISPConfig Developer

    Edit the file /etc/apache2/sites-available/ispconfig.vhost and change these 3 lines:

    Listen 8080
    NameVirtualHost *:8080

    <VirtualHost _default_:8080>

    to use a port that is not in use on your server. Then restart apache.
     
  7. mashbe

    mashbe New Member

    i change to 90 for test
    netstat dont give the port 90 listen after apache restart
     
  8. mashbe

    mashbe New Member

    I founddddddddddddddd

    hi till,
    I found why (am not sure it's very nice what i do but it works) but i will try to explain it for other.
    I see that i can change the port in ispconfig.vhost but never apache listen this port.
    So i add this in apache2.conf

    PHP:
    IncludeOptional sites-enabled/*.vhost
    add a "+" character before all options missing in apps.vhost
    and in ispconfig.vhost

    PHP:
          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
    [COLOR="Magenta"]Allow from all
    #         Require all granted[/COLOR]
                  
    </Directory>
     
  9. till

    till Super Moderator Staff Member ISPConfig Developer

    Umm, ok.so you ust have replaced apache2.conf since you installed ispconfig as this line gets added by the ispconfig installer autiamtically at install time and it must have been there as your server worked before.

    The + character is not missing, its fine without +. But if the Include lines was missing there might have been other nescessary settings been missing in your apache config, please see the perfect server guide that matches the installed OS version and compare the installed and enabled modules and apache2.conf file changes with that guide.
     
  10. mashbe

    mashbe New Member

    Hi Till,
    have read all,
    I think when i do the update of apache he put a new apache2.conf

    Have read the perfect server severall didnt find the modification to do in,
    I think the installer do it but no the update

    Thx at all for your help i go sleep for the moment :)
     

Share This Page