Amazon S3 Error Handling

Amazon S3 PHP Class A standalone Amazon S3 (REST) client for PHP 5.2.x using CURL that does not require PEAR. AMAZON S3 (Scalable Storage in the Cloud) PHP CLASS // AWS access info if (!defined(‘awsAccessKey’)) define(‘awsAccessKey’, ‘CHANGE-KEY’); if (!defined(‘awsSecretKey’)) define(‘awsSecretKey’, ‘CHANGE-KEY’); OO method (e,g; $s3->getObject(…)): $s3 = new S3(awsAccessKey, awsSecretKey); Statically (e,g; S3::getObject(…)): S3::setAuth(awsAccessKey, awsSecretKey); … Read more

AWS CloudFront with PHP

Amazon CloudFront is a web service for content delivery (CDN). It integrates with other Amazon Web Services EC2 / S3 to give developers and businesses an easy way to distribute content to end users with low latency and high data transfer speeds. http://aws.amazon.com/cloudfront/ Digital Inspiration – Thanks to http://www.labnol.org… it always provides help for all … Read more

SaaS built using a PaaS (Google App Engine) and using IaaS (Amazon EC2)

SaaS = PaaS + IaaS Tools for Development, Testing and Implementation: * Amazon Web Services (AWS) * Google App Engine (GAE) * Google Chart Libraries * Eclipse IDE VaR Cloud Presentation SVNLabs References: Google AppEngine: http://code.google.com/appengine/ Amazon EC2: http://aws.amazon.com/ec2/ Google Chart: http://code.google.com/apis/chart/ “A lamp does not speak. It introduces itself through it’s light. Achievers never … Read more

fbsocialmarketing.com

FB Social Marketing is a Social Media Marketing company specializing in the development of Facebook Fan Pages for your business. Be sure to check out complete line of training videos. I have partnered with Shelle Kind of fbsocialmarketing.com and we have released the Amazon S3 / EC2 Solution for Facebook fanpage apps.

How to Setup Elastic Load Balancing on AWS

Amazon S3 & Facebook Fanpage app

I want to link Amazon S3 https object like “https://s3.amazonaws.com/bucket/index.html” to facebook iframed fan page… But it returned error…. 405 Method Not Allowed Code: MethodNotAllowed Message: The specified method is not allowed against this resource. ResourceType: OBJECT Method: POST RequestId: XXXXXXXXXXXXX HostId: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX OR PreconditionFailedAt least one of the pre-conditions you specified did not holdBucket … Read more

Backup mysql database to amazon S3

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 12 … Read more