note 89742 added to function.exec
| From: | khalidomer88 at yahoo dot com | Date: | Fri, 20 Mar 2009 21:23:40 +0000 |
| Subject: | note 89742 added to function.exec | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-152238@lists.php.net to get a copy of this message | ||
i tried to execute some shell commands using this function, but it don't work. it seem like i
need the root privileges to execute this commands. the commands work fine with the terminal. here is
the command i want to execute
openssl req -config openssl.my.cnf -new -nodes -keyout private/server.key -out server.csr -batch
-days 365
when i try to do the following the command doesn't execute
exec("openssl req -config openssl.my.cnf -new -nodes -keyout private/server.key -out server.csr
-batch -days 365");
the command doesn't ask for argument (configuration modified). is the problem with the apache
or the php. sorry iam new to php and linux
----
Server IP: 69.147.83.197
Probable Submitter: 41.209.88.63
----
Manual Page -- http://www.php.net/manual/en/function.exec.php
Edit -- https://master.php.net/note/edit/89742
Del: integrated -- https://master.php.net/note/delete/89742/integrated
Del: useless -- https://master.php.net/note/delete/89742/useless
Del: bad code -- https://master.php.net/note/delete/89742/bad+code
Del: spam -- https://master.php.net/note/delete/89742/spam
Del: non-english -- https://master.php.net/note/delete/89742/non-english
Del: in docs -- https://master.php.net/note/delete/89742/in+docs
Del: other reasons-- https://master.php.net/note/delete/89742
Reject -- https://master.php.net/note/reject/89742
Search -- https://master.php.net/manage/user-notes.php