Apache Configuration steps

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.