• Resolved alativitys

    (@alativitys)


    Good afternoon, there was a problem: the plugin seems to work, but only partially, updates, progress bars, and much more, like uptime, don’t work, while there are no errors in the browser console, the necessary functions are active, the site is on my personal VDS, and therefore I can’t figure out what’s wrong.

    Screen

    Thanks in advance, I look forward to help)

Viewing 14 replies - 1 through 14 (of 14 total)
  • Plugin Author iSaumya

    (@isaumya)

    Alright, can you check that if there are any error on the PHP error login? Also, you are running on a Linux server, right?

    Thread Starter alativitys

    (@alativitys)

    Yes, Debian 10 Buster, what kind of bugs should I find? I see some errors, but they are not related to the plugin (in my opinion, although I may be wrong)

    • This reply was modified 4 years, 7 months ago by alativitys.
    Thread Starter alativitys

    (@alativitys)

    failed to make connection to backend: httpd-UDS

    FCGI: attempt to connect to Unix domain socket

    [error] 6145#6145: *1173 connect() failed (110: Connection timed out) while connecting to upstr

    Plugin Author iSaumya

    (@isaumya)

    Then can you check if you have shell_exec() enabled in your PHP & PHP can access the server files in /proc/meminfo, /proc/cpuinfo etc. Basically /proc/*.

    • This reply was modified 4 years, 7 months ago by iSaumya.
    Plugin Author iSaumya

    (@isaumya)

    failed to make connection to backend: httpd-UDS

    FCGI: attempt to connect to Unix domain socket

    [error] 6145#6145: *1173 connect() failed (110: Connection timed out) while connecting to upstr

    – These are not coming from this plugin.

    Thread Starter alativitys

    (@alativitys)

    I tried to test with the function:

    if(function_exists(‘shell_exec’)) {
    echo “exec is enabled”;
    }

    It works, but how do I check the rest?

    Plugin Author iSaumya

    (@isaumya)

    @alativitys don’t try like that. That doesn’t give the whole story like if shell_exec() can actually access files under /proc/*. Instead, try this:

    <?php
    if(function_exists(‘shell_exec’)) {
      echo shell_exec('cat /proc/cpuinfo |grep "physical id" | sort | uniq | wc -l');
    }

    Let me know what you see.

    • This reply was modified 4 years, 7 months ago by iSaumya.
    Thread Starter alativitys

    (@alativitys)

    Not Work

    Log:

    [Sun Aug 02 15:12:53.922061 2020] [proxy_fcgi:error] [pid 1770] [client 89.113.137.215:0] AH01071: Got error ‘PHP message: PHP Warning: Use of undefined constant \xe2\x80\x98shell_exec\xe2\x80\x99 – assumed ‘\xe2\x80\x98shell_exec\xe2\x80\x99′ (this will throw an Error in a future version of PHP) in /home/admin/web/alativity.design/public_html/alativity/tester.php on line 2’
    [Sun Aug 02 15:13:01.098775 2020] [proxy_fcgi:error] [pid 18240] [client 89.113.137.215:0] AH01071: Got error ‘PHP message: PHP Warning: Use of undefined constant \xe2\x80\x98shell_exec\xe2\x80\x99 – assumed ‘\xe2\x80\x98shell_exec\xe2\x80\x99′ (this will throw an Error in a future version of PHP) in /home/admin/web/alativity.design/public_html/alativity/tester.php on line 2’

    Plugin Author iSaumya

    (@isaumya)

    Hi,
    I have no idea where the warning is coming from as there are not constant. It’s simply just an Unix command wrapped inside shell_exec(). If you have access to the server terminal, you can just run cat /proc/cpuinfo |grep "physical id" | sort | uniq | wc -l and see the result.

    Anyways then the issue is that the PHP process cannot access /proc/* files. This is not a plugin issue but a server config issue. You need to give permission so that PHP can access /proc/*.

    Thread Starter alativitys

    (@alativitys)

    Yes, I get a response to this command: 6

    Thread Starter alativitys

    (@alativitys)

    How can I give PHP the required permissions? By the way, I think it will be correct to say that I am using the Apache2 + NGIX + PHP-FMP bundle. Control Panel – Hestia CP

    Plugin Author iSaumya

    (@isaumya)

    Yes, I get a response to this command: 6

    – Thats your CPU core count

    How can I give PHP the required permissions? By the way, I think it will be correct to say that I am using the Apache2 + NGIX + PHP-FMP bundle. Control Panel – Hestia CP

    – Unfortunately, I don’t think I am the right person to answer that as this is a server admin question and I don’t think I am qualified enough to answer it. You can either ask other server admins or post at https://serverfault.com/ or https://superuser.com/

    Thread Starter alativitys

    (@alativitys)

    I found the problem, it is in the plugin – Health Check & Troubleshooting, after disabling it, everything becomes normal and everything works

    Plugin Author iSaumya

    (@isaumya)

    Hi @alativitys,
    Glad to know that the problem has been resolved. ??

Viewing 14 replies - 1 through 14 (of 14 total)
  • The topic ‘Not Work’ is closed to new replies.