Rackspace Cloud Load Balancers vs. Amazon Elastic Load Balancing


Hits: 5734  
Rackspace Cloud Load Balancers Amazon Elastic Load Balancing
Support Chat/phone/ticket support available 24x7x365 To receive 24x7x365 support for Amazon EC2, you pay the greater of $400 per month.
Dedicated Public IP Address A dedicated IP address allows for use as a root record for a zone. When you create an ELB instance, you get a public DNS name; however, it’s not very user friendly and you will want to create a CNAME record in DNS to redirect to your URL.
Access Control List (ACL) Rackspace cloud load balancer has an ACL-based security model. Access control list feature is not available.
Connection Logging Logs are sorted, aggregated, and delivered hourly to Cloud Files™, which is perfect for users who need to perform tuning, inspection, or analysis. Connection logging feature is not available.
Connection Throttling Rackspace cloud load balancers have a connection throttling feature which imposes limits on the number of connections per IP address. Connection throttling feature is not available.
Selectable Algorithms Customize the behavior of your cloud load balancer with selectable algorithms, including: random, round robin, weighted round robin, least connections, and weighted least connections. ELB utilizes only a non-configurable round robin load balancing algorithm.
Advanced HTTP Health Monitoring Rackspace Cloud Load Balancers can use synthetic transaction monitoring to inspect an HTTP response code and body content to ensure the application or site is healthy. While HTTP and TCP-based health monitors are available, ELB does not permit users to define an acceptable status code or body regular expression to match against.
Shared IPs Shared IPs facilitates easier management and better IP utilization of load balancer configuration. ELB does not permit users to share a single IP address across multiple load balancers, but does allow for a single load balancer to support multiple port configurations.
Internal Virtual IPs Internal virtual IPs feature allows you to load balance internal services, without being penalized with external bandwidth charges. All ELBs are configured as public virtual IPs. An internal virtual IP option is not available.
SSL Termination Does not support SSL termination at the load balancer. Supports SSL termination at the load balancer.

 

Source: http://www.rackspace.com/cloud/cloud_hosting_products/loadbalancers/compare/

BigBlueButton API in PHP


Hits: 12514  

BigBlueButton -- Open Source Web Conferencing

BigBlueButton supports sharing of slides (PDF and PPT), video, whiteboard, chat, voice (using Asterisk or FreeSWITCH), and desktops. It’s built using over many open source components, runs on Mac, Unix, and PC computers, and is supported by a community that cares about good design and a streamlined user experience.

BigBlueButton is built using the following open source components:

Ubuntu, Flex SDK, Ghostscript, Grails, ActiveMQ, Asterisk, Image Magick, MySQL, nginx, Red5, swf Tools, Tomcat, Asterisk Java, Xuggler, Open Office…

BBB is available on Google Code

BigBlueButton is an open source web conferencing system that enables universities and colleges to deliver a high-quality learning experience to remote students.

See examples of how you can integrate BigBlueButton into your applications.

Create Your Own Meeting


<?php

$IP ‘yy.yy.xx.xxx’;  // Server IP where BigBlueButton (BBB) Installed

$Port 81;  // Server port to BBB i.e. 81

// Method: create – To create meeting

$string “createname=Test+Meeting&meetingID=accounts123&attendeePW=accounts123&moderatorPW=accounts123”;

$salt “XYBGDRYUOPLJMAWDGNHYDFFGHGJJ435D”;  // security salt for BBB & API

$sha sha1($string.$salt);

$link “name=Test+Meeting&meetingID=accounts123&attendeePW=accounts123&moderatorPW=accounts123&checksum=”.$sha;

?>

<a href=”http://<?php echo $IP?>:<?php echo $Port?>/bigbluebutton/api/create?<?php echo $link?>“>Create Meeting</a><br><br>

<?php

// Method: join – To join meeting

$string “joinfullName=Joe+User&meetingID=accounts123&password=accounts123”;

$salt “XYBGDRYUOPLJMAWDGNHYDFFGHGJJ435D”;

$sha sha1($string.$salt);

$link “fullName=Joe+User&meetingID=accounts123&password=accounts123&checksum=”.$sha;

?>

<a href=”http://<?php echo $IP?>:<?php echo $Port?>/bigbluebutton/api/join?<?php echo $link?>“>Join Meeting</a><br><br>

<?php

// Method: join – To join meeting as username

$string “joinfullName=Sandeep&meetingID=accounts123&password=accounts123”;

$salt “XYBGDRYUOPLJMAWDGNHYDFFGHGJJ435D”;

$sha sha1($string.$salt);

$link “fullName=Sandeep&meetingID=accounts123&password=accounts123&checksum=”.$sha;

?>

<a href=”http://<?php echo $IP?>:<?php echo $Port?>/bigbluebutton/api/join?<?php echo $link?>“>Join Meeting as sandeep</a><br><br>

<?php

// Method: isMeetingRunning – To check meeting is active/running

$string “isMeetingRunningmeetingID=accounts123”;

$salt “XYBGDRYUOPLJMAWDGNHYDFFGHGJJ435D”;

$sha sha1($string.$salt);

$link “meetingID=accounts123&checksum=”.$sha;

?>

<a href=”http://<?php echo $IP?>:<?php echo $Port?>/bigbluebutton/api/isMeetingRunning?<?php echo $link?>“>Check Meeting Running</a><br><br>

Create Your Own Meeting Link

Checkout other article “BigBlueButton on CentOS”

Download BBB.zip

Emails are not working on server?


Hits: 3394  

Emails are essential tool / facility on web server to manage all communications among users.

Here are few issues:

1. Send mail function is not configured
2. No responsible mail server service on web server
3. Email port blocked
4. SMTP service
5. IP blacklist

How to fix:

