I am a Linux newbie an dhave been following the secure webserver installation instructions but it now gives me a 'permission denied' error whenever I try to do anything. I have tried to copy back the saved lighttpd.conf.bak file that I saved in the first step which is stated in the troubleshooting to do if anything goes wrong but I get the same error and I now dont know what to do.
[admin@MyBookWorld Public]$ cp /etc/lighttpd/lighttpd.conf.bak /etc/lighttpd/lighttpd.conf
cannot create regular file ‘/etc/lighttpd/lighttpd.conf’: Permission denied
It all started when I followed all the instructions up until it told me to restart the webserver:
==> restart web server :
this failed so I typed 'reboot'. maybe this was a mistake. Now I cant do anything as it says I dont have permissions.
when I try to open in the browser http://<myBookWorld IP>:8080 it tries to save a file although the file name is blank. It states that it is an 'application/octet stream'. When I open it in notepad it is the 'Welcome.htm' file that was created earlier in the instructions ('Hello World')
The web management interface seems to work at https://<myBookWorld IP>:3210. I can edit users etc.
I didn't get to number 3 - Installing PHP Support
there may well be a simple explanation for what I have done but I am a newbie and need to learn. Any help will be appreciated.