PDA

View Full Version : What would you suggest I do?



Darknight
May 25th, 2009, 23:07
Im going to create a basic control panel for Debian 5,
I know some PHP/how PHP works basically and can write bash scripts
Would I be able to create something like this with that IE;

* Web script to create new users (adduser)
- Must create base domain dirs and httpd config for domain.
- Restart apache
- Send email
* Web Script to add other domains
- Must create dirs for domain & add to apache config
- Restart apache

Or would you suggest I learn another lan, if so which.

Im sure PHP would cope as other people have used PHP before for this but should I use python etc instead of norm .sh scripts for the shell stuff?

Im doing this to learn more and I really want to start from scratch using only tuts to teach me what function does what.

also whats the best way to run scripts from PHP? Im guessing its shell_exec but IDK how powerful that is and under what permissions it would run correctly for the job.