Skip to main content


PHP 7.2 and use it instead of PHP 7.3 in Mac OS Catalina

- Install Homebrew

ruby -e "$(curl -fsSL"

- brew install [email protected]

- echo 'export PATH="/usr/local/opt/[email protected]/bin:$PATH"' >> ~/.bash_profile

- echo 'export PATH="/usr/local/opt/[email protected]/sbin:$PATH"' >> ~/.bash_profile

- source ~/.bash_profile

-open /private/etc/apache2/httpd.conf

- add this line "LoadModule php7_module /usr/local/opt/[email protected]/lib/httpd/modules/"

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"