Skip to main content

Mac OS Catalina apache does not read my User files

do you have this error message and you did not find any solution to solve it 


Warning: Unknown: failed to open stream: Operation not permitted in Unknown on line 0

Fatal error: Unknown: Failed opening required '/Users/{user name}/Documents/{your index.php path} (include_path='.:') in Unknown on line 0

 

Please follow the below steps 

1- Open "System Preferences"

2- Find "Security and Privacy"

3- Click on "Privacy Tab"

4- find the "Full Disk Access" on t he left side

5- Click the lock button.

6- Click on "+"

7- find the root directory and show the hidden file by click on Cmd+Shift + >

8- go to this path usr/sbin and add httpd to the list of the application 

9- restart apache "sudo apachectl restart"

 

That's it :)