Technology Blog

Uncategorized

Installing php52 on centos 6

by on Nov.19, 2012, under Uncategorized

So, for some reason you need to install php 5.2 on centos6 (Ok Register Globals – because your client won’t pay for updating the software – right?)   So Here you go:     – Enable Atomicorp repo Run following command to enable Atomic YUM repo:

wget -q -O - http://www.atomicorp.com/installers/atomic | sh

– Disable PHP 5.3 Atomic repo contains both PHP 5.2 and 5.3. Official RHEL/CentOS 6 repo also contains PHP 5.3. To disable PHP 5.3, add following line to YUM configuration file /etc/yum.conf:

exclude=php-*5.3*

– Install PHP packages Use following commands to install PHP 5.2 packages:
arch=$(uname -m)

yum install yum install php.$arch php-bcmath.$arch php-cli.$arch php-common.$arch php-dba.$arch php-devel.$arch php-embedded.$arch php-fpm.$arch php-gd.$arch php-imap.$arch php-intl.$arch php-ioncube-loader.$arch php-ldap.$arch php-mbstring.$arch php-mcrypt.$arch php-mhash.$arch php-mysql.$arch php-ncurses.$arch php-odbc.$arch php-pdo.$arch php-pear.$arch php-pecl.$arch php-pgsql.$arch php-process.$arch php-rspell.$arch php-recode.$arch php-snmp.$arch php-soap.$arch php-tidy.$arch php-xml.$arch php-xmlrpc.$arch php-zts.$arch php-sqlite.$arch -y

Here, machine architecture (e.g. x86_64 for Intel 64-bit architecture) is stored in the variable arch and its value is appended to each PHP package to avoid installing same package from multiple architectures. The list of PHP packages to be installed may vary depending on your requirements. If you do not know the correct name for a PHP package, search for PHP packages with following command:

yum search php

This command will list RPM packages having the string ‘php’ in their name along with a short description for each package.

Leave a Comment more...

List (LS) top biggest files or folders on linux file system

by on Sep.27, 2012, under Uncategorized

This command will list out the top biggest files or directories on the server.

resize; clear; date; echo "Largest Directories:"; du -hcx / | grep '^[0-9]*G'\
| sort -nr | head; echo ""; echo "Largest Files:"; nice -n 19 find / -mount \
-type f -ls|sort -rnk7 |head -10|awk '{printf "%d MB\t%s\n",($7/1024)/1024,$NF}'
Leave a Comment more...

Using WGET to download a website including css/js/images

by on Sep.27, 2012, under Uncategorized

Example:

wget -e robots=off -p -k https://www.dws-investments.com/EN/products/dws-alternative-asset-allocation-fund.jsp?fund-key=4495

 

-e robots=off – wget ignores robots.txt which may tell spiders to not download files

-p  – get all assetts (css/images/js)

-k – convert links to relative not absolute

Leave a Comment more...

Twitter Updates for 2011-11-19

by on Nov.19, 2011, under Uncategorized

Leave a Comment more...

Twitter Updates for 2011-10-13

by on Oct.13, 2011, under Uncategorized

  • @LiquidWeb its the host that's been down for 7 hours now: dc2-vps1-245 #
Leave a Comment more...

Twitter Updates for 2011-10-12

by on Oct.12, 2011, under Uncategorized

  • @liquidweb Not experiencing the Heroic Support today…down since 6:30am EST and no one can give me an ETA or description of whats going on. #
Leave a Comment more...

Twitter Updates for 2011-09-28

by on Sep.28, 2011, under Uncategorized

Leave a Comment more...

Twitter Updates for 2011-09-12

by on Sep.12, 2011, under Uncategorized

  • @AKlaassen Only approved people can view tweets…saw yours and gils #
Leave a Comment more...

Twitter Updates for 2011-09-02

by on Sep.02, 2011, under Uncategorized

  • Creating Digital Facebook page is in full effect! Please like us! #
Leave a Comment more...


Looking for something?

Use the form below to search the site:

Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!

Visit our friends!

A few highly recommended friends...