First download Apache on the official website, install. After installation, locate the httpd file in the installation directory, open httpd file, find: servername change to: localhost:80 (change according to the actual situation); Change DocumentRoot "E:/project/phpproject" (according to the directory where the actual project is located), change <directory "E:/project/phpproject" > (according to the actual project directory); DirectoryIndex index.php index.html (Apache home default file, of course you can also define more, priority to find the front, no words to find the back); Change LoadModule php5_module "D:/php/php5apache2_4.dll" (Php5apache2_4.dll file path in the directory where PHP was extracted), Phpinidir "d:/php" (the Directory after PHP decompression), AddType application/x-httpd-php. php. html. HTM (let Apache support PHP, HTML, htm Three formats, of course you can define more formats); Apache configuration is complete.
The second step to download PHP, note to download the safe thread version, Non safe version of the inside no Php5apache2_4.dll file, I just started to download the wrong, went to the Bay Road. Unzip after download. Open the Extract directory, change the php.ini.develop to PHP.ini, open php.ini, the extension=php_curl.dll percent of the semicolon removed (the other), change extension_dir = "d:/php /ext"; Change date.timezone = Asia/shanghai
PHP Development Environment Configuration