PHP 8.5.0 Alpha 2 available for testing

Voting

: four plus five?
(Example: nine)

The Note You're Voting On

krjdev at gmail dot com
3 years ago
Note for OpenBSD users:

In the default configuration from OpenBSD, PHP runs into a chroot. So the exec() command will not work. You will get a 127 (command not found) result code. The reason is, the shell (/bin/sh) is missing in chroot, but the exec() command requires the shell.

A quick and dirty solution is to copy /bin/sh (which is statically linked) in the chroot directory:
<?php
$ cp /bin/sh /var/www/bin
?>

(I have noticed this on OpenBSD 7.0 with PHP 8.0.11.)

<< Back to user notes page

To Top