Apache show me "Service Unavailable".

Issues related to applications and software problems
hack3rcon
Posts: 757
Joined: 2014/11/24 11:04:37

Apache show me "Service Unavailable".

Post by hack3rcon » 2019/01/08 06:49:27

Hello.
I installed Apache 2.4.6 on CentOS 7.6 x86_64 but my website most of time show me below error:

Code: Select all

Service Unavailable

The server is temporarily unable to service your request due to maintenance downtime or capacity problems. Please try again later.
And Log is:

Code: Select all

# cat error_log
[Sun Jan 06 03:30:01.527023 2019] [auth_digest:notice] [pid 22045] AH01757: generating secret for digest authentication ...
[Sun Jan 06 03:30:01.530130 2019] [lbmethod_heartbeat:notice] [pid 22045] AH02282: No slotmem from mod_heartmonitor
[Sun Jan 06 03:30:01.641250 2019] [:error] [pid 22045] SecServerSignature: original signature too short. Please set ServerTokens to Full.
[Sun Jan 06 03:30:01.641360 2019] [mpm_prefork:notice] [pid 22045] AH00163: Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips Microsoft_IIS_8 configured -- resuming normal operations
[Sun Jan 06 03:30:01.641368 2019] [core:notice] [pid 22045] AH00094: Command line: '/usr/sbin/httpd -D FOREGROUND'
[Sun Jan 06 11:23:46.157369 2019] [:error] [pid 22960] [client 172.21.50.9:51758] PHP Fatal error:  Uncaught Error: Call to undefined function mb_list_encodings() in /var/www/html/wp-includes/SimplePie/Misc.php:356\nStack trace:\n#0 /var/www/html/wp-includes/SimplePie/Misc.php(316): SimplePie_Misc::change_encoding_mbstring('<?xml version="...', 'UTF-8', 'UTF-8')\n#1 /var/www/html/wp-includes/SimplePie/Registry.php(222): SimplePie_Misc::change_encoding('<?xml version="...', 'UTF-8', 'UTF-8')\n#2 /var/www/html/wp-includes/class-simplepie.php(1379): SimplePie_Registry->call('Misc', 'change_encoding', Array)\n#3 /var/www/html/wp-includes/feed.php(703): SimplePie->init()\n#4 /var/www/html/wp-includes/widgets.php(1401): fetch_feed('http://wp-persi...')\n#5 /var/www/html/wp-admin/includes/dashboard.php(1371): wp_widget_rss_output('http://wp-persi...', Array)\n#6 /var/www/html/wp-admin/includes/dashboard.php(999): wp_dashboard_primary_output('dashboard_prima...', Array)\n#7 /var/www/html/wp-admin/includes/dashboard.php(1355): wp_dashboard_cached_rss_widget('dashboard_prima...', 'wp_dashboard_pr...', Array)\n#8 /var/www/html/ in /var/www/html/wp-includes/SimplePie/Misc.php on line 356, referer: https://www.example.com/wp-admin/
[Sun Jan 06 11:25:08.255740 2019] [:error] [pid 5259] [client 172.21.50.9:51796] PHP Fatal error:  Uncaught Error: Call to undefined function mb_list_encodings() in /var/www/html/wp-includes/SimplePie/Misc.php:356\nStack trace:\n#0 /var/www/html/wp-includes/SimplePie/Misc.php(316): SimplePie_Misc::change_encoding_mbstring('<?xml version="...', 'UTF-8', 'UTF-8')\n#1 /var/www/html/wp-includes/SimplePie/Registry.php(222): SimplePie_Misc::change_encoding('<?xml version="...', 'UTF-8', 'UTF-8')\n#2 /var/www/html/wp-includes/class-simplepie.php(1379): SimplePie_Registry->call('Misc', 'change_encoding', Array)\n#3 /var/www/html/wp-includes/feed.php(703): SimplePie->init()\n#4 /var/www/html/wp-includes/widgets.php(1401): fetch_feed('http://wp-persi...')\n#5 /var/www/html/wp-admin/includes/dashboard.php(1371): wp_widget_rss_output('http://wp-persi...', Array)\n#6 /var/www/html/wp-admin/includes/dashboard.php(999): wp_dashboard_primary_output('dashboard_prima...', Array)\n#7 /var/www/html/wp-admin/includes/dashboard.php(1355): wp_dashboard_cached_rss_widget('dashboard_prima...', 'wp_dashboard_pr...', Array)\n#8 /var/www/html/ in /var/www/html/wp-includes/SimplePie/Misc.php on line 356, referer: https://www.example.com/wp-admin/index.php
[Sun Jan 06 15:55:02.949152 2019] [:error] [pid 22962] [client 172.21.50.63:54436] client denied by server configuration: /var/www/html/wp-content/uploads/2017/12/4-324x160.jpg, referer: https://www.example.com/
[Sun Jan 06 15:55:02.952779 2019] [:error] [pid 22962] [client 172.21.50.63:54436] client denied by server configuration: /var/www/html/wp-content/uploads/2017/12/2-324x160.jpg, referer: https://www.example.com/
[Sun Jan 06 15:55:02.957902 2019] [:error] [pid 22962] [client 172.21.50.63:54436] client denied by server configuration: /var/www/html/wp-content/uploads/2017/12/11-324x160.jpg, referer: https://www.example.com/
[Sun Jan 06 15:55:02.961181 2019] [:error] [pid 22962] [client 172.21.50.63:54436] client denied by server configuration: /var/www/html/wp-content/uploads/2017/12/10-324x160.jpg, referer: https://www.example.com/
[Sun Jan 06 15:55:02.963797 2019] [:error] [pid 22962] [client 172.21.50.63:54436] client denied by server configuration: /var/www/html/wp-content/uploads/2017/12/9-324x160.jpg, referer: https://www.example.com/
[Sun Jan 06 15:55:02.967502 2019] [:error] [pid 22962] [client 172.21.50.63:54436] client denied by server configuration: /var/www/html/wp-content/uploads/2017/12/3-100x70.jpg, referer: https://www.example.com/
[Sun Jan 06 15:55:02.971372 2019] [:error] [pid 22962] [client 172.21.50.63:54436] client denied by server configuration: /var/www/html/wp-includes/js/wp-emoji-release.min.js, referer: https://www.example.com/
[Sun Jan 06 15:55:02.981197 2019] [:error] [pid 22962] [client 172.21.50.63:54436] client denied by server configuration: /var/www/html/wp-content/themes/Newspaper-child/fonts/woff2/IRANSansWeb.woff2, referer: https://www.example.com/
[Sun Jan 06 15:55:03.307642 2019] [:error] [pid 22962] [client 172.21.50.63:54436] client denied by server configuration: /var/www/html/wp-content/uploads/2017/12/2-324x160.jpg, referer: https://www.example.com/
[Sun Jan 06 15:55:03.310878 2019] [:error] [pid 22962] [client 172.21.50.63:54436] client denied by server configuration: /var/www/html/wp-content/uploads/2017/12/9-324x160.jpg, referer: https://www.example.com/
[Sun Jan 06 15:55:03.325724 2019] [:error] [pid 22962] [client 172.21.50.63:54436] client denied by server configuration: /var/www/html/wp-content/uploads/2017/12/8.jpg, referer: https://www.example.com/
[Sun Jan 06 15:55:03.349797 2019] [:error] [pid 22962] [client 172.21.50.63:54436] client denied by server configuration: /var/www/html/wp-content/themes/Newspaper-child/fonts/woff2/IRANSansWeb_Light.woff2, referer: https://www.example.com/
[Sun Jan 06 15:55:03.626849 2019] [:error] [pid 22962] [client 172.21.50.63:54436] client denied by server configuration: /var/www/html/wp-content/themes/Newspaper-child/fonts/woff/IRANSansWeb_Light.woff, referer: https://www.example.com/
[Sun Jan 06 15:55:03.729859 2019] [:error] [pid 22962] [client 172.21.50.63:54436] client denied by server configuration: /var/www/html/wp-content/themes/Newspaper-child/fonts/ttf/IRANSansWeb_Light.ttf, referer: https://www.example.com/
[Sun Jan 06 15:55:04.011275 2019] [:error] [pid 22962] [client 172.21.50.63:54436] client denied by server configuration: /var/www/html/wp-content/uploads/2018/12/cropped-icone-2-192x192.png, referer: https://www.example.com/
[Sun Jan 06 15:55:04.020475 2019] [:error] [pid 22962] [client 172.21.50.63:54436] client denied by server configuration: /var/www/html/wp-content/uploads/2018/12/cropped-icone-2-32x32.png, referer: https://www.example.com/
[Sun Jan 06 15:55:04.027135 2019] [:error] [pid 22962] [client 172.21.50.63:54436] client denied by server configuration: /var/www/html/wp-content/uploads/2018/12/icone-2-300x300.png, referer: https://www.example.com/
[Sun Jan 06 15:55:07.770702 2019] [:error] [pid 22962] [client 172.21.50.63:54436] client denied by server configuration: /var/www/html/, referer: https://www.example.com/
[Sun Jan 06 15:55:07.787558 2019] [:error] [pid 22962] [client 172.21.50.63:54436] client denied by server configuration: /usr/share/httpd/noindex/css/bootstrap.min.css, referer: https://www.example.com/?cat=16
[Sun Jan 06 15:55:07.791522 2019] [:error] [pid 22962] [client 172.21.50.63:54436] client denied by server configuration: /usr/share/httpd/noindex/images/apache_pb.gif, referer: https://www.example.com/?cat=16
[Sun Jan 06 15:55:07.823787 2019] [:error] [pid 22962] [client 172.21.50.63:54436] client denied by server configuration: /var/www/html/noindex, referer: https://www.example.com/noindex/css/open-sans.css
[Sun Jan 06 15:55:07.880971 2019] [:error] [pid 22962] [client 172.21.50.63:54436] client denied by server configuration: /var/www/html/noindex, referer: https://www.example.com/noindex/css/open-sans.css
[Mon Jan 07 15:08:01.971234 2019] [mpm_prefork:notice] [pid 22045] AH00170: caught SIGWINCH, shutting down gracefully
[Mon Jan 07 15:08:10.115120 2019] [core:notice] [pid 20828] SELinux policy enabled; httpd running as context system_u:system_r:httpd_t:s0
[Mon Jan 07 15:08:10.119654 2019] [suexec:notice] [pid 20828] AH01232: suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Mon Jan 07 15:08:10.119714 2019] [:error] [pid 20828] SecServerSignature: original signature too short. Please set ServerTokens to Full.
[Mon Jan 07 15:08:10.119721 2019] [:notice] [pid 20828] ModSecurity for Apache/2.9.2 (http://www.modsecurity.org/) configured.
[Mon Jan 07 15:08:10.119725 2019] [:notice] [pid 20828] ModSecurity: APR compiled version="1.4.8"; loaded version="1.4.8"
[Mon Jan 07 15:08:10.119730 2019] [:notice] [pid 20828] ModSecurity: PCRE compiled version="8.32 "; loaded version="8.32 2012-11-30"
[Mon Jan 07 15:08:10.119736 2019] [:notice] [pid 20828] ModSecurity: LUA compiled version="Lua 5.1"
[Mon Jan 07 15:08:10.119739 2019] [:notice] [pid 20828] ModSecurity: LIBXML compiled version="2.9.1"
[Mon Jan 07 15:08:10.119741 2019] [:notice] [pid 20828] ModSecurity: Original server signature: Apache
[Mon Jan 07 15:08:10.119744 2019] [:notice] [pid 20828] ModSecurity: Status engine is currently disabled, enable it by set SecStatusEngine to On.
[Mon Jan 07 15:08:10.127964 2019] [so:warn] [pid 20828] AH01574: module deflate_module is already loaded, skipping
[Mon Jan 07 15:08:10.127986 2019] [so:warn] [pid 20828] AH01574: module deflate_module is already loaded, skipping
[Mon Jan 07 15:08:10.131229 2019] [so:warn] [pid 20828] AH01574: module deflate_module is already loaded, skipping
[Mon Jan 07 15:08:10.132128 2019] [so:warn] [pid 20828] AH01574: module headers_module is already loaded, skipping
[Mon Jan 07 15:08:10.141239 2019] [so:warn] [pid 20828] AH01574: module ssl_module is already loaded, skipping
[Mon Jan 07 15:08:10.182192 2019] [auth_digest:notice] [pid 20828] AH01757: generating secret for digest authentication ...
[Mon Jan 07 15:08:10.185929 2019] [lbmethod_heartbeat:notice] [pid 20828] AH02282: No slotmem from mod_heartmonitor
[Mon Jan 07 15:08:10.228644 2019] [:error] [pid 20828] SecServerSignature: original signature too short. Please set ServerTokens to Full.
[Mon Jan 07 15:08:10.235498 2019] [mpm_prefork:notice] [pid 20828] AH00163: Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips Microsoft_IIS_8 configured -- resuming normal operations
[Mon Jan 07 15:08:10.235542 2019] [core:notice] [pid 20828] AH00094: Command line: '/usr/sbin/httpd -D FOREGROUND'
[Mon Jan 07 15:14:52.186917 2019] [mpm_prefork:notice] [pid 20828] AH00170: caught SIGWINCH, shutting down gracefully
[Mon Jan 07 15:15:23.301337 2019] [core:notice] [pid 6292] SELinux policy enabled; httpd running as context system_u:system_r:httpd_t:s0
[Mon Jan 07 15:15:23.336821 2019] [suexec:notice] [pid 6292] AH01232: suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Mon Jan 07 15:15:23.336880 2019] [:error] [pid 6292] SecServerSignature: original signature too short. Please set ServerTokens to Full.
[Mon Jan 07 15:15:23.336887 2019] [:notice] [pid 6292] ModSecurity for Apache/2.9.2 (http://www.modsecurity.org/) configured.
[Mon Jan 07 15:15:23.336891 2019] [:notice] [pid 6292] ModSecurity: APR compiled version="1.4.8"; loaded version="1.4.8"
[Mon Jan 07 15:15:23.336896 2019] [:notice] [pid 6292] ModSecurity: PCRE compiled version="8.32 "; loaded version="8.32 2012-11-30"
[Mon Jan 07 15:15:23.336903 2019] [:notice] [pid 6292] ModSecurity: LUA compiled version="Lua 5.1"
[Mon Jan 07 15:15:23.336906 2019] [:notice] [pid 6292] ModSecurity: LIBXML compiled version="2.9.1"
[Mon Jan 07 15:15:23.336909 2019] [:notice] [pid 6292] ModSecurity: Original server signature: Apache
[Mon Jan 07 15:15:23.336912 2019] [:notice] [pid 6292] ModSecurity: Status engine is currently disabled, enable it by set SecStatusEngine to On.
[Mon Jan 07 15:15:23.346626 2019] [so:warn] [pid 6292] AH01574: module deflate_module is already loaded, skipping
[Mon Jan 07 15:15:23.346655 2019] [so:warn] [pid 6292] AH01574: module deflate_module is already loaded, skipping
[Mon Jan 07 15:15:23.359461 2019] [so:warn] [pid 6292] AH01574: module deflate_module is already loaded, skipping
[Mon Jan 07 15:15:23.360378 2019] [so:warn] [pid 6292] AH01574: module headers_module is already loaded, skipping
[Mon Jan 07 15:15:23.368896 2019] [so:warn] [pid 6292] AH01574: module ssl_module is already loaded, skipping
[Mon Jan 07 15:15:23.412375 2019] [auth_digest:notice] [pid 6292] AH01757: generating secret for digest authentication ...
[Mon Jan 07 15:15:23.417231 2019] [lbmethod_heartbeat:notice] [pid 6292] AH02282: No slotmem from mod_heartmonitor
[Mon Jan 07 15:15:24.026964 2019] [:error] [pid 6292] SecServerSignature: original signature too short. Please set ServerTokens to Full.
[Mon Jan 07 15:15:24.034411 2019] [mpm_prefork:notice] [pid 6292] AH00163: Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips Microsoft_IIS_8 configured -- resuming normal operations
[Mon Jan 07 15:15:24.034456 2019] [core:notice] [pid 6292] AH00094: Command line: '/usr/sbin/httpd -D FOREGROUND'
[Mon Jan 07 17:05:11.387178 2019] [:error] [pid 7292] [client 172.21.50.63:44902] client denied by server configuration: /var/www/html/wp-content/uploads/2017/12/10-324x160.jpg, referer: https://www.example.com/
[Mon Jan 07 17:05:11.390386 2019] [:error] [pid 7292] [client 172.21.50.63:44902] client denied by server configuration: /var/www/html/wp-content/uploads/2017/12/17-324x160.jpg, referer: https://www.example.com/
[Mon Jan 07 17:05:11.392831 2019] [:error] [pid 7292] [client 172.21.50.63:44902] client denied by server configuration: /var/www/html/wp-content/uploads/2017/12/9-324x160.jpg, referer: https://www.example.com/
[Mon Jan 07 17:05:11.394830 2019] [:error] [pid 7292] [client 172.21.50.63:44902] client denied by server configuration: /var/www/html/wp-content/uploads/2017/12/7-100x70.jpg, referer: https://www.example.com/
[Mon Jan 07 17:05:11.396761 2019] [:error] [pid 7292] [client 172.21.50.63:44902] client denied by server configuration: /var/www/html/wp-content/uploads/2017/12/13-100x70.jpg, referer: https://www.example.com/
[Mon Jan 07 17:05:11.398699 2019] [:error] [pid 7292] [client 172.21.50.63:44902] client denied by server configuration: /var/www/html/wp-content/uploads/2017/12/12-218x150.jpg, referer: https://www.example.com/
[Mon Jan 07 17:05:11.400651 2019] [:error] [pid 7292] [client 172.21.50.63:44902] client denied by server configuration: /var/www/html/wp-content/uploads/2017/12/15-100x70.jpg, referer: https://www.example.com/
[Mon Jan 07 17:05:11.402619 2019] [:error] [pid 7292] [client 172.21.50.63:44902] client denied by server configuration: /var/www/html/wp-content/uploads/2017/12/logo-footer-fa.png, referer: https://www.example.com/
[Mon Jan 07 17:05:11.521827 2019] [:error] [pid 7292] [client 172.21.50.63:44902] client denied by server configuration: /var/www/html/wp-includes/js/wp-emoji-release.min.js, referer: https://www.example.com/
[Mon Jan 07 17:05:11.528834 2019] [:error] [pid 7292] [client 172.21.50.63:44902] client denied by server configuration: /var/www/html/wp-content/themes/Newspaper/images/icons/newspaper.woff, referer: https://www.example.com/
[Mon Jan 07 17:05:11.533510 2019] [:error] [pid 7292] [client 172.21.50.63:44902] client denied by server configuration: /var/www/html/wp-content/themes/Newspaper-child/fonts/woff2/IRANSansWeb_Bold.woff2, referer: https://www.example.com/
[Mon Jan 07 17:05:11.602384 2019] [:error] [pid 7292] [client 172.21.50.63:44902] client denied by server configuration: /var/www/html/wp-content/themes/Newspaper-child/fonts/woff/IRANSansWeb_Bold.woff, referer: https://www.example.com/
[Mon Jan 07 17:05:11.799169 2019] [:error] [pid 7292] [client 172.21.50.63:44902] client denied by server configuration: /var/www/html/wp-content/uploads/2017/12/17-324x160.jpg, referer: https://www.example.com/
[Mon Jan 07 17:05:11.802832 2019] [:error] [pid 7292] [client 172.21.50.63:44902] client denied by server configuration: /var/www/html/wp-content/uploads/2017/12/9-324x160.jpg, referer: https://www.example.com/
Can it because of "mod_limitipconn" connection?

Code: Select all

ExtendedStatus On
MaxConnPerIP 10
Thank you.

hack3rcon
Posts: 757
Joined: 2014/11/24 11:04:37

Re: Apache show me "Service Unavailable".

Post by hack3rcon » 2019/01/09 20:09:51

Any idea about my problem?

lightman47
Posts: 1521
Joined: 2014/05/21 20:16:00
Location: Central New York, USA

Re: Apache show me "Service Unavailable".

Post by lightman47 » 2019/01/09 22:12:12

I start by READing the messages and researching/learning. Linux generally (unlike Windows) tells you what's actually wrong. Learning the 'lingo' is very helpful (albeit slow).

For instance, "www.example.com" - it was an example in the config files; a hint to replace it with your own domain name.

Also, If you're going to use wordpress, stay on top of updates - they're VERY important for security reasons.

hack3rcon
Posts: 757
Joined: 2014/11/24 11:04:37

Re: Apache show me "Service Unavailable".

Post by hack3rcon » 2019/01/10 20:28:49

lightman47 wrote:
2019/01/09 22:12:12
I start by READing the messages and researching/learning. Linux generally (unlike Windows) tells you what's actually wrong. Learning the 'lingo' is very helpful (albeit slow).

For instance, "www.example.com" - it was an example in the config files; a hint to replace it with your own domain name.

Also, If you're going to use wordpress, stay on top of updates - they're VERY important for security reasons.
I changed my real domain name to "www.example.com". Do you have any opinion about my problem?

User avatar
TrevorH
Site Admin
Posts: 33191
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Apache show me "Service Unavailable".

Post by TrevorH » 2019/01/10 20:34:55

I changed my real domain name to "www.example.com". Do you have any opinion about my problem?
No, you really didn't. Example.com is a known domain name and belongs to IANA. You cannot use it.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

hack3rcon
Posts: 757
Joined: 2014/11/24 11:04:37

Re: Apache show me "Service Unavailable".

Post by hack3rcon » 2019/01/12 06:46:44

TrevorH wrote:
2019/01/10 20:34:55
I changed my real domain name to "www.example.com". Do you have any opinion about my problem?
No, you really didn't. Example.com is a known domain name and belongs to IANA. You cannot use it.
No, I mean is that I changed my real website name to "example.com" here.

lightman47
Posts: 1521
Joined: 2014/05/21 20:16:00
Location: Central New York, USA

Re: Apache show me "Service Unavailable".

Post by lightman47 » 2019/01/12 12:55:22

Again: example.com belongs to, and is in use by, someone else.

hack3rcon
Posts: 757
Joined: 2014/11/24 11:04:37

Re: Apache show me "Service Unavailable".

Post by hack3rcon » 2019/01/12 13:20:08

lightman47 wrote:
2019/01/12 12:55:22
Again: example.com belongs to, and is in use by, someone else.
As I said, I changed my real website name here to "example.com" and not in Apache config.

Whoever
Posts: 1357
Joined: 2013/09/06 03:12:10

Re: Apache show me "Service Unavailable".

Post by Whoever » 2019/01/13 06:29:24

hack3rcon wrote:
2019/01/12 13:20:08
lightman47 wrote:
2019/01/12 12:55:22
Again: example.com belongs to, and is in use by, someone else.
As I said, I changed my real website name here to "example.com" and not in Apache config.
Perhaps what you mean is that you have edited the actual log file: you have changed your actual domain name to "example.com"?

Assuming that this is the case, the issue is clearly in the restrictions that you have put in your httpd configuration. Without seeing the configuration, no one is going to be able to help you.

pjsr2
Posts: 614
Joined: 2014/03/27 20:11:07

Re: Apache show me "Service Unavailable".

Post by pjsr2 » 2019/01/13 16:04:41

There is a long list of errors and warnings in your log file.
Start with resolving the ":error" messages, starting with the first one you encounter. Others further down may be errors that are consequences of earlier ones.

Your first error message is:
[Sun Jan 06 03:30:01.641250 2019] [:error] [pid 22045] SecServerSignature: original signature too short. Please set ServerTokens to Full.
Looks like you are setting the value of ServerTokens somewhere in your configuration. The default setting is "Full". Try setting it to the default (or just remove it). Why/how did you change the settings for SecServerSignature and ServerTokens? Are you following an installation guide with outdated information, or are you copying configuration information from an old installation?
[Sun Jan 06 11:23:46.157369 2019] [:error] [pid 22960] [client 172.21.50.9:51758] PHP Fatal error: Uncaught Error: Call to undefined function mb_list_encodings() in ...
You need to install the php module php-mbstring. You may need to install additional php modules if you get similar error messages. Other php packages that you may need to install are: php-mysql, php-gd, php-xml, php-mcrypt and php-xmlrpc. To install php-mbstring:

Code: Select all

sudo yum install php-mbstring 
[Sun Jan 06 15:55:02.949152 2019] [:error] [pid 22962] [client 172.21.50.63:54436] client denied by server configuration: /var/www/html/wp-content/uploads/2017/12/4-324x160.jpg, referer: ...
The SELinux context of the files in your installation under /var/www/html/wp-*/ may be incorrect. This happens for example if you moved them from another location. To restore the SELinux context for all files under /var/www/html do:

Code: Select all

sudo restorecon -r -v -F /var/www/html
You can find useful information on SELinux in https://wiki.centos.org/HowTos/SELinux.

Post Reply