windows编程

海乃百川,有容乃大。

wampserver 配置详解
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>



阅读更多
想对作者说点什么? 我来说一句

没有更多推荐了,返回首页

不良信息举报

wampserver 配置详解

最多只允许输入30个字

加入CSDN,享受更精准的内容推荐,与500万程序员共同成长!
关闭
关闭