Thursday, June 10, 2010

Installing PHP mcrypt extension under Snow Leopard (Mac OS X Version 10.6.3)


Step 1


Enable php in /etc/httpd.conf by uncommenting (remove # at the start of line) the following line


LoadModule php5_module libexec/apache2/libphp5.so


Step 2


a) Download libmcrypt from
http://sourceforge.net/projects/mcrypt/files/Libmcrypt/2.5.8/libmcrypt-2.5.8.tar.bz2/download

b) Extract the contents to ~/Downloads/libmcrypt-2.5.8

c) In Terminal type the following commands

cd ~/Downloads/libmcrypt-2.5.8/
./configure --disable-posix-threads --enable-static
make
sudo make install


Step 3


a) Download source code of PHP 5.3.0 from
http://us2.php.net/get/php-5.3.0.tar.gz/from/a/mirror

b) Extract the contents to ~/Downloads/php-5.3.0

c) In Terminal type the following commands
cd ~/Downloads/php-5.3.0/ext/mcrypt
phpize
./configure
make
cd modules

sudo cp mcrypt.so /usr/lib/php/extensions/no-debug-non-zts-20090626/

Step 4


a) Set your default timezone in php.ini located at /etc. Mine is


date.timezone = Asia/Kolkata


b) Enable the mcrypt extension by typing/editing the following in php.ini


extension=/usr/lib/php/extensions/no-debug-non-zts-20090626/mcrypt.so


Step 5


Restart apache with the following command in Terminal


sudo apachectl restart


Step 6


1) Test your php installation by creating a test.php file in /Library/WebServer/Documents
with the following contents

<?php
phpinfo();
?>
2) Open a browser and go to http://127.0.0.1/test.php which should
list the version and other details regarding PHP.
You should also see a section with mcrypt details.

37 comments:

Anonymous said...

Condivido pienamente il suo punto di vista. In questo nulla in vi e credo che questa sia un'ottima idea. Pienamente d'accordo con lei.
Condivido pienamente il suo punto di vista. In questo nulla in vi e credo che questa sia un'ottima idea. Sono d'accordo con te.

Anonymous said...

must look at this [URL=http://jacket-dresses.net/]moncler[/URL] for more OedBPoQp [URL=http://jacket-dresses.net/ ] http://jacket-dresses.net/ [/URL]

Anonymous said...

get cheap [URL=http://e--store.com/]outlet gucci[/URL] suprisely PBOQWksb [URL=http://e--store.com/ ] http://e--store.com/ [/URL]

Anonymous said...

best for you dSDBdQmx [URL=http://www.chanel--online-shop.net/]cheap chanel handbags[/URL] , just clicks away sUPCoIze [URL=http://www.chanel--online-shop.net/ ] http://www.chanel--online-shop.net/ [/URL]

Anonymous said...

buy a BIVeVwYw [URL=http://www.ugg-boots-uk2013.com/]ugg boots outlet uk[/URL] online shopping pUqNyBJR [URL=http://www.ugg-boots-uk2013.com/ ] http://www.ugg-boots-uk2013.com/ [/URL]

Anonymous said...

you definitely love QURYlCSm [URL=http://www.spyder-jackets2013.com/]spyder jackets outlet[/URL] for promotion code YrSICQjs [URL=http://www.spyder-jackets2013.com/ ] http://www.spyder-jackets2013.com/ [/URL]

Anonymous said...

for qmHVpVDz [URL=http://www.prada-outlet2013.net/]prada outlet online[/URL] to take huge discount MHgMyafH [URL=http://www.prada-outlet2013.net/ ] http://www.prada-outlet2013.net/ [/URL]

Anonymous said...

look at [URL=http://burberrytrenchcoat5.wordpress.com/ - burberry belt[/URL - for promotion code TffwxrkB [URL=http://burberrytrenchcoat5.wordpress.com/ - http://burberrytrenchcoat5.wordpress.com/ [/URL -

Anonymous said...

xanax buy online no prescription best site buy xanax - drug test kits xanax

Anonymous said...

buy tramadol online tramadol for dogs safe - tramadol purchase no prescription

Anonymous said...

buy tramadol online what is ultram tramadol hcl 50 mg - best dosage tramadol

Anonymous said...

buy tramadol online treatment of tramadol overdose - buy tramadol online no prescription

Anonymous said...

buy tramadol online buy tramadol online paypal - order tramadol online cod overnight

Anonymous said...

xanax online xanax for anxiety and insomnia - what is xanax usually prescribed for

Anonymous said...

xanax sale amount for xanax overdose - xanax generic xanax

Anonymous said...

buy tramadol online high off tramadol 50 mg - buy tramadol online from usa

Anonymous said...

buy tramadol online tramadol dosage mayo clinic - ultram 50 mg tablets

Anonymous said...

cialis online cialis when to take - best way buy cialis online

Anonymous said...

buy tramadol online tramadol dosage in elderly - tramadol seizures

Anonymous said...

buy cialis online where to buy cialis online - generic cialis shipped from usa

Anonymous said...

to buy [URL=http://buylouisvuitton.livejournal.com/]buy louis vuitton handbags[/URL] for gift KQvOqwUo [URL=http://buylouisvuitton.livejournal.com/ ] http://buylouisvuitton.livejournal.com/ [/URL]

Anonymous said...

buy cialis online cialis recreational - cialis youtube

Anonymous said...

cialis online cialis daily vs. 36 - cialis online usa no prescription

Anonymous said...

learn how to buy tramdadol online drugstore tramadol - tramadol dose for high

Anonymous said...

http://landvoicelearning.com/#51602 tramadol 50mg injection - tramadol overnight cod delivery

Anonymous said...

buy cheap tramadol tramadol for dogs same as humans - cheap tramadol cod free fedex

Anonymous said...

http://blog.dawn.com/dblog/buy/#21563 tramadol vs oxycodone high - tramadol normal dose

Anonymous said...

buy tramadol online tramadol extended release high - tramadol 50 mg like vicodin

Anonymous said...

http://blog.dawn.com/dblog/buy/#21563 tramadol recreational use dosage - tramadol 100mg seizure

Anonymous said...

tramadol online pharmacy tramadol withdrawal hydrocodone - buy tramadol 6914

Anonymous said...

buy tramadol purchase tramadol cod shipping - order tramadol florida

Anonymous said...

buy tramadol cheap online buy tramadol in europe - tramadol 50 mg vs hydrocodone

Anonymous said...

buy tramadol order tramadol cod overnight - zodol-tramadol 50 mg

Anonymous said...

purchase ativan ativan withdrawal elderly - buying ativan online no prescription

Anonymous said...

http://staam.org/#10699 buy tramadol in usa - buy tramadol online no prescription usa

Anonymous said...

buy tramadol next day how to purchase tramadol - can you buy tramadol over counter spain

Anonymous said...

http://www.achildsplace.org/banners/tramadolonline/#2002 buy tramadol overnight cod - order tramadol overnight