If you get this, simply update to latest JDK from Oracle here:
https://www.oracle.com/java/technologies/javase-jdk14-downloads.html
In my case, after updating to JDK 14, it worked fine.
Thursday, June 18, 2020
Saturday, June 13, 2020
Solve AH10034: The mpm module (prefork.c) is not supported by mod_http2
Complete error.log line:
[Sat Jun 13 15:57:54.049273 2020] [http2:warn] [pid 23029] AH10034: The mpm module (prefork.c) is not supported by mod_http2. The mpm determines how things are processed in your server. HTTP/2 has more demands in this regard and the currently selected mpm will just not do. This is an advisory warning. Your server will continue to work, but the HTTP/2 protocol will be inactive.
You would need to change mpm loaded module:
Comment this line:
#LoadModule mpm_prefork_module modules/mod_mpm_prefork.so
Uncomment this line:
LoadModule mpm_event_module modules/mod_mpm_event.so
Redirect www to apex domain
This is also to solve certificate error in case DNS Name from certificate only contains apex domain.
To quickly solve this, following redirect is needed - e.g. for domain easybiny.com:
RewriteEngine on
RewriteCond %{SERVER_NAME} =www.easybiny.com
RewriteRule ^ https://easybiny.com%{REQUEST_URI} [END,NE,R=permanent]
RewriteRule ^ https://easybiny.com%{REQUEST_URI} [END,NE,R=permanent]
Solve AH01909: server certificate does NOT include an ID which matches the server name
This is just to make sure ServerName directive has the same name as the one from certificate.
Example:
...
ServerName easybiny.com
...
Certificate:
...
easybiny.com
...
Solve AH01276: Cannot serve directory No matching DirectoryIndex (index.html,index.php) found, and server-generated directory index forbidden by Options directive
I get the following error in error.logs:
[Sat Jun 13 13:20:28.420637 2020] [autoindex:error] [pid 23018] [client 44.224.22.196:40224] AH01276: Cannot serve directory /var/www/html/: No matching DirectoryIndex (index.html,index.php) found, and server-generated directory index forbidden by Options directive
To quickly solve it, make sure DocumentRoot points to a valid folder where index.php or index.html is found:
vi /etc/httpd/conf/httpd.conf
Replace:
DocumentRoot "/var/www/html"
With:
DocumentRoot "/var/www/html/easybiny/prod"
Friday, May 29, 2020
Deny Apache access by public IP - Fix error "script not found or unable to stat"
If you noticed following error in Apache error.log:
[Sat May 30 05:47:30.731862 2020] [php7:error] [pid 18581] [client 188.131.234.5 :2359] script '/var/www/html/easybiny/elrekt.php' not found or unable to stat
And corresponding Apache access.log:
188.131.234.5 - - [20/May/2020:05:47:30 +0000] "GET /elrekt.php HTTP/1.1" 404 415 0 "-" "Mozilla/5.0 (Windows; U; Windows NT 6.0;en-US; rv:1.9.2) Gecko/20100115 Firefox/3.6)" "[XF -]" 52.203.153.105
You will be noticing that user/crawler is trying to access via your public server IP - 52.203.153.105
To prevent this, you need to add the following vhost to your httpd.conf file and reload apache configs:
<VirtualHost *:80>
ServerName 52.203.153.105
Redirect 403 /
ErrorDocument 403 "Access Denied"
DocumentRoot /var/www/html/easybiny
UseCanonicalName Off
UserDir disabled
</VirtualHost>
ServerName 52.203.153.105
Redirect 403 /
ErrorDocument 403 "Access Denied"
DocumentRoot /var/www/html/easybiny
UseCanonicalName Off
UserDir disabled
</VirtualHost>
You can now test with a simple curl:
curl 52.203.153.105/elrekt.php
Access Denied
Yes - you get 403 access denied and no more errors in logs.
Saturday, May 9, 2020
Solution for Dynamics Message: To group conditions, select two or more conditions or groups ...
When trying a Group OR, following message appears:
Simply make sure you select each condition that needs to be part of OR clause:
Once all selected, you can get the desired selection as per below:

Simply make sure you select each condition that needs to be part of OR clause:
Once all selected, you can get the desired selection as per below:
Subscribe to:
Posts (Atom)