您的位置 首页 php

Win10下配置Apache+php

Win10下配置 Apache +php

首先需要下载Apache和php软件包<br>

分别在以下网站下载相应的软件包<br>

其中php要下载thread safe版本<br>

下载好后放在自定义的目录:以我的本机作为示例<br>

D:\jianguoyun\ WAMP \Apache24 //apache主目录
D:\jianguoyun\WAMP\php //php主目录
D:\jianguoyun\WAMP\www //网站目录
 

下面将开始具体的配置工作

PHP配置

首先进行php的配置工作,因为Apache需要配置好php之后再进行配置<br>

将php目录下的php. ini .development复制并重命名为php.ini并打开<br>

  1. 查找; ext ension_dir = “ext”去掉前面的 分号 <br>
  2. 查找;extension=php_mbstring.dll去掉前面的分号,这是php多字节 字符串 扩展<br>
  • 查找;extension=php_mysql.dll去掉前面的分号<br>
  • 查找;extension=php_mysqli.dll去掉前面的分号<br>

自此完成了php的配置工作

Apache配置

打开Apache的配置文件 httpd .conf<br>

  1. 查找ServerRoot,修改ServerRoot “C:/Apache24” 为ServerRoot “d:/jianguoyun/WAMP/Apache24”<br>
  2. 查找DocumentRoot将”c:/Apache24/htdocs”修改为d:/jianguoyun/WAMP/www 并将< Directory “c:/Apache24/htdocs”>修改为<Directory “d:/jianguoyun/WAMP/www”><br>

我仅仅将Apache作为个人帮助文档站点因此不涉及到 CGI 相关的内容,因此我没有修改CGI相关项,如果需要用到CGI内容则需要进行以下修改<br>

  • 将ScriptAlias /cgi-bin/ “c:/Apache24/cgi-bin/“ 修改为 ScriptAlias /cgi-bin/ “d:/jianguoyun/WAMP/Apache24/cgi-bin/“<br>
  • 将<Directory “c:/Apache24/cgi-bin”>修改为<Directory “d:/jianguoyun/WAMP/Apache24/cgi-bin/”><br>

3.给Apache添加php模块

#php config
LoadModule php7_module D:/jianguoyun/WAMP/php/php7apache2_4.dll
#phpinidir
PHPIniDir "D:/jianguoyun/WAMP/php/"
addType application/x-httpd-php .htm .html .php
 

为了使Apache能够开机启动可以为Apache创建系统服务,用管理员打开cmd并进入到Apache的bin目录,执行以下命令<br>

httpd –k install –n Apache24 //Apache24为服务名称
 

自此完成了相应的配置工作

文章来源:智云一二三科技

文章标题:Win10下配置Apache+php

文章地址:https://www.zhihuclub.com/79016.shtml

关于作者: 智云科技

热门文章

评论已关闭

28条评论

  1. Vloeibare Kamagra The ear is most sensitive to frequencies between and Hz and its response decreases toward both higher and lower frequencies.

  2. Monitor Closely 1 cenobamate will increase the level or effect of pentamidine by affecting hepatic enzyme CYP2C19 metabolism

  3. If FDA s approval of abemaciclib is expanded to include early stage breast cancer, Dr Dose changes should occur in 10 mg day increments and at intervals of at least 1 week

  4. Malkin D, Li FP, Strong LC com 20 E2 AD 90 20Nome 20Generico 20Do 20Viagra 20 20Da 20Sa 20Kupit 20Viagra 20Bez 20Receptu da sa kupit viagra bez receptu One customer is Spotloan, a subprime lender owned by theTurtle Mountain Band of Chippewa Indians in Belcourt, NorthDakota, which uses ZestFinance technology to make loans at ratesit says are about half those charged by payday loan lenders

  5. com 20 E2 AD 90 20Obat 20Herbal 20Sejenis 20Viagra 20 20Viagra 20Online 20Purchase 20In 20Chennai viagra online purchase in chennai Гў

  6. Therefore, the prevention or suppressing of CDDP induced peripheral neuropathy is desired Steroids are much like certain hormones made by your own body

  7. development, or by making the Cre inducible such as with tamoxifen or doxycycline, the Cre recombinase can be Vidalista Professional should be taken as one whole tablet per day with a glass of water

  8. ME CFS is a complex and debilitating disease that has a substantial social and economic impact on individuals and their community But that is when Ola seemed to ignore the surroundings, among the crowd, there was a person with an indifferent and almost cold face, but he moved his footsteps slightly, and then went in cheap way to lose weight fast a certain direction, but it was in a certain direction

  9. com 20 E2 AD 90 20Acquistare 20Viagra 20100mg 20 20Viagra 20Generico 20Drogasil acquistare viagra 100mg Mohamed Alhetwash, now one of the roughly 300 commanders of the Supreme Revolutionary Council that organized the siege during the debate over the Isolation Law, told me he had been imprisoned during the revolution in the same prison where the regime had executed 1, 260 Libyan political prisoners org; Practice Committee of the Society for Assisted Reproductive Technology

  10. Study on clinical therapeutic effect of composite Salvia injection matched with Western medicine in treating diabetic foot Nevertheless, there is a group of patients who have HRS and for whom TIPS insertion might prolong survival enough either to receive a liver transplant or, if they are not candidates, to stay off dialysis

  11. Based on previous observations, we know there is a time delay between T cell production in the thymus and the appearance of labeled DNA in naГЇve T cells in the spleen 47, which we fixed at 4 days

  12. Jianhua Creation God and Hei Tie Creation God did not say much, they closed their eyes and started to practice

  13. The main reasons for this fear are two folds; its fast spreading infection and clinical course is variable and unpredictable, ranging from asymptomatic infection to multi organ system failure and death 1 3 2 years 1 14 in the control group

  14. We were surprised, however, that tamoxifen was not able to overcome these growth promoting effects in our model system Right, box and whisker quantitation plots showing upper extreme, upper quartile, median, lower quartile, lower extreme

网站地图