This commit is contained in:
Bill Zimmerman 2016-05-01 08:54:24 +02:00
parent ba9a3355df
commit a321910f24
1 changed files with 2 additions and 2 deletions

View File

@ -36,7 +36,7 @@ $ sudo apt-get install lighttpd php5-cgi
After that, enable PHP for lighttpd and restart it for the settings to take effect.
```sh
sudo lighty-enable-mod fastcgi-php
/etc/init.d/lighttpd restart
sudo /etc/init.d/lighttpd restart
```
Now comes the fun part. For security reasons, the `www-data` user which lighttpd runs under is not allowed to start or stop daemons, or run commands like ifdown and ifup, all of which we want our page to do.
So what I have done is added the `www-data` user to the sudoers file, but with restrictions on what commands the user can run.
@ -86,4 +86,4 @@ Please note that these are only UI's for now. If there's enough interest I'll co
message.
## License
See the [LICENSE](./LICENSE) file.
See the [LICENSE](./LICENSE) file.