Thanks. I think I have a workaround. I will run a CRON job every 5 mins that
checks for the existence of a file. The file will be called tethereal_on.txt
or tethereal_off.txt. PHP will create the file to turn tethereal on/off.
CRON will actually do it. Problem is the 5 min lag, but I don't want to CRON
too often either.

-----Original Message-----
From: Joshua Slive [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, November 30, 2005 9:37 AM
To: users@httpd.apache.org
Subject: Re: [EMAIL PROTECTED] Permissions problems starting tethereal from PHP
in Apache

On 11/30/05, Leo Papadopoulos <[EMAIL PROTECTED]> wrote:
> Dear httpd users,
>
> I am trying to start tethereal from within a PHP script running on Apache.
> I am using the PHP system("tethereal", $return_val) command to do this.
>
> However I get an error something like "socket: Operation not permitted".
> Does anyone know what I can do?

The User/Group specified in httpd.conf doesn't have the rights to run
the program.

You can look into tools like sudo to grant more rights, but be careful
since it is easy to compromise the security of your server.

Joshua.

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to