Mac
SENDMAIL on MAC OSX Yosemite
SENDMAIL on MAC OSX Yosemite
http://www.garron.me/en/mac/postfix-relay-gmail-mac-os-x-local-smtp.html
1) Create a file to store our credentials:
sudo vim /etc/postfix/sasl_passwd
2) Add something like this:
smtp.gmail.com:587 username@gmail.com:password
3) Now run:
PHP 7.2 and use it instead of PHP 7.3 in Mac OS Catalina
- Install Homebrew
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
- 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/libphp7.so"
Mac Check Apache config
Use this command
apachectl configtest
To restart apache
sudo apachectl restart
Install percona-server on Mac Catalina
First of all Install Homebrew from here
After you finish you need to run this command
brew install percona-server
Initialize the DB
unset TMPDIR
mysqld --initialize --datadir=/usr/local/var/mysql --user={your username} --port=3307 --general-log-file=/var/log/percona/percona-error.log
Note :Don't forget to replace the username with your user {your username} = root
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"