Hits: 127 The Alternative PHP Cache (APC) is a free, open, and robust framework for caching and optimizing PHP intermediate code. yum install php-pear yum install php-devel httpd-devel yum groupinstall ‘Development Tools’ yum groupinstall ‘Development Libraries’ pecl install apc http://si2.php.net/manual/en/install.pecl.php
Hits: 187 1. Log in as root or use su at command line $ su 2. Go to the font storage directory: # cd /usr/share/fonts 3. Create a subdirectory for the Arial fonts: # mkdir arial 4. Copy the Arial fonts into this directory from font sites or windows FONTS folder. 5. Make the font [...]
Hits: 275 PECL Memcache client of memcached distributed cache server, is a very probable candidate for high-load systems. Typically you won’t be able to use “pecl” directly and when you try to install manually with phpize you will get an error like: ” PHP Warning: Unknown(): Unable to load dynamic library ‘/opt/lampp/lib/php/extensions/no-debug-non-zts-20020429/memcache.so’ – /opt/lampp/lib/php/extensions/no-debug-non-zts-20020429/memcache.so: undefined symbol: [...]
Hits: 266 Often, when we get error “No route to host” to connect remote server via linux command line e.g. wget, curl etc. or web services (webserviceserver). The first solution we want to try to troubleshot firewalls and proxies? But before that try hostname entry in linux box… # vi /etc/hosts add & save 192.168.0.100 webserviceserver [...]
Hits: 293 SWFTools is the utilities for working with Adobe Flash files. These tools includes programs for reading SWF files, combining them, and creating them from other content (like images, sound files, videos or sourcecode). Install SWFTOOLS: Download latest Sourcecode from here… http://swftools.org/download.html # wget http://swftools.org/swftools-0.9.0.tar.gz # tar -zxvf swftools-0.9.0.tar.gz # cd swftools-0.9.0 # ./configure # [...]
Hits: 59 Magento Create a dynamic, fully featured, online store with the most powerful open source e-commerce software…. Download Magento from here.. http://www.magentocommerce.com/svn # svn checkout http://svn.magentocommerce.com/source/branches/1.3 Features.. 1. Categories and Attributes 2. Taxes 3. Adding Simple Products 4. Minimum Customization of Your Store’s Appearance 5. Customer Relationships / Configuring customer options 6. Accepting Payment 7. [...]
Hits: 321 Have the fun with json…. JSON (JavaScript Object Notation) is a lightweight data-interchange format. It is easy for humans to read and write. It is easy for machines to parse and generate. # yum -y install php-pear # pecl install json # vi /etc/php.d/json.ini extension=json.so # service httpd restart
Hits: 442 Below is the simple code to create sql script of database on Amazon EC2 server using “mysqldump”… then upload this sql script to Amazon S3 bucket using command line S3 tool “s3cmd”… <?php $sqlbackup=”/usr/bin/mysqldump -v -u root -h localhost -r /var/www/html/backup/”.date(“Y-m-d-H-i-s”).”_db.sql -pdbusername databasename 2>&1″; exec($sqlbackup, $o); echo implode(“<br /> ”, $o); $file = ”/var/www/html/backup/”.date(“Y-m-d-H-i-s”).”_db.sql”; $bucket = ”s3bucketname”; exec(“/usr/bin/s3cmd put –acl-public –guess-mime-type –config=/var/www/html/.s3cfg ”.$file.” s3://”.$bucket.” 2>&1″, $o); echo implode(“<br /> ”, $o); ?> 0 */12 * * * env php -q /var/www/html/s3bkup/s3bkup.php > /dev/null 2>&1 (per [...]







