apache+mysql+php

Source: Internet
Author: User

1
Copy the F:\phptools\php5.5\php.ini-production and rename it to php.ini;
2
Add F:\phptools\php5.5 and F:\phptools\php5.5\ext to the environment variable path, select Computer, right-click Properties--Advanced system settings--environment variables--system variables, find path, edit, to be added thereafter; F:\phptools\php5.5; F:\phptools \php5.5\ext


Method/Step 4, configure Apache
1
Open F:\phptools\Apache2.4\Apache24\conf with Notepad
Find ServerRoot, modify ServerRoot "C:/apache24" + ServerRoot "F:/phptools/apache2.4/apache24" (Here you enter the location after unpacking the Apache installation package)
2
Find #servername www.example.com:80, modify to ServerName www.example.com:80 (remove the previous #)
3
Find DocumentRoot "C:/apache24/htdocs", modify to DocumentRoot "F:/phptools/apache2.4/apache24/htdocs" (if same, do not change)
4
Find <directory "C:/apache24/htdocs" >, modify to <directory "F:/phptools/apache2.4/apache24/htdocs" > (if same, do not change)
5
Find DirectoryIndex index.html, modified to DirectoryIndex index.html index.php index.htm (Here we have added index.php index.htm)
6
Find scriptalias/cgi-bin/"c:/apache24/cgi-bin/" and modify it to scriptalias/cgi-bin/"F:/phptools/apache2.4/apache24/cgi-bin" ( If same, do not change)
7
Find <directory "C:/apache24/cgi-bin" > Modify to <directory "f:/phptools/apache2.4/apache24/cgi-bin/" > (If Same, Don't change it.)
8
Add LoadModule php5_module "F:/phptools/php5.5/php5apache2_4.dll" to the last line in F:\phptools\apache2.4.10\conf\httpd.conf Apache Support PHP (please confirm f:/phptools/php5.5/has php5apache2_4.dll, if you download is I provide the connection must be there)
9
Add AddType application/x-httpd-php. php. html. htm
10
Add Phpinidir "f:/phptools/php5.5" (Tell Apache PHP.ini location)
At this point, httpd.conf configuration is complete, save httpd.conf.
Latest PHP Environment Setup
END
Method/Step 5, install Apache into system services
1
Input F:\phptools\Apache2.4\Apache24\bin\httpd-k Install, enter

Virtual Domain Configuration

    1. 127.0.0.1 (not modified)  www.fangchan.com (custom)  
    2. loadmodule  vhost_alias_module modules/mod_vhost_alias.so   //Remove the previous #, meaning to enable the Apache Virtual Host feature, line No. 203  
    3. include conf/extra/httpd-vhosts.conf  //Remove # Import Virtual Host configuration   from httpd-vhosts.conf this file;
      1. <virtualhost& nbsp;*:80>  
      2. serveradmin [email protected]  
      3. Servername www.fangchan.com  //servername later modified to the domain name set in the hosts   
      4. customlog " logs/ Dummy-host2.example.com-access.log "&NBSP;COMMON&NBSP;&NBSP;
      5. </virtualhost>  

Apache+mysql+php

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.