I am planning to use PHP version 5.6.31. Hence, i compiled and installed OPENSSl-1.0.1, PCRE-8.41, CURL 7.55.1, APACHE-2.4.27. Everything built in 64 bit configuration.
I did bundle the chroot environment in the machine. Copied every dependency library in the bundled folder
Ran the following commands to make dev folder
mknod /chroot_jail/dev/null c 1 3
chown root.sys /chroot_jail/dev/null
chmod 666 /chroot_jail/dev/null
chmod 777 /chroot_jail/tmp
Then, when i tried to run the apache with the following command, i faced error
/usr/sbin/chroot /chroot_jail /apache/bin/httpd -k start
Error : ah00141: could not initialize random number generator
I tried the following idea to fix it, but nothing worked.
Idea 1 : cp /usr/lib/systemd/system/rngd.service /etc/systemd/system
Edit the /etc/systemd/system/rngd.service file and replace the line starting with ExecStart with:
ExecStart=/sbin/rngd -f -r /dev/urandom
Reload the Systemd configuration:
systemctl daemon-reload
Restart the rngd service:
systemctl restart rngd
Idea 2 : Tried compiling apr and apr-util separately and then installed apache by giving external path.
Guide me in this issue, please
Aucun commentaire:
Enregistrer un commentaire