The chroot()
function needs the super user to work, is there a function that logs in as root?
The chroot()
function needs the super user to work, is there a function that logs in as root?
This is machine configuration, include your Apache user (www-data) in sudoers. In the terminal, do:
# visudo
# vim /etc/sudoers
Add at the end of the file:
www-data ALL=(ALL) ALL
But be careful with that. You'll be letting Apache do whatever you want. There are ways you can specify what the user can do as root, which is ideal for you.