Mac end PHP Installation and PHPStorm Configuration of the platform







Catalog

1. PHP Installation


2. PHPStrom Installation


3. To configure


4. test








1. PHP Installation

1.1 Download it on the official website first php Of .tar.gz file

1.2 cd To you.PHP Catalog, Function./configure --prefix=/( Your installation path)

1.3 Generally, you will be prompted to join libiconv Path, First use homebrew install libiconv , And then re-enter yourPHP Catalog, Function
./configure --prefix=/( Your installation path) --with-iconv-dir=/(libiconv Route) If you still fail to compile, you can run
./configure --prefix=/( Your installation path)--without-iconv

1.4 make command

1.5 make install command







2. PHPStrom Installation

2.1 First go to the official website to download and install( I pretend to be.2017.3.3)

2.2 Latest activation method: First in /etc Found in directory hosts file, Add at the end 0.0.0.0 account.jetbrains.com And save, open 
http://idea.lanyus.com <http://idea.lanyus.com> Click to get the registration code, Open after copy PHPStorm And choose
active code Just paste the registration code







3. To configure

open PS , click preference Enter your installation below PHP Catalog










4. test

Build a new one. PHP file, And input:
<html> <head> <title>PHP test</title> </head> <body> <?php echo 'Hello World!'
?> </body> </html>