Showing posts with label MAC. Show all posts
Showing posts with label MAC. Show all posts

Monday, May 6, 2013

Using CURL as WGET Replacement in MAC

I was trying to download file in my MAC using "wget" but I found that "wget" is not available in MAC by default. After searching for few min I found a easy solution. CURL can be used to accomplish the same task. 

CURL Command is 
"curl -O http://apache.spinellicreations.com/lucene/solr/3.6.2/apache-solr-3.6.2.tgz"

To create an alias called `wget` that will simply run the command curl -O I ran the following command in my MAC terminal.


echo 'alias wget="curl -O"' >> ~/.bash_profile

Now when I run "wget",  it is actually executing curl -O to download the file.

"wget http://apache.spinellicreations.com/lucene/solr/3.6.2/apache-solr-3.6.2.tgz"

Hope this article is helpful for you...

Saturday, May 4, 2013

How to edit the php.ini file in MAMP(MAC)

Select PHPinfo on your start screen of MAMP to see which version is running on your machine before editing or you may end up editing the wrong php.ini file. Once on the phpInfo page do a search for “php.ini” and look at the file location. Second, Depending on your php.ini settings, everyone uses different ones, you MUST restart MAMP for the changes to show up.

Where is the php.ini file located?

/Applications/MAMP/bin/php/php5.2.17/conf/php.ini
or
/Applications/MAMP/bin/php/php5.3.6/conf/php.ini