Hello, Does anywone knows, if is possible to execute a command line (as root) from my website, using exec from a separate area in my site ? My idea is to create php.ini inside a folder and all classes in that folder have root access, But the rest of the website continues using normal apache user. Is that possible? Or is better (Secure) to use php-ssh2 to comunicate from my site as root. Thanks.
That sounds highly unsecure, but I think this is possible with sudo - you must give the Apache user sudo privileges.