Reputation: 3
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?
Upvotes: 0
Views: 3168
Reputation: 11
I have the same problem with older version of php (5.2.17). If you open the file with a text editor (C:/UwAmp/bin/apache/conf/httpd.conf) and go to the line 166 you can edit the file, but when the Apache module starts again, the file is regenerated and the error came again. (sorry for my bad english :)
Upvotes: 1
Reputation: 16
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
Upvotes: 0