Window is connected to PHP + Apache + MySql

Source: Internet
Author: User

Extract php-5.0.5-win32.zip to the target file, save PHP. ini-Dist as PHP. ini, and modify
Extension_dir = "D: \ PHP \ Ext" // maps to the extension file of the PHP extension file, which is saved to some extension DLL, such as php_mysql.dll and php_pdo.dll.

 

Select the module to be loaded and remove the previous ";", which indicates that the module is to be loaded. The more loaded, the more resources are occupied, but there are no more modules, for example, if you want to use MySQL, remove ";" before "; Extension = php_mysql.dll. All module files are placed under the "Ext" directory of the PHP decompression directory.

 
2. After installing Apache, change httpd. conf.
Loadmodule php5_module "D:/PHP/php5apache2_2.dll" // Add the plugin PHP parsing module.
Phpinidir "D:/PHP/" // the object of PHP. ini
DocumentRoot "D:/apache_php_test" // modify the main category of the website's website
<Directory "D:/apache_php_test">
...
</Directory>

Addtype application/X-httpd-PHP. php // you can add another PHP library, such as html.shtml)

(The above are the most important settings)

 

 

3. Install php5ts. dll, php_mysql.dll, and phpmysql. DLL to the C: \ window \ system32 directory after installing MySQL.

 

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.