I am trying to make a lightweight frontend for my fileserver. I use PHP to display all the files, but readdir() is executed as the http user, because apache is started as this user.
This is a problem, because I want to view all my files. Therefore, readdir() has to be run as root, but I don't know how to do that. Can you guys help me?