ryr11
ryr11

Reputation: 254

Give Apache permission to write to files

I am trying to install respondCMS, and it tells me that I need to give apache permission to write files.

I cd'ed to the htdocs folder, and ran this terminal command

chown -R apache /sites

but it says chown: apache: illegal user name.

Upvotes: 1

Views: 7840

Answers (2)

Jay Versluis
Jay Versluis

Reputation: 2072

If you're using MAMP on a Mac (I assume, as the Windows version is still very much beta), then you need to change the file permissions to your own username and the group staff. That's how MAMP runs Apache. On "real" LAMP Stacks this would be very different.

So if your Mac user name is "mendocino", change the permissions in that directory with

chown -R mendocino:staff /sites

Upvotes: 1

Alex Jurado - Bitendian
Alex Jurado - Bitendian

Reputation: 1027

Apache user usually is not named apache, but www or www-data. Check it out by doing:

cat /etc/apache2/envvars | grep USER

Upvotes: 2

Related Questions