Okay. It all started here:
[SOLVED] Debian 10 Wordpress problem
It's my home server Wordpress blog website I use for testing. As you can see on previous topic, with assistance of nice people I got it up and running. After Bullseye became stable I updated everything and it works fine... except there are no visible images at all. Site simply won't show any images no matter what I do. On WP Dashboard, "Site health" screen says it's all fine, permissions are OK (I tried to change them in several ways, even 777, zero effect), everything is writable... but no images visible in media, posts, themes, on site when I access it from outside, none. Now there *are* image files in /var/lib/wordpress/wp-content/uploads/. When I upload new files it seems okay, sqared 'places' are there, new files are there, but no image content visible on site. How come? What is wrong? What am I missing? Screenshots:
https://postimg.cc/BX2rzYTR
https://postimg.cc/3dXbHCbS
https://postimg.cc/gw5w72dz
Please help. Thanks.
Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230
Debian 11 Wordpress problem
- dilberts_left_nut
- Administrator
- Posts: 5349
- Joined: 2009-10-05 07:54
- Location: enzed
- Has thanked: 13 times
- Been thanked: 67 times
Re: Debian 11 Wordpress problem
Don't bother with screenshots.
What do your logs say?
What do your logs say?
AdrianTM wrote:There's no hacker in my grandma...
- JudgeDredd
- Posts: 11
- Joined: 2020-09-20 06:33
- dilberts_left_nut
- Administrator
- Posts: 5349
- Joined: 2009-10-05 07:54
- Location: enzed
- Has thanked: 13 times
- Been thanked: 67 times
Re: Debian 11 Wordpress problem
In /var/log/apache2/ or wherever you have configured it to log to.
AdrianTM wrote:There's no hacker in my grandma...
- JudgeDredd
- Posts: 11
- Joined: 2020-09-20 06:33
Re: Debian 11 Wordpress problem
Okay in /var/log/apache2/ I see a lot of files: access.log, error.log, access.log.1, error.log.1, other_vhosts_access.log (empty file), and several .gz compressed files of the same name. When I accesed my site from other home computer and from my mobile phone using VPN, I saw access.log, error.log and error.log.1 changed. Now, error.log and error.log.1 are small:dilberts_left_nut wrote: ↑2021-09-17 06:29 In /var/log/apache2/ or wherever you have configured it to log to.
- error.log
Code: Select all
[Sat Sep 18 00:00:01.183846 2021] [mpm_prefork:notice] [pid 566] AH00163: Apache/2.4.48 (Debian) configured -- resuming normal operations
[Sat Sep 18 00:00:01.183881 2021] [core:notice] [pid 566] AH00094: Command line: '/usr/sbin/apache2'
Code: Select all
[Fri Sep 17 00:00:02.098597 2021] [mpm_prefork:notice] [pid 566] AH00163: Apache/2.4.48 (Debian) configured -- resuming normal operations
[Fri Sep 17 00:00:02.098639 2021] [core:notice] [pid 566] AH00094: Command line: '/usr/sbin/apache2'
[Sat Sep 18 00:00:01.093193 2021] [mpm_prefork:notice] [pid 566] AH00171: Graceful restart requested, doing restart
- mobile phone
Code: Select all
77.111.246.37 - - [18/Sep/2021:18:00:47 +0200] "GET /wp-content/uploads/2018/09/problem-s-ljevicom-03_20180910095259600-590x590.jpg HTTP/1.1" 404 437 "http://my-home-site/" "Mozilla/5.0 (Linux; Android 6.0; mobile-phone) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.114 Mobile Safari/537.36 OPR/64.2.3282.60128"
77.111.246.37 - - [18/Sep/2021:18:00:49 +0200] "GET /wp-content/uploads/2018/06/why-i-left-the-left1a-590x590.jpg HTTP/1.1" 404 437 "http://my-home-site/" "Mozilla/5.0 (Linux; Android 6.0; mobile-phone) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.114 Mobile Safari/537.36 OPR/64.2.3282.60128"
77.111.246.37 - - [18/Sep/2021:18:00:50 +0200] "GET /wp-content/uploads/2018/10/screenshot_2018-10-08-00-06-39-00501-590x590.jpg HTTP/1.1" 404 437 "http://my-home-site/" "Mozilla/5.0 (Linux; Android 6.0; mobile-phone) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.114 Mobile Safari/537.36 OPR/64.2.3282.60128"
Code: Select all
192.168.1.1 - - [18/Sep/2021:18:06:05 +0200] "GET /wp-content/uploads/2018/10/screenshot_2018-10-06-22-34-33-69401-590x590.jpg HTTP/1.1" 404 493 "http://my-home-site/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:92.0) Gecko/20100101 Firefox/92.0"
192.168.1.1 - - [18/Sep/2021:18:06:09 +0200] "GET /wp-content/uploads/2018/10/screenshot_2018-10-05-12-07-21-73701-1280x525.jpg HTTP/1.1" 404 492 "http://my-home-site/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:92.0) Gecko/20100101 Firefox/92.0"
192.168.1.1 - - [18/Sep/2021:18:06:11 +0200] "GET /wp-content/uploads/2018/10/screenshot_2018-10-08-00-06-39-00501-590x590.jpg HTTP/1.1" 404 492 "http://my-home-site/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:92.0) Gecko/20100101 Firefox/92.0"
- dilberts_left_nut
- Administrator
- Posts: 5349
- Joined: 2009-10-05 07:54
- Location: enzed
- Has thanked: 13 times
- Been thanked: 67 times
Re: Debian 11 Wordpress problem
Please post logs in code tags to make them more readable.
I've done it for you above.
You can watch the logs in real time from a terminal with
See 'man tail' for more info.
You can filter the log for what you are looking for withSee 'man grep' for more info.
See http://httpd.apache.org/docs/2.4/logs.html for info on what the logs are telling you.
This means your webserver cannot find what is requested, in this case "/wp-content/uploads/2018/09/problem-s-ljevicom-03_20180910095259600-590x590.jpg" - check to see if this file exists at this location and is readable by the webserver user (www-data).
I've done it for you above.
The .log files are current. The .log.1 files are the previous logs & the .gz compressed files are older still. This is all done by logrotate, which you can look up if you want to change the default behaviour.JudgeDredd wrote: ↑2021-09-18 17:54 Okay in /var/log/apache2/ I see a lot of files: access.log, error.log, access.log.1, error.log.1, other_vhosts_access.log (empty file), and several .gz compressed files of the same name.
You can watch the logs in real time from a terminal with
Code: Select all
tail -f /var/log/apache2/access.log
You can filter the log for what you are looking for with
Code: Select all
grep whatimlookingfor /var/log/apache2/access.log
See http://httpd.apache.org/docs/2.4/logs.html for info on what the logs are telling you.
This shows a 404 (not found) error code in the HTML status code field.Code: Select all
77.111.246.37 - - [18/Sep/2021:18:00:47 +0200] "GET /wp-content/uploads/2018/09/problem-s-ljevicom-03_20180910095259600-590x590.jpg HTTP/1.1" 404 437 "http://my-home-site/" "Mozilla/5.0 (Linux; Android 6.0; mobile-phone)
This means your webserver cannot find what is requested, in this case "/wp-content/uploads/2018/09/problem-s-ljevicom-03_20180910095259600-590x590.jpg" - check to see if this file exists at this location and is readable by the webserver user (www-data).
AdrianTM wrote:There's no hacker in my grandma...
-
- Posts: 1
- Joined: 2021-09-24 10:40
Re: Debian 11 Wordpress problem
Check the extension and location of your image and that it matches with your code. Also image stored locally outside root folder will not be present on the web server if your site is hosted so make sure that your image is already present in you root folder.
Die Hard fan of Nirvana, best grunge music band of 90's.