Installing XAMPP in Linux

What is XAMPP ? XAMPP is an easy to install Apache distribution containing MySQL, PHP and Perl. LAMPP (XAMPP for Linux) is very easy to install and to use – just download, extract and start. Download XAMPP http://sourceforge.net/projects/xampp/files/XAMPP Linux/ Installing XAMPP in Linux Download XAMPP Latest version from the following link http://sourceforge.net/projects/xampp/files/XAMPP Linux Currently latest … Read more

Install RED5 with java tomcat on linux

Red5 is an Open Source Flash Server written in Java that supports: Streaming Audio/Video (FLV, h264, AAC, and MP3) Recording Client Streams (FLV only) Shared Objects Live Stream Publishing Remoting (AMF) export variables in /etc/bashrc to become available for every user login or for any terminal opens. echo “export ANT_HOME=/usr/local/ant” >> /etc/bashrc echo “export JAVA_HOME=/usr/lib/jvm/java” … Read more

Linux Mail Servers

Manual Settings ~~~~~~~~~~~~ Mail Server Username: no-reply+domain.com Incoming Mail Server: mail.domain.com Incoming Mail Server: (SSL) host200.hostmonster.com Outgoing Mail Server: mail.domain.com (server requires authentication) port 26 Outgoing Mail Server: (SSL) host200.hostmonster.com (server requires authentication) port 465 Supported Incoming Mail Protocols: POP3, POP3S (SSL/TLS), IMAP, IMAPS (SSL/TLS) Supported Outgoing Mail Protocols: SMTP, SMTPS (SSL/TLS) Warning: Changing MX … Read more

Amazon EBS

Amazon Elastic Block Storage (EBS) We can use Amazon EBS just like as the CD/DVD/Pen Drives on our PC/Laptops Servers for backup or data transfer… EBS can attach to an EC2 instance, we can use EBS to save work files in it.. for it we have to mount it in the instance after backup we … Read more

Crontab Command Line

Crontab Command Line 1. dump the content of the existing crontab to a file # crontab > /tmp/dump 2. echo “your lines” >> to the corntab file # echo ” 00 1 * * * /monitor_file_system 2>/dev/null” >> /tmp/dump 3. import the new crontab # crontab /tmp/dump other option…. # crontab -e It will open … Read more

create sub buckets on amazon s3

Sub buckets is very tricky task to create on Amazon S3 service… <?php include(“S3.php”); // class for REST based S3 manager $s3 = new S3(‘accessKey’, ‘secretKey’); $s3->putBucket(‘bucketname’, S3::ACL_PUBLIC_READ); /* function to upload svnlabs.txt file to subfolders s/v/n/l/a/b/s on S3 bucketname */ $s3->putObjectFile(‘svnlabs.txt’, ‘bucketname’, ‘s/v/n/l/a/b/s/svnlabs.txt’, S3::ACL_PUBLIC_READ); /* function to delete svnlabs.txt file to subfolders s/v/n/l/a/b/s on … Read more

Backup Amazon S3 with PHP

This is the source code to backup/download Amazon S3 Bucket’s multimedia files to other server by PHP… here $bucketurl is XML url of Amazon S3 bucket with full ACL. $folder is path of the server where S3 files to store. This script will download all files in Amazon bucket to other server Php-Code:  1  2  3  4  5  6  7  8  9  10  11  12  13  14  15  16  17  18  19  20  21  22  23  24  <?php … Read more

Configure Amazon EC2

1.Boot 2 linux servers on EC2 2.Assign elastic IP to each of them 3.Register a domain (eg svnlabs.com) 4.On the domain settings – create 2 host records – ns1.svnlabs.com and ns2.svnlabs.com and point each record to each of the elastic IPs. 5.On your 2 nameserver instances – create dns zone for ns1. and ns2 respectively … Read more