hi, I have a problem,
I want to write a Web-based system administrator system,
and my development environment is RedHat 9.0 + PHP 4.2.2 + Apache 2.x
The problem is that:
I want to modify the config file (ex. /etc/crontab or /etc/hosts) by PHP, but the PHP is executed by nobody or apache account.
so, I can't modify the file.....
is any regular solution can slove this problem?
I have a idea that set the config file's premission be "apache" or "nobody", and execute "chmod 775 $file".
However, thare is a security problem here,
all user can use PHP to modify these files 🙁.....
I search the solution on internet, but I can't find it...
Can anyone help me~? thanks~