note 98527 added to mcrypt.setup

From: Date: Mon, 21 Jun 2010 10:32:19 +0000
Subject: note 98527 added to mcrypt.setup
Groups: php.notes 
Request: Send a blank email to php-notes+get-170342@lists.php.net to get a copy of this message
PHP mcrypt extension installation under Windows XP / AppServ 2.5.10 =================================================================== Step 1 : Php.ini file =========================== - Locate the loading "php.ini" file, by default in the "C:\Windows" folder. Edit it and uncomment (remove the semicolon) the following line: extension=php_mcrypt.dll - Elsewhere in the file is a line setting the path to the extension directory (i.e. where "php_mycrypt.dll" is located) -- search for "extension_dir" variable. It should look something like: extension_dir = "C:\appserv\php5\ext\" Step 2 : DLL files =========================== - Locate the file "libmcrypt.dll" in the directory "C:\appserv\php5". Copy the file to the following directories: From "C:\appserv\php5" folder to "C:\appserv\php5\ext" folder. (To make sure that mcrypt doesn't fail to load when using Windows XP, Apache 2 and php 5, even if all the required procedure to install it has been accomplished already, copy "libmcrypt.dll", which is normally in the php main directory, into the "php\ext" directory, where it should already the "php_mcrypt.dll" file be) From "C:\appserv\php5" folder to "C:\windows\system32" folder. Step 3 : Load configuration =========================== - Reboot your system. - Use the following PHP script to test your configuration: <?php if(!extension_loaded('mcrypt')) { echo 'You are missing the <strong>mcrypt</strong> extension.'; } else {echo 'The <strong>mcrypt</strong> extension is installed correctly.'; } ?> ---- Server IP: 69.147.83.197 Probable Submitter: 85.243.198.245 ---- Manual Page -- http://www.php.net/manual/en/mcrypt.setup.php Edit -- https://master.php.net/note/edit/98527 Del: integrated -- https://master.php.net/note/delete/98527/integrated Del: useless -- https://master.php.net/note/delete/98527/useless Del: bad code -- https://master.php.net/note/delete/98527/bad+code Del: spam -- https://master.php.net/note/delete/98527/spam Del: non-english -- https://master.php.net/note/delete/98527/non-english Del: in docs -- https://master.php.net/note/delete/98527/in+docs Del: other reasons-- https://master.php.net/note/delete/98527 Reject -- https://master.php.net/note/reject/98527 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#170342) next »