apache的配置文件
httpd.conf // apache/conf
//修改http.conf这个文件的编辑权限
<Directory />
Options All
AllowOverride All
Order deny,allow
Allow from all
</Directory>
LoadModule php5_module "E:/PROGRA~1/EASYPH~1.9/php/php539x141026161807/php5apache2_2.dll" //应用php模块
PHPIniDir "E:/PROGRA~1/EASYPH~1.9/apache" //指定php的配置文件路径 (可以通过phpinfo() 的Loaded Configuration File 来查看)
<FilesMatch "^\.ht"> //判断是用什么模块来处理
DocumentRoot "E:/PROGRA~1/EASYPH~1.9/www" //更改访问目录路径 (默认是apache/htdocs)
include conf/extra/httpd-vhosts.conf //httpd.conf 应用文件 该文件是配置虚拟主机的
php 配置文件
php.ini
date.timezone = Europe/Paris //修改时区 PRC
extension //扩展功能
extension=php_mysql.dll //链接数据库的扩展
extension_dir = "E:\PROGRA~1\EASYPH~1.9\\php\php539x141026161807\ext\" //存放扩展的目录路径
mysql 配置
F:\2016-2-23\EasyPHP-12.1\modules\phpmyadmin3522x160301181143\libraries
config.default.php
打开 phpmyadmin里的config.inc.php文件
$cfg[‘Servers‘][$i][ ‘host‘] = ‘localhost‘;
$cfg[‘Servers‘][$i][‘port‘] = ‘3306‘;
$cfg[‘Servers‘][$i][‘connect_type‘] = ‘socket‘;
$cfg[‘Servers‘][$i][‘extension‘] = ‘mysql‘;
$cfg[‘Servers‘][$i][‘auth_type‘] = ‘config‘;
$cfg[‘Servers‘][$i][‘user‘] = ‘root‘;
$cfg[‘Servers‘][$i][‘password‘] = ‘‘; //有密码的话设置密码
$cfg[‘Servers‘][$i][‘only_db‘] = ‘‘;
$cfg[‘Servers‘][$i][‘nopassword‘] = true;