Pages

Showing posts with label lamp. Show all posts
Showing posts with label lamp. Show all posts

Saturday, September 13, 2014

Ubuntu LAMP-Enable Curl and mcrypt

To EnaBLE CURL FIRST WE NEED TO DOWNLOAD AND INSTALL 
Curl Libraries for this enable the following command
 
 sudo apt-get install curl libcurl3 libcurl3-dev php5-curl  
 
To Enable Mcrypt we need to download and Install 
Mcrypt libraries
 
 sudo php5enmod mcrypt  
 
Mcrypt is already there and is just not enabled.
 
If its still not accessible locate "mcrypt.so" if you find the same 
 at a location like 
 
/usr/lib/php5/20121212/mcrypt.so
 
edit its path in mcrypt.ini and then run the command
 
"sudo php5enmod mcrypt"
 
That's it this enables both of these php extensions. 

Sunday, November 11, 2012

Installing PEAR

PEAR is a very good package which contains pre defined built classes for various functionality which prevents one to re invent the wheel

I use mostly for TDD Test driven development which needs phpUnit which requires PEAR

Installing PEAR is very simple all you have to do is install php or a vanilla package like wamp, mamp, xampp, lamp now

download the file

http://pear.php.net/go-pear.phar

and place it under your php folder I use Wamp vanilla package so I will place under C:\wamp\bin\php\php.version

Its a windows machine

Now open your command line interface(windows) or shell(linux) and navigate to directory of your php folder and execute

php go-pear.phar

Under windows Vista,7 or in some versions of linux you might get a permission denied message in such  cases you need to run command prompt under admin mode.

To do so in windows under start->all programs->accessories->(right click on command prompt and select run as administrator to get the things work out for you)