Question

How to know if I have "log4j"?

I just read about a severe security vulnerability in something called “log4j” from Apache. I have a LAMP droplet and I need to know how to find out if log4j is installed on the droplet? I don’t see a package by that name, but I’m not sure if I’m looking for the right thing.


Submit an answer


This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Bobby Iliev
Site Moderator
Site Moderator badge
December 13, 2021
Pinned Answer
Accepted Answer

Hi all,

In addition to what has already been mentioned, I could suggest taking a look at this answer here:

What should I do to protect against CVE-2021-44228/Log4shell vulnerability with Apache Log4j?

Best, Bobby

alexdo
Site Moderator
Site Moderator badge
December 11, 2021

Hello, @JigsawBob

From what I can see Apache log4j 2 is an open-source Java-based logging framework that should not be installed by default on your Apache server, hence you’ve not manually installed/configured it then CVE-2021-44228 should not affect your server.

Regards, Alex

Hi JigsawBob, log4j is not installed as part of the standard LAMP stack. Unless you installed it yourself it is not on your server so you don’t need to do anything.

Try DigitalOcean for free

Click below to sign up and get $200 of credit to try our products over 60 days!

Sign up

Become a contributor for community

Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.

DigitalOcean Documentation

Full documentation for every DigitalOcean product.

Resources for startups and SMBs

The Wave has everything you need to know about building a business, from raising funding to marketing your product.

Get our newsletter

Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.

New accounts only. By submitting your email you agree to our Privacy Policy

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.