apache27+mysql57+php56_安装说明

apache24

e:/env/apache24/conf/httpd.conf

1.替换路径

全改c:/Apache24

全为e:/env/apache24

2.添加默认首页

改:DirectoryIndex index.html

为:DirectoryIndex index.php index.html

3:apache使用php,追加配置

# php5 support

LoadModule php5_module "e:/env/php56/php5apache2_4.dll"

AddType application/x-httpd-php .php .html .htm

# configure thepath to php.ini

PHPIniDir "e:/env/php56"


0:添加为系统服务

cd e:/env/apache24/bin

httpd.exe -k install

httpd.exe -k uninstall

httpd.exe -k start|stop|restart




php56

E:\env\php56\php.ini

date.timezone = Asia/Shanghai

extension_dir = "E:/env/php56/ext"


extension=php_mysql.dll

extension=php_mysqli.dll

extension=php_pdo_mysql.dll



mysql57

1.my.ini

basedir = e:/env/mysql57

datadir = e:/env/mysql57/data

port = 3306


2.添加为系统服务

mysqld install MySQL --defaults-file="e:/env/mysql57/my.ini"

mysqld remove


net start mysql

net stop mysql


你可能感兴趣的:(apache27+mysql57+php56_安装说明)