wamp安装(都是一键安装)正常启动后,做一些基本配置的介绍:
1.打开rewrite_module,方法一:左键点击wamp图标,鼠标移至Apache,然后平移至Apache模块,勾选rewrite_module;另一种方法,打开路径----D:\wamp64\bin\apache\apache2.4.23\conf(具体安装路径可对照参考,这里只做示例),打开该目录下的httpd.conf,找到约第172行左右,
#LoadModule rewrite_module modules/mod_rewrite.so,去掉#;
2.php配置allow url fopen,与服务器时区设置;见下图(图一开启短标签,图二设置时区):
3、配置外网访问;
(1).修改httpd.comf文件以下内容:
大概244行:
改为
<Directory />
AllowOverride none
Require all granted
</Directory>
大概288行:
改为
# onlineoffline tag - don't remove
Require all granted
大概387行:
改为
<Directory "${INSTALL_DIR}/cgi-bin">
# AllowOverride None
Options None
Require all granted
</Directory>
(2)打开httpd-vhosts.conf 将Directory里面内容更换为以下内容
<Directory "your-directory(你的实际目录)">
Options +Indexes +Includes +FollowSymLinks +MultiViews
AllowOverride All
Require local
Require all granted
</Directory>
基本配置完成,本文完结。