Home > Backend Development > PHP Tutorial > Configure Apache2 + PHP5 + MYSQL5_PHP tutorial

Configure Apache2 + PHP5 + MYSQL5_PHP tutorial

WBOY
Release: 2016-07-13 10:47:22
Original
750 people have browsed it

Configuration process:

(1) http.conf
Run PHP directly as a module of apache:
LoadModule php5_module "C:/php/php5apache2.dll"
AddType application/x -httpd-php .php
 
Create a www directory in the Apache directory to store site files. In http.conf:
Change DocumentRoot "D:/Apache2/htdocs" to DocumentRoot "D:/Apache2/www"
Directly list the directory:
Options FollowSymLinks
AllowOverride None
Change to:
Options Indexes FollowSymLinks
AllowOverride None
Set the default character to Simplified Chinese:
AddDefaultCharset GB2312
Restart apache

(2) php.ini
Copy php.ini-dist to C:windows and rename it to php.ini
extension_dir = "C:phpext"   
Remove the following semicolons to support mysql:
  ;extension=php_mysql.dll
  Copy libmysql.dll and libmysqli.dll in the php directory to windows/system32.
Restart apache

(3) Mysql
Install Mysql:
Then browse to "http://localhost/phpmyadmin"

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/632878.htmlTechArticleConfiguration process: (1) http.conf 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...
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template