From a321910f240d4392ed26d82ef4f1c89a828a5e72 Mon Sep 17 00:00:00 2001 From: Bill Zimmerman Date: Sun, 1 May 2016 08:54:24 +0200 Subject: [PATCH] Fixes #5 --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 177a8729..c098597d 100644 --- a/README.md +++ b/README.md @@ -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. \ No newline at end of file +See the [LICENSE](./LICENSE) file.