The localhost is not responding.
The localhost is not responding.
Understand how permissions function and apply them correctly—they are there to safeguard you. Maintain Apache running under the www user, designate a folder as the webroot, alter the owner and group of that folder to www:www, and set its access rights to 640. Ensure every file inside is also owned by www:www with 640 permissions. This setup stops web users from gaining full access to your filesystem, which would be extremely dangerous.
yup everything is as it was before now.I restored it. I haven't changed any permissions for these folders nor do I know what 660 means. I don't want to deal with linux style permission changing, I am sure the default configuration of macOS is fine. I changed back the user to www and the folder to the default for apache so it's all good. Also it's a local server so doesn't this mean nobody else has access?