好了,我已经用WampServer简单的架设起一个Apache + PHP + MySQL的服务器了。
-----------------------------------------------------------
2、允许外网访问:
wamp 默认是禁止外网访问APACHE的,左键点击右下的wamp图标Apache - httpd.conf ,搜索关键字 "deny from ",会发现一处 "deny from"将其下的一行"Allow from 127.0.0.1" 之前加一个 #号,表示注释掉,新插入一行,手动输入Allow from all 。保存,重新启动下apache 服务就可以允许外网访问了。
3、apache, mysql 服务的开机自动运行
Windows - 开始? - 设置 - 控制面板 - 管理工具 - 服务,找到 wampmysqld, wampapache, 将 "启动类型" 由"手动" 改为"自动" 即可。
4、开启支持rewrite module
#LoadModule rewrite_module modules/mod_rewrite.so
去前面掉#,修改为
LoadModule rewrite_module modules/mod_rewrite.so
<Directory />
Options FollowSymLinks
AllowOverride None # 修改为AllowOverride All #
Order deny,allow
Deny from all
Satisfy all
</Directory>
<Directory "d:/wamp/www/">
#
# Possible values for the Options directive are "None", "All",
# or any combination of:
# Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
#
# Note that "MultiViews" must be named *explicitly* --- "Options All"
# doesn't give it to you.
#
# The Options directive is both complicated and important. Please see
# http://httpd.apache.org/docs/2.2/mod/core.html#options
# for more information.
#
Options Indexes FollowSymLinks
#
# AllowOverride controls what directives may be placed in .htaccess files.
# It can be "All", "None", or any combination of the keywords:
# Options FileInfo AuthConfig Limit
#
AllowOverride None # 修改为AllowOverride All #
#
# Controls who can get stuff from this server.
#
Order allow,deny
Allow from all
</Directory>