• Support
  • PROBLEMS IN PHP 7.4 WEBSITE WITH SSH2 CONNECTION

Good afternoon, I'm having a problem with a site in php version 7.4, this site connects to a server (VPS) where I add users and vendors, I'm not getting additional ones... I believe it is some extension or even ssh2, I have the same site installed in cpanel, and it works normally. Can someone help me find the error? I will leave the video demonstrating the error.

in aapanel as in the image it does not load


same site hosted on cpanel. it should look like in the picture

the site uses the following php extensions
pdo
zip mysqli
pdo_mysql
ssh2
pdo_sqlite
ioncube_loader
http
json
sockets

    aaP_matheusbalbo10
    Hi, Panel doesn't provide this extension, you can install it with command:
    replace 74 with your php version
    version=74

    Make sure the libssh2 library and development packages are installed on your system. On Ubuntu or Debian, you can install it with:
    sudo apt-get install libssh2-1-dev

    On CentOS or Red Hat Enterprise Linux, you can install with the following command:
    sudo yum install libssh2-devel

    Download the ssh2 extension source code. You can download the latest version of the ssh2 extension source code from the PECL website:
    wget https://pecl.php.net/get/ssh2

    Unzip the source code and enter the directory:
    tar -zxvf ssh2
    cd ssh2-1.4

    Use phpize to generate configuration files and Makefile:
    /www/server/php/version/bin/phpize

    Configure the extension:
    ./configure --with-ssh2

    Compile the extension:
    make

    Install the extension:
    sudo make install

    Enable ssh2 extension in php.ini configuration file. Open the php.ini file and add the following lines:
    extension=ssh2.so

    Restart PHP for the changes to take effect.

    aaP_matheusbalbo10
    Hi, please provide useful results

    1. Check whether there is an error in the installation process
    2. Whether to restart php and check whether there is a configuration error, and check phpinfo information at the same time

    [Sun Jun 25 14:35:43.587440 2023] [ssl:warn] [pid 3916:tid 280827632033808] AH01909: SSL.web.servidorcass.tk:443:0 server certificate does NOT include an ID which matches the server name
    [Sun Jun 25 14:36:04.017884 2023] [ssl:warn] [pid 3916:tid 280827632033808] AH01909: SSL.web.servidorcass.tk:443:0 server certificate does NOT include an ID which matches the server name
    [Sun Jun 25 14:36:09.422527 2023] [ssl:warn] [pid 3916:tid 280827632033808] AH01909: SSL.web.servidorcass.tk:443:0 server certificate does NOT include an ID which matches the server name
    [Sun Jun 25 15:24:10.498860 2023] [ssl:warn] [pid 3916:tid 280827632033808] AH01909: SSL.web.servidorcass.tk:443:0 server certificate does NOT include an ID which matches the server name
    [Sun Jun 25 19:38:18.193138 2023] [ssl:warn] [pid 3916:tid 280827632033808] AH01909: SSL.web.servidorcass.tk:443:0 server certificate does NOT include an ID which matches the server name
    [Sun Jun 25 19:38:22.078017 2023] [ssl:warn] [pid 3916:tid 280827632033808] AH01909: SSL.web.servidorcass.tk:443:0 server certificate does NOT include an ID which matches the server name
    [Tue Jun 27 00:06:45.277431 2023] [ssl:warn] [pid 3916:tid 280827632033808] AH01909: SSL.web.servidorcass.tk:443:0 server certificate does NOT include an ID which matches the server name
    [Tue Jun 27 00:06:50.881841 2023] [ssl:warn] [pid 3916:tid 280827632033808] AH01909: SSL.web.servidorcass.tk:443:0 server certificate does NOT include an ID which matches the server name
    [Tue Jun 27 00:10:22.085724 2023] [proxy_fcgi:error] [pid 19105:tid 280827486503312] [remote 172.71.238.97:44890] AH01067: Failed to read FastCGI header, referer: https://web.servidorcass.tk/admin/home.php?page=servidor/adicionar
    [Tue Jun 27 00:15:14.788038 2023] [ssl:warn] [pid 3916:tid 280827632033808] AH01909: SSL.web.servidorcass.tk:443:0 server certificate does NOT include an ID which matches the server name
    [Tue Jun 27 00:15:29.275396 2023] [ssl:warn] [pid 3916:tid 280827632033808] AH01909: SSL.web.servidorcass.tk:443:0 server certificate does NOT include an ID which matches the server name
    [Tue Jun 27 00:15:46.664396 2023] [ssl:warn] [pid 19834:tid 281436944035856] AH01909: SSL.web.servidorcass.tk:443:0 server certificate does NOT include an ID which matches the server name
    [Tue Jun 27 00:15:46.671878 2023] [ssl:warn] [pid 19835:tid 281436944035856] AH01909: SSL.web.servidorcass.tk:443:0 server certificate does NOT include an ID which matches the server name
    [Tue Jun 27 00:15:47.220963 2023] [ssl:warn] [pid 19835:tid 281436944035856] AH01909: SSL.web.servidorcass.tk:443:0 server certificate does NOT include an ID which matches the server name
    [Tue Jun 27 01:19:41.845940 2023] [proxy_fcgi:error] [pid 20164:tid 281436815200656] [remote 172.71.6.110:45364] AH01071: Got error 'PHP message: PHP Fatal error: Uncaught Error: Call to a member function prepare() on null in /www/wwwroot/web.servidorcass.tk/pages/system/seguranca.php:119\nStack trace:\n#0 /www/wwwroot/web.servidorcass.tk/admin/validacao.php(26): validaUsuario()\n#1 /www/wwwroot/web.servidorcass.tk/logando.php(6): require_once('/www/wwwroot/we...')\n#2 {main}\n thrown in /www/wwwroot/web.servidorcass.tk/pages/system/seguranca.php on line 119', referer: https://web.servidorcass.tk/
    [Tue Jun 27 10:51:40.829947 2023] [proxy_fcgi:error] [pid 14160:tid 281436756451728] [remote 172.71.16.153:14908] AH01071: Got error 'PHP message: PHP Fatal error: Uncaught Error: Call to a member function prepare() on null in /www/wwwroot/web.servidorcass.tk/pages/system/seguranca.php:119\nStack trace:\n#0 /www/wwwroot/web.servidorcass.tk/admin/validacao.php(26): validaUsuario()\n#1 /www/wwwroot/web.servidorcass.tk/logando.php(6): require_once('/www/wwwroot/we...')\n#2 {main}\n thrown in /www/wwwroot/web.servidorcass.tk/pages/system/seguranca.php on line 119', referer: https://web.servidorcass.tk/
    [Tue Jun 27 10:51:41.383050 2023] [proxy_fcgi:error] [pid 14160:tid 281436739666320] [remote 172.71.16.153:14908] AH01071: Got error 'PHP message: PHP Fatal error: Uncaught Error: Call to a member function prepare() on null in /www/wwwroot/web.servidorcass.tk/pages/system/seguranca.php:119\nStack trace:\n#0 /www/wwwroot/web.servidorcass.tk/admin/validacao.php(26): validaUsuario()\n#1 /www/wwwroot/web.servidorcass.tk/logando.php(6): require_once('/www/wwwroot/we...')\n#2 {main}\n thrown in /www/wwwroot/web.servidorcass.tk/pages/system/seguranca.php on line 119', referer: https://web.servidorcass.tk/
    [Tue Jun 27 11:08:29.046376 2023] [proxy_fcgi:error] [pid 14232:tid 281436831986064] [remote 172.71.238.115:60144] AH01071: Got error 'PHP message: PHP Fatal error: Uncaught Error: Call to a member function prepare() on null in /www/wwwroot/web.servidorcass.tk/pages/system/seguranca.php:119\nStack trace:\n#0 /www/wwwroot/web.servidorcass.tk/admin/validacao.php(26): validaUsuario()\n#1 /www/wwwroot/web.servidorcass.tk/logando.php(6): require_once('/www/wwwroot/we...')\n#2 {main}\n thrown in /www/wwwroot/web.servidorcass.tk/pages/system/seguranca.php on line 119', referer: https://web.servidorcass.tk/
    [Tue Jun 27 11:10:27.939079 2023] [proxy_fcgi:error] [pid 14160:tid 281436823593360] [remote 172.71.238.15:13494] AH01071: Got error 'PHP message: PHP Fatal error: Uncaught Error: Call to a member function prepare() on null in /www/wwwroot/web.servidorcass.tk/pages/system/seguranca.php:119\nStack trace:\n#0 /www/wwwroot/web.servidorcass.tk/admin/validacao.php(26): validaUsuario()\n#1 /www/wwwroot/web.servidorcass.tk/logando.php(6): require_once('/www/wwwroot/we...')\n#2 {main}\n thrown in /www/wwwroot/web.servidorcass.tk/pages/system/seguranca.php on line 119', referer: https://web.servidorcass.tk/
    [Tue Jun 27 11:18:27.744147 2023] [proxy_fcgi:error] [pid 14160:tid 281436781629840] [remote 172.71.10.221:18682] AH01071: Got error 'PHP message: PHP Fatal error: Uncaught PDOException: SQLSTATE[42S02]: Base table or view not found: 1146 Table 'web.admin' doesn't exist in /www/wwwroot/web.servidorcass.tk/pages/system/seguranca.php:120\nStack trace:\n#0 /www/wwwroot/web.servidorcass.tk/pages/system/seguranca.php(120): PDOStatement->execute()\n#1 /www/wwwroot/web.servidorcass.tk/admin/validacao.php(26): validaUsuario()\n#2 /www/wwwroot/web.servidorcass.tk/logando.php(6): require_once('/www/wwwroot/we...')\n#3 {main}\n thrown in /www/wwwroot/web.servidorcass.tk/pages/system/seguranca.php on line 120', referer: https://web.servidorcass.tk/
    [Tue Jun 27 11:29:58.419431 2023] [proxy_fcgi:error] [pid 14622:tid 281436823593360] [remote 172.71.16.171:16482] AH01071: Got error 'PHP message: PHP Fatal error: Uncaught PDOException: SQLSTATE[42S02]: Base table or view not found: 1146 Table 'web.admin' doesn't exist in /www/wwwroot/web.servidorcass.tk/pages/system/seguranca.php:120\nStack trace:\n#0 /www/wwwroot/web.servidorcass.tk/pages/system/seguranca.php(120): PDOStatement->execute()\n#1 /www/wwwroot/web.servidorcass.tk/admin/validacao.php(26): validaUsuario()\n#2 /www/wwwroot/web.servidorcass.tk/logando.php(6): require_once('/www/wwwroot/we...')\n#3 {main}\n thrown in /www/wwwroot/web.servidorcass.tk/pages/system/seguranca.php on line 120', referer: https://web.servidorcass.tk/
    [Tue Jun 27 14:40:34.863938 2023] [ssl:warn] [pid 19835:tid 281436944035856] AH01909: SSL.web.servidorcass.tk:443:0 server certificate does NOT include an ID which matches the server name
    [Wed Jun 28 04:42:07.259571 2023] [ssl:warn] [pid 19835:tid 281436944035856] AH01909: SSL.web.servidorcass.tk:443:0 server certificate does NOT include an ID which matches the server name

      It's normal yes, how can I talk to you? Or would you personally see it for me? any email?

      11 days later
      11 days later

      the site requires the following extensions

      pdo
      zip
      mysqli
      pdo_mysql
      ssh2
      pdo_sqlite
      ioncube_loader
      http
      json
      socket