0

I'm kind of a server noob.

I'm just running httpd server which uses Nobody as the owner of the processes. My php files are chmod as 755 with ownership as Apache:Apache.

It triggers this error Mismatch between target UID (99) and UID (XX) of file "/usr/local/apache/htdocs/index2.php"

I reckon I have to

  • change owners (or group?) of my php scripts to Nobody or
  • make httpd run its processes as Apache (for which I can't find /etc/httpd/envvars)
  • something else entirely?

Please advise.

mmhan
  • 101
  • 1
  • 2

1 Answers1

1

The usual way is to run Apache as user wwww-data (or web or www, depending on the distribution), and likely the user Apache in your case, so I would use the second option.

What distribution are you using? Beside the envvars method, you can specify the user in Apache's config files as well.

Sven
  • 98,649
  • 14
  • 180
  • 226