PHP exec system calls not working in Debian 6

After migrating Current website to Debian 6, PHP calls exec and system stopped working.
The reason for it is debian package dash which modifies behaviour of system default shell:

# ls -l /bin/sh
lrwxrwxrwx 1 root root 4 Dec  9 20:25 /bin/sh -> dash

To revert this this behaviour to standard, execute

# dpkg-reconfigure dash

dash dpkg-reconfigure debian linux

Select “No” and default shell will be changed to standard bash.

You can check it with following command:

# ls -l /bin/sh
lrwxrwxrwx 1 root root 4 Dec  9 20:26 /bin/sh -> bash

Leave a Reply

Your email address will not be published. Required fields are marked *