1. First there is the Apache PHP MySQL installation package 2. Create a new folder on the D-Disk for myphp2017 2. Parse Apache installation package inside myphp2017 3. Open Apache below conf httpd.conf below to make steps to modify ① change the path of ServerRoot to "D:\myphp2017\Apache" ② Change the path of Dodocumentroot to "D:\myphp2017\Apache\htdocs" ③ the dodocumentroot below dire The path to Ctory is also changed to "D:\myphp2017\Apache\htdocs" ④ change Scriptalias to scriptalias/cgi-bin/"D:\myphp2017\Apache\cgi-bin" ⑤ in Dir Ectory "D:\myphp2017\Apache\cgi-bin" changed to <directory "D:\myphp2017\Apache\cgi-bin" > AllowOverride None Options None Require All granted </Directory>
Apache is ready to deploy.
4. Parse the PHP installation package into myphp2017 5. Under Apache conf below the httpd.conf, make the steps to modify ① on the last side of httpd.conf plus php config phpinidir "D:\myphp2017\php-7.0 . "LoadModule php7_module" D:\myphp2017\php-7.0.23\php7apache2_4.dll "AddType application/x-httpd-php. Php② in D:\ myphp2017\php-7.0.23 the following php.ini-development or php.ini-production to replicate a copy of it named Php.ini③php.ini Extension_ Dir modifies the path to Extension_dir = "D:\myphp2017\php-7.0.23\ext"
PHP configuration is ready.
6. Install Mysql-5.5.57-winx64.mis, to myphp2017
7. Configure the Apache virtual directory ① find C:\Windows\System32\drivers\etc below Hosts② in the hosts and 127.0.0.1 www.blog.com (native name address) ③ under Apache conf below the httpd.conf under the virtual hosts that row removed #④ find D:\myphp2017\Apache\conf\extra below the Httpd-vhosts.conf⑤ will be inside all comments, in the back add <virtualhost *:80> #邮箱名 ServerAdmin [email protected] documentroot "D:\myphp2017\blog\php" Serverna Me www.blog.com directoryindex login.php errorlog "Logs/blog.com-error.log" Customlog "Logs/blog.com-access.log" Common <directory "D:\myphp2017\blog\php" > Options Indexes followsymlinks allowoverride None Require all GRA nted </Directory> </VirtualHost>
Apache Configuration steps