Configuring Apache2 + PHP5 + mysql5_php Tutorials

Source: Internet
Author: User
Configuration process:
  
(a) http.conf
To run PHP directly as a module of Apache:
LoadModule php5_module "C:/php/php5apache2.dll"
AddType application/x-httpd-php. php
  
In the Apache directory set up a WWW directory for storing site files, in http.conf:
Change DocumentRoot "D:/apache2/htdocs" to DocumentRoot "D:/apache2/www"
Direct Column Directory:
Options FollowSymLinks
AllowOverride None
Switch
Options Indexes FollowSymLinks
AllowOverride None
Set default characters to Chinese Simplified:
Adddefaultcharset GB2312
Re-launch Apache
  
(ii) php.ini
Copy the php.ini-dist to c:windows under the name php.ini
Extension_dir = "C:phpext"
Remove the following semicolon to support MySQL:
; Extension=php_mysql.dll
Copy the Libmysql.dll and Libmysqli.dll under the PHP directory to windows/system32.
Re-launch Apache
  
(c) Mysql
Install MySQL:
Then browse "Http://localhost/phpmyadmin"

http://www.bkjia.com/PHPjc/632878.html www.bkjia.com true http://www.bkjia.com/PHPjc/632878.html techarticle configuration process: (a) http.conf PHP directly as a module of Apache run: LoadModule php5_module c:/php/php5apache2.dll AddType application/ x-httpd-php. PHP in the Apache directory ...

  • 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.