Question

Apache2 stopped working after upgrade to v2.4 ((38)Function not implemented: AH00141)

I was happily running apache2 and mysql on a Ubuntu 16.04 server with no problems, but yesterday I noticed that there were a bunch of updates available and I installed them using apt-get.

One of the updates was apache2, upgraded to 2.4.46. Since then, apache stopped working. It returns this error when I try to start it: (38)Function not implemented: AH00141: Could not initialize random number generator. After reading some post online, I decided to upgrade my Ubuntu version to 18.04 (and then to 20.04), the process just finished, but the situation didn’t change, apache is still not working with the same error.

I read to check if /dev/random or /dev/urandom are present on the system, and they are there. I also checked that my PATH does not include any “strange” character, which it does not.

I do not know what to do to have apache working again. Can someone help me? Maybe give me some direction on how to downgrade it, I don’t know, I really have no idea.

The server is running a huge Wordpress installation, the only fallback option I can think of is to switch to nginx, but I do not know how easy it will be to configure wordpress to work with nginx, especially if it is not a new installation.

Thank you in advance, S.

Subscribe
Share

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

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.

After trying to play with grub config and trying to re install grub I decided to restore a backup. Now the server is up, with a lot of pending upgrades that I won’t install :)

I decided to try to setup a completely new droplet, and transfer all my data to this new one.

This has been a really stressful experience :) thank you @KFSys for your time and your help, it really has been super appreciated.

Hi @leeppolis,

Yes, that’s a bit older kernel than what’s recommended. Unfortunately, I’ve always dealt with CentOS grub/kernel issues. It does seem like using

update-grub 

or

update-grub2

should help and then reboot.

Hi @leeppolis,

That’s one interesting issue you got there. Unfortunately, I was not able to replicate it :(. Reading online about the issue did not help me in any way as well. I did fine some suggestions which don’t seem relevant or one type of situations only.

Having said that, I do have a suggestion. Copy your configuration files from /etc/apache2/sites-available to a different location, remove Apache2 from your Droplet and install it again. Once you have Apache return your Virtual Host files enable them and see if they are working properly.

This should lead to your problem being fixed.

Please do keep us in the loop on this topic, I’m really interested as to who it will develop!

Regards, KFSys