Unable to enable ISPconfig

Discussion in 'General' started by Srikanth1261, May 25, 2021.

  1. Srikanth1261

    Srikanth1261 Member

    Code:
    root@ns369781:~# cat /etc/apt/sources.list
    #deb http://ftp.debian.org/debian/ buster main
    #deb-src http://ftp.debian.org/debian/ buster main
    
    #deb http://security.debian.org/debian-security buster/updates main
    
    #deb http://security.debian.org/ buster/updates main
    #deb-src http://security.debian.org/ buster/updates main
    
    # buster-updates, previously known as 'volatile'
    #deb http://ftp.debian.org/debian/ buster-updates main
    #deb-src http://ftp.debian.org/debian/ buster-updates main
    
    deb http://ftp.debian.org/debian/ buster main
    deb-src http://ftp.debian.org/debian/ buster main
    
    deb http://security.debian.org/debian-security buster/updates main
    
    deb http://security.debian.org/ buster/updates main
    deb-src http://security.debian.org/ buster/updates main
    
    # buster-updates, previously known as 'volatile'
    deb http://ftp.debian.org/debian/ buster-updates main
    deb-src http://ftp.debian.org/debian/ buster-updates main
    
    
    deb http://deb.debian.org/debian buster-backports main
    
    deb http://deb.debian.org/debian/ buster main contrib non-free
    deb-src http://deb.debian.org/debian/ buster main contrib non-free
    
    deb http://security.debian.org/debian-security buster/updates main contrib non-free
    deb-src http://security.debian.org/debian-security buster/updates main contrib non-free
    
     
  2. Srikanth1261

    Srikanth1261 Member

    Yes, I ran again as well
     
  3. Th0m

    Th0m ISPConfig Developer Staff Member ISPConfig Developer

    Just for sure and clarity, remove everything from this file and then put
    Code:
    deb http://deb.debian.org/debian/ buster main contrib non-free
    deb-src http://deb.debian.org/debian/ buster main contrib non-free
    
    deb http://security.debian.org/debian-security buster/updates main contrib non-free
    deb-src http://security.debian.org/debian-security buster/updates main contrib non-free
    in it. Then run apt update and apt upgrade.
     
  4. Srikanth1261

    Srikanth1261 Member

    root@ns369781:/etc/apache2/sites-available# cat /etc/apt/sources.list
    #deb http://ftp.debian.org/debian/ buster main
    #deb-src http://ftp.debian.org/debian/ buster main

    #deb http://security.debian.org/debian-security buster/updates main

    #deb http://security.debian.org/ buster/updates main
    #deb-src http://security.debian.org/ buster/updates main

    # buster-updates, previously known as 'volatile'
    #deb http://ftp.debian.org/debian/ buster-updates main
    #deb-src http://ftp.debian.org/debian/ buster-updates main

    deb http://ftp.debian.org/debian/ buster main
    deb-src http://ftp.debian.org/debian/ buster main

    deb http://security.debian.org/debian-security buster/updates main

    deb http://security.debian.org/ buster/updates main
    deb-src http://security.debian.org/ buster/updates main

    # buster-updates, previously known as 'volatile'
    deb http://ftp.debian.org/debian/ buster-updates main
    deb-src http://ftp.debian.org/debian/ buster-updates main


    deb http://deb.debian.org/debian buster-backports main

    deb http://deb.debian.org/debian/ buster main contrib non-free
    deb-src http://deb.debian.org/debian/ buster main contrib non-free

    deb http://security.debian.org/debian-security buster/updates main contrib non-free
    deb-src http://security.debian.org/debian-security buster/updates main contrib non-free
     
  5. Srikanth1261

    Srikanth1261 Member

    ok
     
  6. Srikanth1261

    Srikanth1261 Member

    Code:
    root@ns369781:/etc/apt# apt update && apt upgrade -y
    Trovato:1 http://deb.debian.org/debian buster InRelease
    Trovato:2 http://security.debian.org/debian-security buster/updates InRelease
    Lettura elenco dei pacchetti... Fatto
    Generazione albero delle dipendenze       
    Lettura informazioni sullo stato... Fatto
    1 pacchetto pu� essere aggiornato: eseguire "apt list --upgradable" per vederlo.
    Lettura elenco dei pacchetti... Fatto
    Generazione albero delle dipendenze       
    Lettura informazioni sullo stato... Fatto
    Calcolo dell'aggiornamento... Fatto
    I seguenti pacchetti sono stati installati automaticamente e non sono pi� richiesti:
      libtidy5deb1 libxmlrpc-epi0 libzip4
    Usare "apt autoremove" per rimuoverli.
    I seguenti pacchetti saranno aggiornati:
      postfix
    1 aggiornati, 0 installati, 0 da rimuovere e 0 non aggiornati.
    5 non completamente installati o rimossi.
    � necessario scaricare 0 B/1.577 kB di archivi.
    Dopo quest'operazione, verranno occupati 891 kB di spazio su disco.
    apt-listchanges: Lettura dei changelog...
    debconf: DbDriver "config": /var/cache/debconf/config.dat is locked by another process: Resource temporarily unavailable
    dpkg: attenzione: file con l'elenco dei file del pacchetto "intltool-debian" mancante, il pacchetto viene considerato senza alcun file attualmente installato
    (Lettura del database... 76959 file e directory attualmente installati.)
    Preparativi per estrarre .../postfix_3.4.14-0+deb10u1_amd64.deb...
    debconf: DbDriver "config": /var/cache/debconf/config.dat is locked by another process: Resource temporarily unavailable
    dpkg: errore nell'elaborare l'archivio /var/cache/apt/archives/postfix_3.4.14-0+deb10u1_amd64.deb (--unpack):
     il sottoprocesso nuovo pacchetto postfix script pre-installation ha restituito lo stato di errore 1
    Si sono verificati degli errori nell'elaborazione:
     /var/cache/apt/archives/postfix_3.4.14-0+deb10u1_amd64.deb
    E: Sub-process /usr/bin/dpkg returned an error code (1)
    root@ns369781:/etc/apt#
    
     
  7. till

    till Super Moderator Staff Member ISPConfig Developer

    I asked you above to update ISPConfig and you said you did that, but according to the test script, you did not update ISPConfig yet. Such an old version of ISPConfig can not work on Debian 10. Update ISPConfig to fix that.
     
  8. Th0m

    Th0m ISPConfig Developer Staff Member ISPConfig Developer

    You answered the last question, but did you do the other things I told you?
     
  9. Srikanth1261

    Srikanth1261 Member

    Hi,
    As per your instructions, I have upgraded to 3.2. When I open in the browser, I am getting 500 internal error. Can you please help me?
     
  10. till

    till Super Moderator Staff Member ISPConfig Developer

    Take a lokk into the apache error.log file to find out why. Most likely, you missed installing a PHP module or something like that.
     
  11. Srikanth1261

    Srikanth1261 Member

    Yes, its related to PHP. Actually during the upgradation of debian 7 to debian 10, PHP also upgraded. Its 7.3.
    Code:
    root@ns369781:/var/log/apache2# tail -f error.log
    [Wed May 26 09:17:55.899703 2021] [core:notice] [pid 30303] AH00094: Command line: '/usr/sbin/apache2'
    /var/www/php-fcgi-scripts/web48/.php-fcgi-starter: line 12: /usr/bin/php-cgi: No such file or directory
    /var/www/php-fcgi-scripts/web48/.php-fcgi-starter: line 12: /usr/bin/php-cgi: No such file or directory
    /var/www/php-fcgi-scripts/web49/.php-fcgi-starter: line 12: /usr/bin/php-cgi: No such file or directory
    /var/www/php-fcgi-scripts/web49/.php-fcgi-starter: line 12: /usr/bin/php-cgi: No such file or directory
    /var/www/php-fcgi-scripts/web49/.php-fcgi-starter: line 12: /usr/bin/php-cgi: No such file or directory
    .php-fcgi-starter: line 6: /usr/bin/php-cgi: No such file or directory
    [Wed May 26 09:19:29.074456 2021] [fcgid:warn] [pid 30392] (104)Connection reset by peer: [client 175.101.36.180:57712] mod_fcgid: error reading data from FastCGI server
    [Wed May 26 09:19:29.074489 2021] [core:error] [pid 30392] [client 175.101.36.180:57712] End of script output before headers: index.php
    /var/www/php-fcgi-scripts/web49/.php-fcgi-starter: line 12: /usr/bin/php-cgi: No such file or directory
    /var/www/php-fcgi-scripts/web31/.php-fcgi-starter: line 12: /usr/bin/php-cgi: No such file or directory
    
     
  12. Srikanth1261

    Srikanth1261 Member

    Code:
    root@ns369781:/var/log/apache2# service php-fpm status
    * php5-fpm.service - LSB: starts php5-fpm
       Loaded: loaded (/etc/init.d/php5-fpm; generated)
       Active: active (running) since Wed 2021-05-26 09:17:17 CEST; 4s ago
         Docs: man:systemd-sysv-generator(8)
      Process: 2323 ExecStart=/etc/init.d/php5-fpm start (code=exited, status=0/SUCCESS)
       Memory: 9.7M
       CGroup: /system.slice/php5-fpm.service
               |-2408 php-fpm: master process (/etc/php5/fpm/php-fpm.conf)
               |-2409 php-fpm: pool www
               `-2410 php-fpm: pool www
    
    
     
  13. Srikanth1261

    Srikanth1261 Member

    root@ns369781:/var/log/apache2# service php7.3-fpm status
    * php7.3-fpm.service - The PHP 7.3 FastCGI Process Manager
    Loaded: loaded (/lib/systemd/system/php7.3-fpm.service; enabled; vendor preset: enabled)
    Active: active (running) since Wed 2021-05-26 08:53:36 CEST; 28min ago
    Docs: man:php-fpm7.3(8)
    Main PID: 626 (php-fpm7.3)
    Status: "Processes active: 0, idle: 2, Requests: 0, slow: 0, Traffic: 0req/sec"
    Memory: 9.1M
    CGroup: /system.slice/php7.3-fpm.service
    |-626 php-fpm: master process (/etc/php/7.3/fpm/php-fpm.conf)
    |-681 php-fpm: pool www
    `-682 php-fpm: pool www

    mag 26 08:53:36 ns369781.ovh.net systemd[1]: Starting The PHP 7.3 FastCGI Process Manager...
    mag 26 08:53:36 ns369781.ovh.net systemd[1]: Started The PHP 7.3 FastCGI Process Manager.
    root@ns369781:/var/log/apache2#
     
  14. Srikanth1261

    Srikanth1261 Member

    root@ns369781:/var/log/apache2# a2dismod php5
    ERROR: Module php5 does not exist!
    root@ns369781:/var/log/apache2# a2dismod php
    ERROR: Module php does not exist!
    root@ns369781:/var/log/apache2#
     
  15. Srikanth1261

    Srikanth1261 Member

    root@ns369781:/var/log/apache2# a2enmod php7.3
    ERROR: Module php7.3 does not exist!
    root@ns369781:/var/log/apache2#
     
  16. till

    till Super Moderator Staff Member ISPConfig Developer

    Go trough the apache Debian 10 perfect server guide and run each command from the guide to install the missing packages, that#s what I suggested already in #2 but according to your last posts, the packages were still not installed yet. Then run the ispconfig update again.
     
  17. Srikanth1261

    Srikanth1261 Member

    Code:
    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
          AddHandler fcgid-script .php
            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>
    
     
  18. Srikanth1261

    Srikanth1261 Member

    OK. I will do that again
     
  19. Srikanth1261

    Srikanth1261 Member

    now it is successful we are unable to open some sites. getting 403 error. Regarding roundcube,phpmyadmin do i need to install or ugrade again?
     
  20. Srikanth1261

    Srikanth1261 Member

    I am unable to open roundcube, phpmyadmin. Some are getting 403 errors.
     

Share This Page