I have a problem with my localhost under mac OS Catalina; here is my error obtained,
I followed this tutorial https://www.youtube.com/watch?v=hVHFPzjp064 for the procedure to properly configure my local server, if you can help me solve this problem, maybe it is a security on new macs.
My error:
Forbidden
You don't have permission to access this resource.
I thank you in advance
2
Answers
The issue is that the php module is disabled in Catalina. You have to enable it in
/etc/apache2/httpd.conf
. Follow these steps.sudo nano /etc/apache2/httpd.conf
. Enter password when prompted.#LoadModule php7_module libexec/apache2/libphp7.so
and uncomment it (delete the leading #)scroll down and find the following
change to
Control + X
thenY
to save changes. Pressenter
when prompted for filenamesudo apachectl restart
Now your site root should work since php is enabled.
Quick note to say that the httpd.conf is exactly the same in Big Sur, so the same changes as above need to be applied.