Running programs...

This is a discussion on Running programs... within the Apache forums in Application Servers & Tools category; Hello, I have a question... of course! I THINK my question is related to suexec... I have a GUI on my server, written in PHP. It has a wrapper program, written in C I think (compiled), that runs a few commands. Now, I recently upgraded my system to Fedora 9 and the latest apache. Suddenly, the wrapper program refuses to work. Strange, since I chmodded/chowned the wrapper as root:apache, 750 u+s. When I click the button that spawns the wrapped process, I see it being executed (when I very quickly run a 'ps auxww'). But it dies instantly... I don't ...

Go Back   Application Development Forum > Application Servers & Tools > Apache

Object Mix

Register FAQ Calendar Search Today's Posts Mark Forums Read
  #1  
Old 11-06-2008, 02:25 PM
Frank Kimbell
Guest
 
Default Running programs...

Hello,

I have a question... of course!

I THINK my question is related to suexec...

I have a GUI on my server, written in PHP.
It has a wrapper program, written in C I think (compiled), that runs a
few commands.

Now, I recently upgraded my system to Fedora 9 and the latest apache.
Suddenly, the wrapper program refuses to work. Strange, since I
chmodded/chowned the wrapper as root:apache, 750 u+s.

When I click the button that spawns the wrapped process, I see it
being executed (when I very quickly run a 'ps auxww'). But it dies
instantly... I don't see anything in the logs...
Apache doesn't crash, so I dont really have a backtrace or anything to
work with.

Can anyone tell me how I can make it so I can debug this? Is there a
flag I can set or something?
Or does anyone perhaps have any pointers as to what to watch out for?

Thank you.
Frank.

---------------------------------------------------------------------
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


Reply With Quote
  #2  
Old 11-06-2008, 03:37 PM
Brian Mearns
Guest
 
Default Re: Running programs...

Can you run the program from the server itself? I.e., don't use a web
browser or GUI, just go the command line and try to run the program.
It sounds like it is running, but failing (or at least failing to do
what you expect). Off hand, I'd guess this is a problem with the
program, not apache or your configuration. Perhaps the program is
trying to access some files or libraries that no longer exist since
the upgrade?

-Brian

---------------------------------------------------------------------
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


Reply With Quote
  #3  
Old 11-06-2008, 04:35 PM
Frank Kimbell
Guest
 
Default Re: Running programs...

Hi Brian,

thanks for your remark:
> Can you run the program from the server itself?


I actually did test this, but forgot to mention it.
Yes, I did run it manually, and it does what it is supposed to do.
So that's not it. It really is the combo apache+running this program...

---------------------------------------------------------------------
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


Reply With Quote
  #4  
Old 11-06-2008, 04:59 PM
Eric Covener
Guest
 
Default Re: Running programs...

On Thu, Nov 6, 2008 at 4:35 PM, Frank Kimbell <raqnerd@gmail.com> wrote:
> Hi Brian,
>
> thanks for your remark:
>> Can you run the program from the server itself?

>
> I actually did test this, but forgot to mention it.
> Yes, I did run it manually, and it does what it is supposed to do.
> So that's not it. It really is the combo apache+running this program...


SELinux?

--
Eric Covener
covener@gmail.com

---------------------------------------------------------------------
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


Reply With Quote
  #5  
Old 11-06-2008, 05:37 PM
Frank Kimbell
Guest
 
Default Re: Running programs...

> SELinux?

Nope: SELINUX=disabled

---------------------------------------------------------------------
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


Reply With Quote
  #6  
Old 11-07-2008, 02:44 AM
Nick Kew
Guest
 
Default Re: Running programs...


On 6 Nov 2008, at 19:25, Frank Kimbell wrote:

> I THINK my question is related to suexec...


Does suexec of something trivial work? If not, what's in
the suexec log?

Does it work if you turn off selinux?

--
Nick Kew

---------------------------------------------------------------------
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


Reply With Quote
  #7  
Old 11-07-2008, 03:29 AM
Frank Kimbell
Guest
 
Default Re: Running programs...

> Does suexec of something trivial work? If not, what's in
> the suexec log?


I don't really see a suexec log? Where do I find this?
In the general apache logs, I don't see anything... that's the whole
annoying part!

> Does it work if you turn off selinux?


It is, and was, off; always. (I don't like it)

---------------------------------------------------------------------
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


Reply With Quote
  #8  
Old 11-10-2008, 11:05 AM
Frank Kimbell
Guest
 
Default Re: Running programs...

Hi,

could anyone point me to a log file or suexec or something?
The standard apache error log shows nothing about my problem. ....

---------------------------------------------------------------------
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


Reply With Quote
Reply


Thread Tools
Display Modes


All times are GMT -5. The time now is 04:20 PM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
vB Ad Management by =RedTyger=

In an effort to better serve ads to our visitors, cookies are used on objectmix.com. For more information, check out our Privacy Policy.