I was trying to install a Joomla on my Macbook Air under XAMPP. I successfully installed it, but when I try to open the front-end, I keep getting this
mkdir():permission denied error.
Two questions raised while I was trying to solve this problem:
1) I noticed when I do
ls -l, owners of some folders are
admin, while those of other folders are
root:admin. I am the only user of this computer and the
myname user should have all root privileges. I don't understand:
A.why when I do
chmod I had to
B.why there are folders with different owner.
2) To solve the problem, I violently change owner of all related files and directories to
root:root and permissions of those to
0777. But eventually I will have to move this over to production server, it is not wise to keep the owner and permission like this. Is there any better way to solve the problem while keeping the owner/permission setting as intact as possible?