Mac end PHP Installation and PHPStorm Configuration of the platform







catalog

1. PHP Installation of


2. PHPStrom Installation of


3. to configure


4. test








1. PHP Installation of

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

1.2 cd To your PHP catalog , function ./configure --prefix=/( Your installation path )

1.3 Generally, you will be prompted to join libiconv Path to , Use first homebrew install libiconv , And then re-enter your PHP 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 of

2.1 First go to the official website to download and install ( I'm pretending 2017.3.3)

2.2 Latest activation method : First /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 select
active code Just paste the registration code







3. to configure

open PS , click preference Enter your installation below PHP catalog










4. test

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