LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 09-07-2004, 04:12 PM   #1
kleptophobiac
Member
 
Registered: Jun 2003
Distribution: Arch
Posts: 315

Rep: Reputation: 30
How to make a web interface...?


Well, I've built myself a snazzy file server, but I'd like to do some basic stuff via a custom web interface.

I know absolutely nothing about web programming. I tend to use projects to launch me in new directions, forcing me to learn things.

My problem here is that I have no idea how to even begin. Here's a list of things I'd like to be able to do:

- Authenticate against /etc/passwd for predefined users
- Edit configuration files with an online text editor (just a text box I can use to make quick changes)
- Start/Restart/Stop daemons listed in /etc/rc.d
- Have a pie graph of disk usage, and perhaps more detailed stats later on
- Have a table of HDD statistics (temperature via hddtemp, any failed tests via ide-smart)
- Copy files to an external device (/dev/sda1)
- Mount/unmount this external device
- Delete files on the external device
- Able to show output of a "locate blah" command, taking input from the interface

I know this is a pretty exhaustive list, but none of these on it's own should be particularly hard to implement. I'm not too worried about pam auth, as I could just store an MD5 sum. Cleartext PW is fine, it'll be on my local network.

My question:
What's the best way to approach this? i.e. should it run via Apache, or should it run a custom server (I'm proficient in Java...), if via apache - should it be PHP, a cgi-bin prog (C or java), etc.

I literally have 0 experience in this kind of thing, so I'm hoping for a little bit of initial guidance. I'm sure I'll come up with more specific questions later.

Last edited by kleptophobiac; 09-07-2004 at 04:13 PM.
 
Old 09-07-2004, 08:00 PM   #2
CroMagnon
Member
 
Registered: Sep 2004
Location: New Zealand
Distribution: Debian
Posts: 900

Rep: Reputation: 33
Do you already know HTML? I would use Apache and PHP for something like this - the authentication is easy and even written out for you in the PHP docs (and you can configure Apache to do it's authentication against the system passwd file).

The only problem I can see is that a lot of these tasks are going to need root permissions, or at the very least permissions more elevated than those of the apache user. That means sending your root (/admin) password across the network all the time. Is this box going to be available via the internet, or only on your local network? If you want internet access to it (say, to monitor/control the box from work), you'll want to be using Apache+ssl at the very least.

I predict you'll be doing a lot of "su -c 'xxxx'" style commands via PHP's passthru or exec functions.
 
Old 09-07-2004, 08:04 PM   #3
CroMagnon
Member
 
Registered: Sep 2004
Location: New Zealand
Distribution: Debian
Posts: 900

Rep: Reputation: 33
Or, of course, you could just look at installing something like webmin, and save yourself a lot of work. But that wouldn't be any fun, now would it?
 
Old 09-08-2004, 04:05 AM   #4
kleptophobiac
Member
 
Registered: Jun 2003
Distribution: Arch
Posts: 315

Original Poster
Rep: Reputation: 30
Definitely more fun to write your own, definitely local server only, definitely know HTML, and thanks.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Cant make web server run my local web page... Nik0s Linux - Newbie 22 10-08-2006 10:30 PM
Cups Web Interface treedstang Linux - General 1 10-18-2005 05:04 PM
Web interface for Vacation? dman65 Linux - Software 2 04-19-2005 11:15 AM
adding more web servers to make web server farm linuxboy69 Linux - Networking 5 07-09-2004 09:50 AM
make a database and interface is web browser wood Programming 4 01-30-2004 06:35 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 08:42 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration