PHP

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"

PhpStorm disable auto-save

How to disable auto-save:

  • Go to File > Settings (Ctrl+Alt+S).
  • Go to Appearance & Behavior > System Settings.
  • unchecked: the both fields
    • Save files on frame deactivation
    • Save files automatically if application is idle for x sec.
  • Go to Editor > General > Editor Tabs
  • Put a checkmark on
    • "Mark modified files with asterisk"

Click Apply > OK.

That's it.