Phalcon PHP Xampp installation - Apache can't find DLL

Jacek Jagiełło picture Jacek Jagiełło · Feb 18, 2014 · Viewed 7.2k times · Source

I am using Windows 7 64bit, Xampp 1.8.3(with PHP 5.5). I'am following Phalcon installation guide, i downloaded x86 version of Phalcon like in this guide. Next i put php_phalcon.dll file in D:/xampp/php/ext. Then, i add to php.ini file:

extension=php_phalcon.dll

Great, so i lunch Xampp and start Appache. And then:

firest error http://ubplanet.pl/uploads/images/UBPlanet-1392741295-U15373.png

After click OK, I instantly get second error: second error http://ubplanet.pl/uploads/images/UBPlanet-1392741373-U15373.png

Well, i tried everything: reinstalling xampp; install it on C drive; So i try to install phalcon on WAMP, but i also got error like this! So I decide to reinstall whole Windows, with disk formatting. And on the brand new Windows, i also have the same errors. It looks like PHP can't load libraries, but why?

Answer

Reda picture Reda · Feb 19, 2014

if you are using Xampp x64 it does not mean your php is x64

first your need to check your setup from phpinfo you need to check 3 things

  • php version
  • Compiler
  • Architecture

in case, you have Architecture x84 and Compiler VC11 you need to download the dll that met your setup from phalcon site

about the version the latest version supported in the current time of writing this answer on phalcon site is 5.5.0

if your php version is higher like 5.5.5 you need to search for custom build for Phalcon you can check this one on github https://github.com/andont/phalcon-win this one had worked with me personally.

if all of this does not work and you could not find any dll mach you setup ( and I believe you can find one) in this case you have to build your own by compiling the source code on Microsoft visual studio that met your setup compiler and architecture and I hope you don't end up with the last solution :)