Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

hey, first sorry for my bad english, and I do not know if the best place for this is here or stackoverflow :/ - I need to do a webpage on which someone can change a file on a linux machine. Think in a page that you can access from other computers and check a checkbox to enable/disable squid or something like that. I already have a debian VM running (no GUI). The problem is i dont even know where to start, I have little experience with linux (would know how to do that on windows, with iis+php or - Another problem is that I need to use as little resources from the machine as possible because its a small computer. Dont need to be fancy, i only need a http server to show me some pages and a server-side language so I can make things happen. Well, maybe a little fancy because I need to change some files as root, so i need some kind of auth as well - What is the most simple way to do that (if any)? nginx, lighttpd, other? And to do the work? (I suppose I can use PHP, but feels like it is to heavy just for this simple task...)

share|improve this question
up vote 0 down vote accepted

This is a job for a small web server, like nginx, running a simple cgi or wsgi script which modifies the files there. You can do simple auth (with a single password) within a one-file script fairly securely, provided that you never make the contents of the script public.

You may want to ask on Stack Overflow for more help with the programming aspects of your question. If you don't know where to start, that's probably the biggest obstacle to getting this done.

share|improve this answer
thank you Kedeki, i have sucessfully installed nginx on debian, the config file is simple, so now i have the server running. But while researching how to install wsgi, I found CherryPy project that looks like a better solution for me. Thanks anyway, your tip gave me the right direction :) – Leo Nov 22 '10 at 19:01

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.