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.

70 comments:

Anonymous said...

With technological advancement and internet revolution, finding betting guide or soccer betting results are no tough. Nowadays if you keep a close eye on the internet you will find that there are literally hundreds of betting guides that make promises of guiding you on different sports and strategies. But prior to selecting online guide, you need to check out whether the site is devoid of any scam or not. Before finalizing, it is advised to undergo a thorough research work of the different guides, you are seeking for. nfl betting baseball betting basketball betting boxing betting cricket betting darts betting football betting golf betting handball betting hockey betting rugby betting snooker betting tennis betting An online sportsbook is a site where patrons can bet on different sports competitions including golf, football, basketball, baseball, hockey, soccer, horse racing, boxing, and just about any other sport you can think of. The method of betting differs with the sport and the type of the game being played. In the United States there are about 150 legal sportsbooks that are situated in Nevada. Betting on sports is fully legal in many countries and it is well known with people who like to gamble. [url=http://www.pulsebet.com/betting/American-Football]nfl betting[/url] [url=http://www.pulsebet.com/betting/Baseball-betting]baseball betting[/url] [url=http://www.pulsebet.com/betting/Basketball-betting]basketball betting[/url] [url=http://www.pulsebet.com/betting/Boxing-betting]boxing betting[/url] [url=http://www.pulsebet.com/betting/Cricket-betting]cricket betting[/url] [url=http://www.pulsebet.com/betting/Darts-betting]darts betting[/url] [url=http://www.pulsebet.com/betting/Football-betting]football betting[/url] [url=http://www.pulsebet.com/betting/Golf-betting]golf betting[/url] [url=http://www.pulsebet.com/betting/Handball-betting]handball betting[/url] [url=http://www.pulsebet.com/betting/Hockey-betting]hockey betting[/url] [url=http://www.pulsebet.com/betting/Rugby-betting]rugby betting[/url] [url=http://www.pulsebet.com/betting/Snooker-betting]snooker betting[/url] [url=http://www.pulsebet.com/betting/Tennis-betting]tennis betting[/url] • Bets with low value- Well, if you have ever come across large messages with tempting offers, give yourself a break. It is just a way to allure people and make them spend precious money .It is a poor value bets and should be avoided. http://www.pulsebet.com/betting/American-Football http://www.pulsebet.com/betting/Baseball-betting http://www.pulsebet.com/betting/Basketball-betting http://www.pulsebet.com/betting/Boxing-betting http://www.pulsebet.com/betting/Cricket-betting http://www.pulsebet.com/betting/Darts-betting http://www.pulsebet.com/betting/Football-betting http://www.pulsebet.com/betting/Golf-betting http://www.pulsebet.com/betting/Handball-betting http://www.pulsebet.com/betting/Hockey-betting http://www.pulsebet.com/betting/Rugby-betting http://www.pulsebet.com/betting/Snooker-betting http://www.pulsebet.com/betting/Tennis-betting

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 tramadol for dogs for arthritis - buy tramadol online with mastercard

Anonymous said...

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

Anonymous said...

xanax online xanax make you high - xanax dosage g3719

Anonymous said...

xanax order no prescription different types generic xanax pills - buy prescription drugs online xanax

Anonymous said...

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

Anonymous said...

buy tramadol online buy tramadol online saturday delivery - tramadol hcl ultram 50 mg

Anonymous said...

buy carisoprodol can get high carisoprodol - soma carisoprodol tablets 250 mg reviews

Anonymous said...

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

Anonymous said...

xanax online xanax side effects loss memory - buy xanax online spain

Anonymous said...

buy tramadol online tramadol y paracetamol - tramadol 50 mg buy online

Anonymous said...

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

Anonymous said...

buy carisoprodol can you buy carisoprodol online - soma carisoprodol controlled

Anonymous said...

buy carisoprodol no prescription carisoprodol 2410 v - carisoprodol 350 mg and hydrocodone

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 carisoprodol carisoprodol 350 mg dosage - flumazenil reversal of carisoprodol (soma) intoxication

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 cialis online order cialis over the counter - cialis pills

Anonymous said...

buy tramadol online tramadol dosage in elderly - tramadol seizures

Anonymous said...

cialis online buy cialis no prescription us - generic cialis 200mg

Anonymous said...

xanax online generic xanax pills - alprazolam 0 5mg wirkung

Anonymous said...

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

Anonymous said...

cialis online cialis daily maximum dose - cialis online us pharmacy

Anonymous said...

xanax online buying xanax online illegal - what is xanax used for yahoo

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...

xanax online know your high xanax - xanax bars highest mg

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...

buy tramadol tramadol sr tabs 100mg - buy tramadol online us pharmacy

Anonymous said...

buy tramadol tramadol 50mg vs tylenol 3 - order tramadol cash on delivery

Anonymous said...

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

Anonymous said...

buy tramadol buy tramadol hydrochloride online usa - what is tramadol 50 mg street value

Anonymous said...

buy tramadol tramadol online no prescription fedex - tramadol 50 mg is used for what

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://landvoicelearning.com/#57594 tramadol hcl 50 mg generic - tramadol hcl good pain

Anonymous said...

buy tramadol online order tramadol online overnight delivery - order tramadol us pharmacy

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...

legal buy tramadol online buy tramadol no prescription cod - 3 50 mg tramadol

Anonymous said...

buy tramadol tramadol online doctor - tramadol addiction and pregnancy

Anonymous said...

Nike Outlet hzhhxlay cheap nike shoes amdhntyz nike shoes on sale nymyyjaw nike shoes sale frohfbfp

Anonymous said...

http://buytramadolonlinecool.com/#73892 tramadol 377 high - buy tramadol texas

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...

buy ativan online ativan side effects liver damage - ativan dosage vs xanax

Anonymous said...

purchase ativan ativan withdrawal elderly - buying ativan online no prescription

Anonymous said...

buy tramadol online discount tramadol online - tramadol for dogs how often

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...

buy xanax online xanax side effects blood pressure - how much xanax and alcohol to die

Anonymous said...

http://ranchodelastortugas.com/#64581 buy xanax online reviews - blue football 1mg xanax

Anonymous said...

http://bayshorechryslerjeep.com/#6828 buy xanax online us - xanax for postpartum anxiety

Anonymous said...

buy xanax online types generic xanax - does xanax show up on a 7 panel drug test

Anonymous said...

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