uwamp服务器怎么运行,httpd.exe:语法错误,uWamp服务器中的PHP 5.2.17(httpd.exe: Syntax error, PHP 5.2.17 in uWamp server...

httpd.exe:语法错误,uWamp服务器中的PHP 5.2.17(httpd.exe: Syntax error, PHP 5.2.17 in uWamp server)

我想更新一个我做过的旧项目。 它用PHP版本编写:5.2.17。 当我为uWamp下载了正确的版本时,我收到了这个错误

httpd.exe:C:/UwAmp/bin/apache/conf/httpd.conf的第166行的语法错误:LoadModule有两个参数,一个模块名称和一个共享对象文件的名称,用于加载它。

有人可以帮我解决这个错误吗?

I wanted to update a old project i've made. Its written in PHP version:5.2.17. When I downloaded the correct version for uWamp I recieve this error

httpd.exe: Syntax error on line 166 of C:/UwAmp/bin/apache/conf/httpd.conf: LoadModule takes two arguments, a module name and the name of a shared object file to load it from.

Can somebody help me with this error?

原文:https://stackoverflow.com/questions/36575833

更新时间:2020-02-14 11:31

最满意答案

确保您拥有正确的Visual C ++ Redistributable x86,就像他们在下载页面上所说的那样。

相同的错误,但最近的PHP版本,更正与安装正确的文件。

在使用UwAmp之前,必须安装Visual C ++ Redistributable x86 version vc_redist.x86.exe。 这是PHP的要求。

对于PHP旧版本,您需要:下载VC6 2005 vc_redist.x86.exe

对于PHP 5.3,您需要:下载VC9 2008 vc_redist.x86.exe

对于PHP 5.4+,您需要:下载VC11 2012 vc_redist.x86.exe

对于PHP 7.x +,您需要:下载VC14 2015 vc_redist.x86.exe

Make sure you have the right Visual C++ Redistributable x86, like they tell on the download page.

Same error but with a recent php version, corrected with installation of the right file.

Before use UwAmp you must install Visual C++ Redistributable x86 version vc_redist.x86.exe. This is a PHP requirement.

For PHP older version you need : Download VC6 2005 vc_redist.x86.exe

For PHP 5.3 you need : Download VC9 2008 vc_redist.x86.exe

For PHP 5.4+ you need : Download VC11 2012 vc_redist.x86.exe

For PHP 7.x+ you need : Download VC14 2015 vc_redist.x86.exe

相关问答

你说的是在什么环境?windows下还是linux? windows的话直接下载,解压,把原来的删掉,弄下配置文件就可以了 linux 下一一样的,但看你是和php+apache和nginx+php 注意把php-fpm和mysql编译进去

不要装这个,DZX用不了eacc不过我在linux主机装了这个明显快很多啊,我的是5.2.17的,装不上wincache啊,没有对应的版本啊

尝试在httpd.conf中添加'SSLSessionCache none',它解决了我的问题! 现在httpd.exe的Mem Usage / VM Size似乎根本没有增长。 Tried adding 'SSLSessionCache none' to httpd.conf and it solved the problem for me! Now httpd.exe's Mem Usage/VM Size do not seem to grow at all.

由于您正在进行从5.4到5.2的回归,请阅读5.3和5.4中的新功能列表。 如果您使用其中任何一个,则需要将其删除: http://www.php.net/manual/en/migration53.new-features.php http://www.php.net/manual/en/migration54.new-features.php 我做了类似的回归,最痛苦的部分是我不得不停止使用匿名函数 。 此外,它意味着从声明$a = [1,2];数组更改$a = [1,2]; to $a =

...

您可以取0.5 p,其中p是精度,然后使用天花板: <?php

function round_half_down($v, $prec) {

$v = $v * pow(10,$prec) - 0.5;

return ceil($v) * pow(10,-$prec);

}

print round_half_down(9.5,0) . "\n";

print round_half_down(9.05,0) . "\n";

print round_half_down(9.051,0) .

...

Uwamp是AMP堆栈 (Apache,MySql和PHP)和“开箱即用”,它没有任何缓存文件的功能。 Apache通常从Uwmap www文件夹“ 按原样”读取/获取文件,所以基本上如果最后一次更改被保存到www文件夹中的文件中(请直接使用记事本等工具进行检查),Apache 将立即读取它 。 这与您的浏览器缓存相关(手动清空您的浏览器/ Chrome缓存或安装Chrome扩展,如[清除缓存扩展]: https : //chrome.google.com/webstore/detail/clea

...

这是因为您在运行时通过引用传递。 这在PHP的早期版本中产生了waringn,从PHP 5.4开始,这是一个致命的错误。 请查看此示例:http: //3v4l.org/dQWEt 您需要更改此行: $oPeople->IsVerified($IdPerson, &$IdVerified);

至: $oPeople->IsVerified($IdPerson, $IdVerified);

你当然应该解决这个问题,因为在下次升级之后这将是一个致命的错误,但是,你只是升级到5.3,因此不应该导致致

...

确保您拥有正确的Visual C ++ Redistributable x86,就像他们在下载页面上所说的那样。 相同的错误,但最近的PHP版本,更正与安装正确的文件。 在使用UwAmp之前,必须安装Visual C ++ Redistributable x86 version vc_redist.x86.exe。 这是PHP的要求。 对于PHP旧版本,您需要:下载VC6 2005 vc_redist.x86.exe 对于PHP 5.3,您需要:下载VC9 2008 vc_redist.x86.e

...

PHP中的匿名函数不能小于5.3 重做你的代码,使它不涉及匿名函数,它应该在你的旧服务器上工作。 You cannot have anonymous functions in PHP less than 5.3 Rework your code so that it does not involve anonymous functions and it should work on your older server.

我有同样的问题,但它看起来可能是由于mscvr1110.dll问题Visual c ++ 2012运行时,你必须安装32位版本与64位[如果你运行64位窗口]和我会亲自安装32位[然后64位 - 如果适用] 我注意到的一个问题是如果你选择php 7然后它加载httpd.conf而不是httpd_uwamp.conf,所以目前我不会选择该选项。 如果有帮助,请告诉我 i have had the same problem, but it looks like it could be down to

...

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值