Page 1 of 1

Cannot load mcrypt extension and Missing php_mbstring

Posted: Sat Apr 04, 2009 5:47 pm
by rsvirus
I have been wanting to learn more about dba and also php so i started to run my own server. I'm running MySQL 5.1.33 and PHP 5.2.9-1 for win32 on Vista ultimate x64 and IIS.
So far i got everything installed and running but i still kept getting an issue when using myphpadmin.

"Cannot load mcrypt extension. Please check your PHP configuration".

i went to my extensions folder and made sure the files where there and they were. So after many hours of reading and thinking i added the libmycrypt.dll & libmycrypt.lib files to my c:\windows and c:\windows\system32 but nothing. I then coppied them to my c:\php folder and still nothing. I opened up mi php.ini and looked all over the place for the extensions that everyone kept mentioning but i couldnt find them in there as if they were missing. So i added them this way.

;;;;;;;;;;;;;;;;;;;;;;;;;
; Paths and Directories ;
;;;;;;;;;;;;;;;;;;;;;;;;;

; UNIX: "/path1:/path2"
;include_path = ".:/php/includes"
;
; Windows: "\path1;\path2"
;include_path = ".;c:\php\includes"

; The root of the PHP pages, used only if nonempty.
; if PHP was not compiled with FORCE_REDIRECT, you SHOULD set doc_root
; if you are running php as a CGI under any web server (other than IIS)
; see documentation for security issues. The alternate is to use the
; cgi.force_redirect configuration below
doc_root =

; The directory under which PHP opens the script using /~username used only
; if nonempty.
user_dir =

; Directory in which the loadable extensions (modules) reside.
extension_dir ="C:\PHP\ext"
extension=php_mbstring.dll
extension=php_mcrypt.dll


; Whether or not to enable the dl() function. The dl() function does NOT work
; properly in multithreaded servers, such as IIS or Zeus, and is automatically
; disabled on them.
enable_dl = On

I only added whats in blue and when i restarted my service it automaticlly worked fine. Everyplace i looked on the web was either for xampp,wamp,apache or some other os but not many where near my situation plus most of these issues where outdated. Atleast mine is working fine after 5 hours. :dubious: