httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Leo Papadopoulos" <...@telecomcto.com>
Subject RE: [users@httpd] Permissions problems starting tethereal from PHP in Apache
Date Wed, 30 Nov 2005 23:16:20 GMT
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:jslive@gmail.com] 
Sent: Wednesday, November 30, 2005 9:37 AM
To: users@httpd.apache.org
Subject: Re: [users@httpd] Permissions problems starting tethereal from PHP
in Apache

On 11/30/05, Leo Papadopoulos <leo@telecomcto.com> 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: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org



---------------------------------------------------------------------
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: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message