Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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

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

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

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

Your Answer

 
discard

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.