关闭

wampserver 配置详解

183人阅读 评论(0) 收藏 举报
wampserver 配置详解
在wampserver按装目录下有四个配置文件,是很重要 wampmanager.tpl
 \wamp\scripts\config.inc.php
 \wamp\wampmanager.ini
wampmanager.conf
(\wamp\scripts 文件夹很重要.)

1.wampmanager.tpl  和wampmanager.ini的内容 相同 ,wampmanager.tpl 是个配置的文件的模板, 修改wampmanager.ini没作用,只有修改wampmanager.tpl , config.inc.php才会起作用。一些选项动作指定

2.wampmanager.conf
是wamp主模块的配置(apache, mysql, php)
[main]
language = "chinese"
status = "online"
wampserverVersion = 2.4
wampserverLastKnown = 2.4
installDir = "d:/wamp"
navigator = "C:\Windows\explorer.exe"
defaultLanguage = english


[php]
phpVersion = "5.4.12"
phpLastKnown = 5.4.12
phpIniDir = .
phpConfFile = php.ini
phpExeDir = .


[phpCli]
phpCliVersion = 5.4.12
phpExeFile = php.exe
phpCliFile = php-win.exe


[apache]
apacheVersion = "2.4.4"
apacheLastKnown = 2.4.4
apacheExeDir = bin
apacheConfDir = conf
apacheExeFile = httpd.exe
apacheConfFile = httpd.conf
apacheServiceInstallParams = -n wampapache -k install
apacheServiceRemoveParams = -n wampapache -k uninstall


[mysql]
mysqlVersion = "5.6.12"
mysqlLastKnown = 5.6.12
mysqlConfDir = .
mysqlConfFile = my.ini
mysqlExeDir = bin
mysqlExeFile = mysqld.exe
mysqlServiceInstallParams = --install-manual wampmysqld
mysqlServiceRemoveParams = --remove wampmysqld


[apps]
phpmyadminVersion = 4.0.4
sqlbuddyVersion = 1.3.3

3.config.inc.php
这应该是被包含的主配置文件, 从内容可知, 它包含了前面的配置文件,和定义了一些配置。

<VirtualHost *:80>
    DocumentRoot "G:/localhost"
    ServerName  localhost
    ErrorLog "logs/m.local.cc-error.log"
    CustomLog "logs/m.local.cc-access.log" common
    <Directory "G:/localhost">
        Options Indexes FollowSymLinks
        DirectoryIndex index.html index.php
        AllowOverride all
        Order allow,deny
        Allow from all
    </Directory>
</VirtualHost>

<VirtualHost *:80>
    DocumentRoot "F:/PhpLearn"
    ServerName  phplearn.com
    ServerAlias  phplearn
    ErrorLog "logs/m.local.cc-error.log"
    CustomLog "logs/m.local.cc-access.log" common
    <Directory "F:/PhpLearn">
        Options Indexes FollowSymLinks
        DirectoryIndex index.html index.php
        AllowOverride all
        Order allow,deny
        Allow from all
    </Directory>
</VirtualHost>



0
0

查看评论
* 以上用户言论只代表其个人观点,不代表CSDN网站的观点或立场
    个人资料
    • 访问:4971次
    • 积分:320
    • 等级:
    • 排名:千里之外
    • 原创:27篇
    • 转载:10篇
    • 译文:0篇
    • 评论:0条
    文章分类