mirror of
https://github.com/billz/raspap-webgui.git
synced 2023-10-10 13:37:24 +02:00
Fixes #5
This commit is contained in:
parent
ba9a3355df
commit
a321910f24
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user