Macos – Make XAMPP program directory writeable

macmacospermissionsSecurityxampp

I'd like to be able to write to the XAMPP directory so that I can run PHP scripts from there rather than my "Sites" user folder.

How can I do that? I'm using 1.7.3.

Currently, if I try to write (copy or save files to) to the XAMPP Application directory, I get a file permissions error. I have a similar issue with the wordpress code editor. (It says to make the file "writeable".)

Best Answer

Sounds like a permissions problem. You can set permissions for the XAMPP folder by right clicking on it and click on Get Info. From there expand Sharing and Permissions at the bottom if it already isn't. Depending on where the folder is you may need to click the lock icon at the bottom right to allow you to make changes. Then you will have access to change the permissions.

If your user account is not in there already, click the little + icon in the lower left and add your user account in. Finally, next to your account name in the Privilege column select Read and Write. You should now be able to write files into this folder, and this process is also the same for adding write permissions to files.

Related Question