Is there a root user in PHP?

0

The chroot() function needs the super user to work, is there a function that logs in as root?

    
asked by anonymous 15.07.2017 / 21:44

1 answer

2

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.

    
16.07.2017 / 01:25