mirror of
				https://github.com/billz/raspap-webgui.git
				synced 2025-03-01 10:31:47 +00:00 
			
		
		
		
	Fixes #5
This commit is contained in:
		| @@ -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. | ||||
|   | ||||
		Reference in New Issue
	
	Block a user