简体   繁体   English

在Windows 10上设置Apache 2.4服务器时出错

[英]Error setting up Apache 2.4 server on windows 10

I am trying to setup apache2.4 on windows10 machine. 我正在尝试在Windows10机器上设置apache2.4。 I have downloaded the apache2.4 from apachelounge website, which I extracted and put in C drive. 我已经从apachelounge网站上下载了apache2.4,并将其提取并放入C盘中。 The lines I added in the httpd.conf file are- 我在httpd.conf文件中添加的行是-

LoadModule  PHP5_module "c:/PHP/PHP5apache2_4.dll"
AddType application/x-httpd-php .php
PHPIniDir   "C:/PHP"

Now when the run the below command in command prompt with "run as admin" privilege, 现在,在具有“以管理员身份运行”特权的命令提示符下运行以下命令时,

c:\apache24\bin\httpd -S

I am getting the below error - 我收到以下错误-

httpd: Syntax error on line 522 of C:/Apache24/conf/httpd.conf: Can't locate API module structure `PHP5_module' in file C:/PHP/php5apache2_4.dll: No error

I have downloaded the PHP5.6 and extracted and put the same in C drive. 我已经下载了PHP5.6,并将其提取并放入C盘。 Can anyone please me resolve this issue ? 谁能请我解决这个问题?

尝试将LoadModule PHP5_module ...更改为LoadModule php5_module ... ,前段时间我遇到了这个问题,将该行从大写更改为小写对我有帮助

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM