Exec() wont run program

From: Date: Fri, 10 Oct 2003 20:24:49 +0000
Subject: Exec() wont run program
Groups: php.general 
Request: Send a blank email to php-general+get-165791@lists.php.net to get a copy of this message
I want to start up a program through a php page. For example, gedit. I found that the user is apache by running this: - passthru('whoami'); since apache might not have access to run a certain command, I'll use sudo. I edited the sudoers file in /etc/sudoers and underneath the line: # User privilege specification, I added: apache ALL=(ALL) NOPASSWD: ALL which would give apache access to run any command without a password. So in my php file the line looks like this: exec("sudo gedit"); And it doesn't do anything. Any suggestions.

« previous php.general (#165791) next »