omarel wrote:Every new folder, file, image or asset I add into a directory on my XAMPP local server requires me to give it permissions through the terminal.
Of course, as your are logged in as a different user than the user which executes Apache.
omarel wrote:I have to use this for each new asset:
chmod -R 777 /applications/xampp/xamppfiles/htdocs/directory/
This affects only the already installed files. It does not affect files, which are created after.
omarel wrote:I thought if I did once it would be ok for inherit directories and assets.
No, this is wrong.
The very best thing you can do:
edit httpd.conf and watch out for the "User = ..." statement. This is the definition, which user does execute Apache. Replace "daemon" (or whatever you find there) by your personal UserID. After then run a "chown" command to change the owner of htdocs to your userid:
sudo chown *yourUserID* /applications/xampp/xamppfiles/htdocs (where *yourUserID* is your UserID)
And then restart Apache.