1. Check Mail server (sendmail or postfix) on server

#  ps -aux  (check all processes for mail service)
#  chkconfig –list (check mail service)
#  rpm -qa | grep sendmail
#  rpm -qa | grep postfix

2. If there is no Mail server then install

#  yum search sendmail
#  uname -i (check server arch.)
#  yum install sendmail.x86_64 sendmail-cf.x86_64 sendmail-devel.i386 sendmail-devel.x86_64 sendmail-doc.x86_64
#  chkconfig –list
#  ps -aux
#  service sendmail start

3. Now create a test email.php file

<?php

$to = "test@gmail.com";
$subject="Testing mail....";
$message="Welcome to svnlabs.com";
mail($to, $subject, $message);

?>

4. If you still no mail yet… 🙁  Check mail logs

#  tail -f /var/log/maillog
#  less /var/spool/mail/root

5. Finally check network setting for DNS & SMTP

#  vi /etc/sysconfig/network
#  service sendmail restart

Configure sendmail see here

Alternative: PHP Gmailer

Gmailer allows sending outgoing mail via Gmail or Google Apps accounts.

* SMTP server address = ‘smtp.gmail.com’
* SMTP server port =’465′
* SMTP username and password = username & password registered at Gmail.
* Whether or not SSL should be used = SSL enabled
* From: email address and Sender’s name for outgoing mail.

Must Read…

https://www.svnlabs.com/blogs/linux-mail-servers/

https://www.svnlabs.com/blogs/no-route-to-host/

Formal education will make you a living. Self-education will make you a fortune. 😉

I have Cloud Power


Hits: 4214  
Amazon Web Services

AWS is an IaaS platform and provides maximum freedom for developers in choice of the OS, middleware and development environment.
Google App Engine + Google Apps

Google App Engine is used as SaaS, it provides free limited resources (disk space and bandwidth), GAE supports programming languages – PHP, Python and Java.

Facebook

Nothing to explain it is the place where (almost all) clients live with sharing content.

Rackspace

Rackspace is like Amazon cloud in IaaS and cost is quite reasonable.

Scalr.net


Scalr will provision new servers on-the-fly to handle spikes in demand, and decommission them when no longer needed to lower cost.. then your website and web application can grow to millions of users with little work.

RightScale


Cloud Computing Management Platform…Join thousands of companies managing their applications in the cloud with RightScale.

IBM Cloud

IBM Cloud is used in large companies and resource-intensive processes for managing software development, testing, storage and processing of huge data.

VMWare vCloud

VMWare Cloud is leader in virtualization.

Force.com

Force.com is provider of SaaS applications. Salesforce allows to create system and independent cloud applications.

Ghost Cloud

It provides private hard disk across the Internet for your files from any computer or cell phone and world-class backup and security.

Glide Cloud

Force.com is provider of SaaS applications. Salesforce allows to create system and independent cloud applications.

ZeroPC

Any Browser + Cloud Computing + Pay-As-You-Go = ZeroPC.

eyeOS

eyeOS have Ubiquity, Flexibility, Integration, Simplicity, Collaboration, Privacy, Security, Low Costs.

AirSet

AirSet – Share with Facebook Friends, Coordinate Schedules, Store & Back Up Files, Sync to Mobile Devices, Work from Anywhere.

My Gladinet Drive

Installing Apache, MySQL, PHP in CentOS 5.5 on Rackspace Cloud


Hits: 31343  

Most of cloud users prefer Rackspace Cloud for its better service and cost effectiveness…
All commands are performed as root to install Apache, MySQL, PHP in CentOS 5.5 Server on Rackspace Cloud.

Install Apache

# sudo yum install httpd mod_ssl

Configure ServerName
# sudo /etc/init.d/httpd start

Remove Error
Starting httpd: httpd: Could not reliably determine the server’s fully qualified domain name, using xx.xx.xxx.xx for ServerName

Modify
# sudo vi /etc/httpd/conf/httpd.conf

Add server name after #ServerName www.example.com:80

ServerName svnlabs

# sudo /etc/init.d/httpd reload

By default port 80 is blocked on server, enable in iptables…
# iptables -I RH-Firewall-1-INPUT -p tcp --dport 80 -j ACCEPT

Chkconfig to start automatically if the Cloud Server is rebooted.

# sudo /sbin/chkconfig httpd on

Install MySQL

# yum install mysql-server
# /etc/init.d/mysqld start

Install PHP

Edit Repo file
# sudo vi /etc/yum.repos.d/CentOS-Base.repo

add at last

[c5-testing]
name=CentOS-5 Testing
baseurl=http://dev.centos.org/centos/$releasever/testing/$basearch/
enabled=1
gpgcheck=1
gpgkey=http://dev.centos.org/centos/RPM-GPG-KEY-CentOS-testing

now run
# yum install php php-common php-gd php-mcrypt php-pear php-pecl-memcache php-mhash php-mysql php-xml php-mbstring

Install PhpMyAdmin

# cd /var/www/html
# wget http://downloads.sourceforge.net/project/phpmyadmin/phpMyAdmin/3.3.6/phpMyAdmin-3.3.6-english.tar.gz?r=http%3A%2F%2Fwww.phpmyadmin.net%2Fhome_page%2Fdownloads.php&ts=1283745912&use_mirror=voxel

# tar zxvf phpMyAdmin-3.3.6-english.tar.gz
# mv phpMyAdmin-3.3.6-english phpmyadmin
# cd phpmyadmin
# cp config.sample.inc.php config.inc.php

Edit config.inc.php for random string $cfg[‘blowfish_secret’] = ‘RandomStringHere’;

Restart server
# service httpd restart

Comparison between Amazon Cloud & Rackspace Cloud … Coming Soon 😉