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 ?

link|improve this question

33% accept rate
feedback

2 Answers

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. http://www.apachefriends.org/fr/xampp-linux.html#1053

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

link|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. – ErikA Dec 18 '09 at 15:37
feedback

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

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

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