WordPress auto update error

Discussion in 'Server Operation' started by marbleck24, Mar 20, 2023.

  1. marbleck24

    marbleck24 New Member

    Hello,
    I have an error on WordPress on my ISPconfig server.
    When I want to update plugins or etc. the server will give me a 403 Forbidden error while update and when I refresh the window I get the 502 HTTP Error from ISPconfig.
    Server Specs:
    ISPconfig: ISPConfig 3.2.9p1
    PHP Version: 8.1
    Web Server: Nginx
    I am a ISPconfig newbie and Google doesn't help me in this thread.
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    Check the error.log of the website, you can find it in the log folder of the site.
     
  3. marbleck24

    marbleck24 New Member

    When I check the Error log there is nothing in it when I practiced the Failed update, the only Error log there was something in was form yesterday.
     
  4. Taleman

    Taleman Well-Known Member HowtoForge Supporter

    Did you modify or install files of the website? This may have changed owner or permission of the files.
     
  5. ahrasis

    ahrasis Well-Known Member HowtoForge Supporter

    I'd drop the php to 7.4 and see how it goes, as most WP plugins are yet to support php 8+.
     
  6. marbleck24

    marbleck24 New Member

    Hi, the permissions on the files are

    ispconfig:~# ls -all directory
    total 264
    drwxr-x--x 7 web4 client2 4096 Mar 21 06:00 .
    drwxr-xr-x 11 web4 client2 4096 Mar 20 12:05 ..
    drwxr-xr-x 2 web4 client2 4096 Mar 20 22:03 error
    -rw-rw-r-- 1 web4 client2 15406 Oct 28 15:13 favicon.ico
    -rw-rw-r-- 1 web4 client2 405 Feb 2 15:46 index.php
    -rw-r--r-- 1 web4 client2 16 Mar 21 05:58 info.php
    -rw-rw-r-- 1 web4 client2 19915 Feb 2 15:46 license.txt
    -rw-rw-r-- 1 web4 client2 7389 Feb 2 15:46 readme.html
    drwxr-xr-x 2 web4 client2 4096 Mar 21 00:03 stats
    -rw-rw-r-- 1 web4 client2 7205 Feb 2 15:46 wp-activate.php
    drwxrwxr-x 9 web4 client2 4096 Feb 2 15:46 wp-admin
    -rw-rw-r-- 1 web4 client2 351 Feb 2 15:46 wp-blog-header.php
    -rw-rw-r-- 1 web4 client2 2338 Feb 2 15:46 wp-comments-post.php
    -rw-rw-r-- 1 web4 client2 3725 Mar 20 22:03 wp-config.php
    -rw-rw-r-- 1 web4 client2 3001 Feb 2 15:46 wp-config-sample.php
    drwxrwxr-x 7 web4 client2 4096 Mar 21 07:20 wp-content
    -rw-rw-r-- 1 web4 client2 5543 Feb 2 15:46 wp-cron.php
    drwxrwxr-x 27 web4 client2 12288 Feb 2 15:46 wp-includes
    -rw-rw-r-- 1 web4 client2 2494 Feb 2 15:46 wp-links-opml.php
    -rw-rw-r-- 1 web4 client2 3985 Feb 2 15:46 wp-load.php
    -rw-rw-r-- 1 web4 client2 49135 Feb 2 15:46 wp-login.php
    -rw-rw-r-- 1 web4 client2 8522 Feb 2 15:46 wp-mail.php
    -rw-rw-r-- 1 web4 client2 24587 Feb 2 15:46 wp-settings.php
    -rw-rw-r-- 1 web4 client2 34350 Feb 2 15:46 wp-signup.php
    -rw-rw-r-- 1 web4 client2 4914 Feb 2 15:46 wp-trackback.php
    -rw-rw-r-- 1 web4 client2 3236 Feb 2 15:46 xmlrpc.php
    I think this is right or?
     
  7. marbleck24

    marbleck24 New Member

    Hi, my old Hosting server runs on PHP 8.2, and I am able to make updates there with no problem, so I think this is not the problem.
     
  8. Taleman

    Taleman Well-Known Member HowtoForge Supporter

    Those permissions look OK (although you should have posted them in CODE tags). Same owner should be in subdirectories also.
    Try doing the plugin update again, then check error and access files in the log directory for entries at that time. There should be something there.
    Just to make sure, do this: https://forum.howtoforge.com/threads/please-read-before-posting.58408/
     
  9. marbleck24

    marbleck24 New Member

    I have tried the plugin update again and in the Error file was nothing else, an old WordPress error from morning.

    Here is the check from the System
    Code:
    ##### SERVER #####
    IP-address (as per hostname): ***.***.***.***
    [WARN] could not determine server's ip address by ifconfig
    [INFO] OS version is Debian GNU/Linux 11 (bullseye)
    
    [INFO] uptime:  09:19:29 up 15:36,  2 users,  load average: 0.10, 0.07, 0.01
    
    [INFO] memory:
                   total        used        free      shared  buff/cache   available
    Mem:           7.6Gi       2.2Gi       3.0Gi       214Mi       2.5Gi       4.9Gi
    Swap:          974Mi          0B       974Mi
    
    [INFO] systemd failed services status:
      UNIT LOAD ACTIVE SUB DESCRIPTION
    0 loaded units listed.
    
    [INFO] ISPConfig is installed.
    
    ##### ISPCONFIG #####
    ISPConfig version is 3.2.9p1
    
    
    ##### VERSION CHECK #####
    
    [INFO] php (cli) version is 7.4.33
    [INFO] php-cgi (used for cgi php in default vhost!) is version 7.4.33
    
    ##### PORT CHECK #####
    
    
    ##### MAIL SERVER CHECK #####
    
    
    ##### RUNNING SERVER PROCESSES #####
    
    [INFO] I found the following web server(s):
            Unknown process (nginx:) (PID 183294)
    [INFO] I found the following mail server(s):
            Postfix (PID 1819)
    [INFO] I found the following pop3 server(s):
            Dovecot (PID 637)
    [INFO] I found the following imap server(s):
            Dovecot (PID 637)
    [INFO] I found the following ftp server(s):
            PureFTP (PID 1288)
    
    ##### LISTENING PORTS #####
    (only           ()
    Local           (Address)
    [anywhere]:80           (183294/nginx:)
    [anywhere]:8080         (183294/nginx:)
    [anywhere]:8081         (183294/nginx:)
    [anywhere]:465          (1819/master)
    [localhost]:9013                (20942/php-fpm:)
    [anywhere]:21           (1288/pure-ftpd)
    ***.***.***.***:53              (642/named)
    ***.***.***.***:53              (642/named)
    ***.***.***.***:53              (642/named)
    ***.***.***.***:53              (642/named)
    ***.***.***.***:53              (642/named)
    ***.***.***.***:53              (642/named)
    ***.***.***.***:53              (642/named)
    ***.***.***.***:53              (642/named)
    ***.***.***.***:53              (642/named)
    ***.***.***.***:53              (642/named)
    ***.***.***.***:53              (642/named)
    ***.***.***.***:53              (642/named)
    [localhost]:53          (642/named)
    [localhost]:53          (642/named)
    [localhost]:53          (642/named)
    [localhost]:53          (642/named)
    [localhost]:53          (642/named)
    [localhost]:53          (642/named)
    [localhost]:53          (642/named)
    [localhost]:53          (642/named)
    [localhost]:53          (642/named)
    [localhost]:53          (642/named)
    [localhost]:53          (642/named)
    [localhost]:53          (642/named)
    [anywhere]:22           (18159/sshd:)
    [anywhere]:25           (1819/master)
    [localhost]:953         (642/named)
    [anywhere]:443          (183294/nginx:)
    [anywhere]:4190         (637/dovecot)
    [anywhere]:993          (637/dovecot)
    [anywhere]:995          (637/dovecot)
    [localhost]:11332               (655/rspamd:)
    [localhost]:11333               (655/rspamd:)
    [localhost]:11334               (655/rspamd:)
    [localhost]:10023               (841/postgrey)
    [localhost]:26379               (21318/redis-sentine)
    [anywhere]:587          (1819/master)
    [localhost]:6379                (654/redis-server)
    [localhost]:11211               (641/memcached)
    [anywhere]:110          (637/dovecot)
    [anywhere]:143          (637/dovecot)
    *:*:*:*::*:80           (183294/nginx:)
    *:*:*:*::*:8080         (183294/nginx:)
    *:*:*:*::*:8081         (183294/nginx:)
    *:*:*:*::*:465          (1819/master)
    *:*:*:*::*:21           (1288/pure-ftpd)
    *:*:*:*::*:53           (642/named)
    *:*:*:*::*:53           (642/named)
    *:*:*:*::*:53           (642/named)
    *:*:*:*::*:53           (642/named)
    *:*:*:*::*:53           (642/named)
    *:*:*:*::*:53           (642/named)
    *:*:*:*::*:53           (642/named)
    *:*:*:*::*:53           (642/named)
    *:*:*:*::*:53           (642/named)
    *:*:*:*::*:53           (642/named)
    *:*:*:*::*:53           (642/named)
    *:*:*:*::*:53           (642/named)
    *:*:*:*::*64:12ff:feba:a:53             (642/named)
    *:*:*:*::*64:12ff:feba:a:53             (642/named)
    *:*:*:*::*64:12ff:feba:a:53             (642/named)
    *:*:*:*::*64:12ff:feba:a:53             (642/named)
    *:*:*:*::*64:12ff:feba:a:53             (642/named)
    *:*:*:*::*64:12ff:feba:a:53             (642/named)
    *:*:*:*::*64:12ff:feba:a:53             (642/named)
    *:*:*:*::*64:12ff:feba:a:53             (642/named)
    *:*:*:*::*64:12ff:feba:a:53             (642/named)
    *:*:*:*::*64:12ff:feba:a:53             (642/named)
    *:*:*:*::*64:12ff:feba:a:53             (642/named)
    *:*:*:*::*64:12ff:feba:a:53             (642/named)
    *:*:*:*::*53            (642/named)
    *:*:*:*::*53            (642/named)
    *:*:*:*::*53            (642/named)
    *:*:*:*::*53            (642/named)
    *:*:*:*::*53            (642/named)
    *:*:*:*::*53            (642/named)
    *:*:*:*::*53            (642/named)
    *:*:*:*::*53            (642/named)
    *:*:*:*::*53            (642/named)
    *:*:*:*::*53            (642/named)
    *:*:*:*::*53            (642/named)
    *:*:*:*::*53            (642/named)
    *:*:*:*::*:22           (18159/sshd:)
    *:*:*:*::*:25           (1819/master)
    *:*:*:*::*:953          (642/named)
    *:*:*:*::*:443          (183294/nginx:)
    *:*:*:*::*:4190         (637/dovecot)
    *:*:*:*::*:993          (637/dovecot)
    *:*:*:*::*:995          (637/dovecot)
    *:*:*:*::*:11332                (655/rspamd:)
    *:*:*:*::*:11333                (655/rspamd:)
    *:*:*:*::*:11334                (655/rspamd:)
    *:*:*:*::*:10023                (841/postgrey)
    *:*:*:*::*:3306         (783/mariadbd)
    *:*:*:*::*:26379                (21318/redis-sentine)
    *:*:*:*::*:587          (1819/master)
    *:*:*:*::*:6379         (654/redis-server)
    [localhost]10           (637/dovecot)
    [localhost]43           (637/dovecot)
    
    
    
    
    ##### IPTABLES #####
    Chain INPUT (policy DROP)
    target     prot opt source               destination
    ufw-before-logging-input  all  --  [anywhere]/0            [anywhere]/0
    ufw-before-input  all  --  [anywhere]/0            [anywhere]/0
    ufw-after-input  all  --  [anywhere]/0            [anywhere]/0
    ufw-after-logging-input  all  --  [anywhere]/0            [anywhere]/0
    ufw-reject-input  all  --  [anywhere]/0            [anywhere]/0
    ufw-track-input  all  --  [anywhere]/0            [anywhere]/0
    
    Chain FORWARD (policy DROP)
    target     prot opt source               destination
    ufw-before-logging-forward  all  --  [anywhere]/0            [anywhere]/0
    ufw-before-forward  all  --  [anywhere]/0            [anywhere]/0
    ufw-after-forward  all  --  [anywhere]/0            [anywhere]/0
    ufw-after-logging-forward  all  --  [anywhere]/0            [anywhere]/0
    ufw-reject-forward  all  --  [anywhere]/0            [anywhere]/0
    ufw-track-forward  all  --  [anywhere]/0            [anywhere]/0
    
    Chain OUTPUT (policy ACCEPT)
    target     prot opt source               destination
    ufw-before-logging-output  all  --  [anywhere]/0            [anywhere]/0
    ufw-before-output  all  --  [anywhere]/0            [anywhere]/0
    ufw-after-output  all  --  [anywhere]/0            [anywhere]/0
    ufw-after-logging-output  all  --  [anywhere]/0            [anywhere]/0
    ufw-reject-output  all  --  [anywhere]/0            [anywhere]/0
    ufw-track-output  all  --  [anywhere]/0            [anywhere]/0
    
    Chain ufw-after-forward (1 references)
    target     prot opt source               destination
    
    Chain ufw-after-input (1 references)
    target     prot opt source               destination
    ufw-skip-to-policy-input  udp  --  [anywhere]/0            [anywhere]/0            udp dpt:137
    ufw-skip-to-policy-input  udp  --  [anywhere]/0            [anywhere]/0            udp dpt:138
    ufw-skip-to-policy-input  tcp  --  [anywhere]/0            [anywhere]/0            tcp dpt:139
    ufw-skip-to-policy-input  tcp  --  [anywhere]/0            [anywhere]/0            tcp dpt:445
    ufw-skip-to-policy-input  udp  --  [anywhere]/0            [anywhere]/0            udp dpt:67
    ufw-skip-to-policy-input  udp  --  [anywhere]/0            [anywhere]/0            udp dpt:68
    ufw-skip-to-policy-input  all  --  [anywhere]/0            [anywhere]/0            ADDRTYPE match dst-type BROADCAST
    
    Chain ufw-after-logging-forward (1 references)
    target     prot opt source               destination
    LOG        all  --  [anywhere]/0            [anywhere]/0            limit: avg 3/min burst 10 LOG flags 0 level 4 prefix "[UFW BLOCK] "
    
    Chain ufw-after-logging-input (1 references)
    target     prot opt source               destination
    LOG        all  --  [anywhere]/0            [anywhere]/0            limit: avg 3/min burst 10 LOG flags 0 level 4 prefix "[UFW BLOCK] "
    
    Chain ufw-after-logging-output (1 references)
    target     prot opt source               destination
    
    Chain ufw-after-output (1 references)
    target     prot opt source               destination
    
    Chain ufw-before-forward (1 references)
    target     prot opt source               destination
    ACCEPT     all  --  [anywhere]/0            [anywhere]/0            ctstate RELATED,ESTABLISHED
    ACCEPT     icmp --  [anywhere]/0            [anywhere]/0            icmptype 3
    ACCEPT     icmp --  [anywhere]/0            [anywhere]/0            icmptype 11
    ACCEPT     icmp --  [anywhere]/0            [anywhere]/0            icmptype 12
    ACCEPT     icmp --  [anywhere]/0            [anywhere]/0            icmptype 8
    ufw-user-forward  all  --  [anywhere]/0            [anywhere]/0
    
    Chain ufw-before-input (1 references)
    target     prot opt source               destination
    ACCEPT     all  --  [anywhere]/0            [anywhere]/0
    ACCEPT     all  --  [anywhere]/0            [anywhere]/0            ctstate RELATED,ESTABLISHED
    ufw-logging-deny  all  --  [anywhere]/0            [anywhere]/0            ctstate INVALID
    DROP       all  --  [anywhere]/0            [anywhere]/0            ctstate INVALID
    ACCEPT     icmp --  [anywhere]/0            [anywhere]/0            icmptype 3
    ACCEPT     icmp --  [anywhere]/0            [anywhere]/0            icmptype 11
    ACCEPT     icmp --  [anywhere]/0            [anywhere]/0            icmptype 12
    ACCEPT     icmp --  [anywhere]/0            [anywhere]/0            icmptype 8
    ACCEPT     udp  --  [anywhere]/0            [anywhere]/0            udp spt:67 dpt:68
    ufw-not-local  all  --  [anywhere]/0            [anywhere]/0
    ACCEPT     udp  --  [anywhere]/0            ***.***.***.***          udp dpt:5353
    ACCEPT     udp  --  [anywhere]/0            ***.***.***.***      udp dpt:1900
    ufw-user-input  all  --  [anywhere]/0            [anywhere]/0
    
    Chain ufw-before-logging-forward (1 references)
    target     prot opt source               destination
    
    Chain ufw-before-logging-input (1 references)
    target     prot opt source               destination
    
    Chain ufw-before-logging-output (1 references)
    target     prot opt source               destination
    
    Chain ufw-before-output (1 references)
    target     prot opt source               destination
    ACCEPT     all  --  [anywhere]/0            [anywhere]/0
    ACCEPT     all  --  [anywhere]/0            [anywhere]/0            ctstate RELATED,ESTABLISHED
    ufw-user-output  all  --  [anywhere]/0            [anywhere]/0
    
    Chain ufw-logging-allow (0 references)
    target     prot opt source               destination
    LOG        all  --  [anywhere]/0            [anywhere]/0            limit: avg 3/min burst 10 LOG flags 0 level 4 prefix "[UFW ALLOW] "
    
    Chain ufw-logging-deny (2 references)
    target     prot opt source               destination
    RETURN     all  --  [anywhere]/0            [anywhere]/0            ctstate INVALID limit: avg 3/min burst 10
    LOG        all  --  [anywhere]/0            [anywhere]/0            limit: avg 3/min burst 10 LOG flags 0 level 4 prefix "[UFW BLOCK] "
    
    Chain ufw-not-local (1 references)
    target     prot opt source               destination
    RETURN     all  --  [anywhere]/0            [anywhere]/0            ADDRTYPE match dst-type LOCAL
    RETURN     all  --  [anywhere]/0            [anywhere]/0            ADDRTYPE match dst-type MULTICAST
    RETURN     all  --  [anywhere]/0            [anywhere]/0            ADDRTYPE match dst-type BROADCAST
    ufw-logging-deny  all  --  [anywhere]/0            [anywhere]/0            limit: avg 3/min burst 10
    DROP       all  --  [anywhere]/0            [anywhere]/0
    
    Chain ufw-reject-forward (1 references)
    target     prot opt source               destination
    
    Chain ufw-reject-input (1 references)
    target     prot opt source               destination
    
    Chain ufw-reject-output (1 references)
    target     prot opt source               destination
    
    Chain ufw-skip-to-policy-forward (0 references)
    target     prot opt source               destination
    DROP       all  --  [anywhere]/0            [anywhere]/0
    
    Chain ufw-skip-to-policy-input (7 references)
    target     prot opt source               destination
    DROP       all  --  [anywhere]/0            [anywhere]/0
    
    Chain ufw-skip-to-policy-output (0 references)
    target     prot opt source               destination
    ACCEPT     all  --  [anywhere]/0            [anywhere]/0
    
    Chain ufw-track-forward (1 references)
    target     prot opt source               destination
    
    Chain ufw-track-input (1 references)
    target     prot opt source               destination
    
    Chain ufw-track-output (1 references)
    target     prot opt source               destination
    ACCEPT     tcp  --  [anywhere]/0            [anywhere]/0            ctstate NEW
    ACCEPT     udp  --  [anywhere]/0            [anywhere]/0            ctstate NEW
    
    Chain ufw-user-forward (1 references)
    target     prot opt source               destination
    
    Chain ufw-user-input (1 references)
    target     prot opt source               destination
    ACCEPT     tcp  --  [anywhere]/0            [anywhere]/0            tcp dpt:21
    ACCEPT     tcp  --  [anywhere]/0            [anywhere]/0            tcp dpt:22
    ACCEPT     tcp  --  [anywhere]/0            [anywhere]/0            tcp dpt:25
    ACCEPT     tcp  --  [anywhere]/0            [anywhere]/0            tcp dpt:53
    ACCEPT     tcp  --  [anywhere]/0            [anywhere]/0            tcp dpt:80
    ACCEPT     tcp  --  [anywhere]/0            [anywhere]/0            tcp dpt:110
    ACCEPT     tcp  --  [anywhere]/0            [anywhere]/0            tcp dpt:143
    ACCEPT     tcp  --  [anywhere]/0            [anywhere]/0            tcp dpt:443
    ACCEPT     tcp  --  [anywhere]/0            [anywhere]/0            tcp dpt:465
    ACCEPT     tcp  --  [anywhere]/0            [anywhere]/0            tcp dpt:587
    ACCEPT     tcp  --  [anywhere]/0            [anywhere]/0            tcp dpt:993
    ACCEPT     tcp  --  [anywhere]/0            [anywhere]/0            tcp dpt:995
    ACCEPT     tcp  --  [anywhere]/0            [anywhere]/0            tcp dpt:3306
    ACCEPT     tcp  --  [anywhere]/0            [anywhere]/0            tcp dpt:4190
    ACCEPT     tcp  --  [anywhere]/0            [anywhere]/0            tcp dpt:8080
    ACCEPT     tcp  --  [anywhere]/0            [anywhere]/0            tcp dpt:8081
    ACCEPT     tcp  --  [anywhere]/0            [anywhere]/0            multiport dports 40110:40210
    ACCEPT     udp  --  [anywhere]/0            [anywhere]/0            udp dpt:53
    
    Chain ufw-user-limit (0 references)
    target     prot opt source               destination
    LOG        all  --  [anywhere]/0            [anywhere]/0            limit: avg 3/min burst 5 LOG flags 0 level 4 prefix "[UFW LIMIT BLOCK] "
    REJECT     all  --  [anywhere]/0            [anywhere]/0            reject-with icmp-port-unreachable
    
    Chain ufw-user-limit-accept (0 references)
    target     prot opt source               destination
    ACCEPT     all  --  [anywhere]/0            [anywhere]/0
    
    Chain ufw-user-logging-forward (0 references)
    target     prot opt source               destination
    
    Chain ufw-user-logging-input (0 references)
    target     prot opt source               destination
    
    Chain ufw-user-logging-output (0 references)
    target     prot opt source               destination
    
    Chain ufw-user-output (1 references)
    target     prot opt source               destination
    
    
    
    
    ##### LET'S ENCRYPT #####
    acme.sh is installed in /root/.acme.sh/acme.sh
     
  10. Taleman

    Taleman Well-Known Member HowtoForge Supporter

    Have you modified nginx somehow? Because the report shows
    Code:
    Unknown process (nginx:) (PID 183294)
     
  11. ahrasis

    ahrasis Well-Known Member HowtoForge Supporter

    I assume you installed multiple php and select php 8.1 on that site. Can you show the config of your php-fpm settings for that 8.1 in the Additional Php Versions page? I am just guessing something could be wrong there.
     
  12. marbleck24

    marbleck24 New Member

    I don't think so, I don't changed the nginx config.

    Where I find the config of PHP or is it the php.ini file?
     
  13. Taleman

    Taleman Well-Known Member HowtoForge Supporter

    @ahrasis means ISPConfig Panel | System | Additional PHP Versions.
     
  14. marbleck24

    marbleck24 New Member

    Hi, I did not change there anything, but I set up a test WordPress and there I can update the standard installed plugins.
    Is this another and not a problem from ISPconfig?
     
  15. Taleman

    Taleman Well-Known Member HowtoForge Supporter

    If another website works with WP plugin updates, this website is somehow messed up. Do you remember how you set it up? Something was done differently.
    You could check owners and permissions also in subdirectories and directory trees of the not working website.
     
  16. marbleck24

    marbleck24 New Member

    Hi, my research in the Internet was successfully, in all my WordPress installations are the same Error (don't know why) but I have to deactivate all my plugins or one Theme plugin to update the plugins its very interesting however.
    Then was my idea wrong that it is on ISPconfig, so thank you for yours answers.
     

Share This Page