Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have XAMPP server installed on Red hat . I find the when ever I execute PHP scripts it executes from the owner of "nobody".

Now the problem is I need to use sudo to run some process inside the PHP script . if i use sudo , this owner "nobody" doesnt have the permission .

How do I run the scripts with different owner name ?

share|improve this question
up vote 3 down vote accepted

You should avoid XAMPP. RedHat, like any common distro already provides Apache, MySQL and PHP with real security support and correct integration.

What you want is probably this sudo parameter, but I don't think it's a good idea too:

nobody ALL = NOPASSWD: /usr/bin/youcmd

share|improve this answer
Agreed - XAMPP is meant to be used on a desktop machine as a development environment. It's folly to use it in production. – EEAA Dec 18 '09 at 15:37

You should use your in built operating system's packages. That will set things up so that things run on the right permissions.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.