Termux-packages: Apache2 error

Created on 26 May 2019  路  12Comments  路  Source: termux/termux-packages

when I try to start an apache2 server, I ran into this error message:

[Sun May 26 17:56:58.337970 2019] [:crit] [pid 0] (38)Function not implemented: AH00141: Could not initialize random number generator

I would appreciate it if you can help me

bug report

Most helpful comment

Noticed the following line in strace log:

getrandom(0xbe86fb30, 8, 0)             = -1 ENOSYS (Function not implemented)

Looks like the cause why RNG cannot be initialized.

All 12 comments

Have same issues like this

Android Version 5.1.1
Termux Version 0.72
Apache2 Version 2.4.39-1

Same issue here. It was working fine , but seemed to stop after the APR package was upgraded to APR 1.7.0.

Android 7.0
Termux 0.76
Apache2 2.4.39-1
APR 1.7.0

Just realized my termux was not using the termux-packages-24 repo. I upgraded based on the instructions in the project's README.md and re-installed apache2. Problem persists.

Got same issue after termux reinstallation
Android 5.1.1
Termux 0.76

The same here on:
Android 6.0.1
Termux 0.72
apr 1.7.0
apache 2.4.39-1

Despite setting LogLevel to debug in /data/data/com.termux/files/usr/etc/httpd.conf nothing shows in /data/data/com.termux/files/usr/var/log/apache2

Noticed the following line in strace log:

getrandom(0xbe86fb30, 8, 0)             = -1 ENOSYS (Function not implemented)

Looks like the cause why RNG cannot be initialized.

so what we'll have to do when the commit is merged?

so what we'll have to do when the commit is merged?

Update of course.

So why don't you just merge the commit?

Just merging will not change anything. Packages on android-5 branch are built by @fornwall.

It works!

Just updated apr package to apr-1.7.0-1 and can confirm "apachectl start" with the default configuration files does start httpd now. Browsing to http://localhost:8080 yields the familiar "It works!" default index page. I also copied some of the web pages I had been testing and httpd now appears to serve them as expected.

For the record, I am running Android 7.0 and my termux install is pulling from the termux-packages-24 repo.

Now fixed in the latest libapr version - run pkg up to update.

Thanks for reporting!

do you have any informations where i can download apr-1.7.0-1 manual

Was this page helpful?
0 / 5 - 0 ratings

Related issues

thurask picture thurask  路  3Comments

Zuccace picture Zuccace  路  3Comments

reggi picture reggi  路  4Comments

tigran123 picture tigran123  路  3Comments

loveablefellow007 picture loveablefellow007  路  3Comments