发布网友 发布时间:2022-04-26 15:37
共1个回答
热心网友 时间:2023-10-12 07:55
wamp用于架设Apache+Php+Mysql空间下载运行安装,选择安装目录,例D:\wamp,D:\wamp\www为网站内容存储路径。运行后可以通过Windows 右下角 "托盘区" 中的wamp图标,来管理wamp 服务状态,可以停止或重新启动 apache,mysql 服务。当改过 conf 配置文件,必须要重新启动才可以生效。右键点击右下的wamp图标,选择language - chinese,即可改为中文界面。设置:1.允许*访问apachewamp 默认是禁止*访问APACHE的,左键点击右下的wamp图标Apache - httpd.conf ,搜索关键字 "deny from ",会发现一处 "deny from"将其下的一行"Allow from 127.0.0.1" 之前加一个 #号,表示注释掉,新插入一行,手动输入Allow from all 。保存,重新启动下apache 服务就可以允许*访问了。2.apache, mysql 服务的开机自动运行Windows - 开始? - 设置 - 控制面板 - 管理工具 - 服务,找到 wampmysqld, wampapache, 将 "启动类型" 由"手动" 改为"自动" 即可。3.开启支持rewrite mole#LoadMole rewrite_mole moles/mod_rewrite.so去前面掉#,修改为LoadMole rewrite_mole moles/mod_rewrite.soOptions FollowSymLinksAllowOverride None # 修改为AllowOverride All #Order deny,allowDeny from allSatisfy all</Directory> ## 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,denyAllow from all4.php配置查找short_open_tag = Off,把off改成On,注意是前面没有#号的那一排。memory_limit = 128M ;最大内存使用,运行程序提示内存不足时可修改其大小upload_max_filesize = 2M ;附件大小