"ದಶಾವತಾರ" ( ten incarnations of Lord VishNu) By Rajashri n Guru

TABs

  • page1
  • Sivasurya
  • RAMESH
  • HOME

Thursday, November 6, 2014

lakshmi-gaNapati

lakshmi-gaNapati
Posted by nmgururaja at 3:10 AM No comments:
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest
Newer Posts Older Posts Home
Subscribe to: Comments (Atom)

Sivsurya

working with ibm bluemix for deploying PHP application on cloud - cloud foundry ~ i-visionblog

i-visionblog

A Personal Tech Blog by s.shivasurya

  • Home
  • PHP - MYSQl
    • What is PHP?
    • Install WAMP Server
    • PHP Mobile detect
    • PHP LoginSystem
      • Login v1.0
      • PHP OOPS-Login
      • PHP Easy-Login
      • Google reCAPTCHA
    • Working On Heroku
  • Android
    • Android on PC
    • Android at space
    • Install I-OS on Samsung
    • Increase Your Internal Memory
    • Android Root Access
      • Samsung Galaxy Y
  • Javascript Library
    • Node.js >>
      • Send E-Mail
      • File Encryption
      • Deploy Node.js
      • Express Node.js
      • Ajax Upload
      • Desktop Apps
    • Crypto.js
    • Chart.js
    • Maplace.js
    • Masonry.js
    • Linkedin.js
    • Other JS library
      • Webcam.js
      • QRcode.js
      • impress.js
  • API Scripts
    • Cloud Apps >
      • What is Cloud?
      • IBM Bluemix >
        • PHP Apps
        • Node.js Apps
      • Heroku Cloud >
        • PHP Apps
      • Openshift >
        • Node.Js App
    • Contacts Importer
    • Javascript >
      • Google API >
        • URL shortener
        • Gmail Contacts
        • Google Maps API
      • Parse.js
      • Bing Maps API
    • Google Appscripts
      • Coming Soon
    • PHP >
      • Coming Soon
    • Node.js >
      • Rest API
  • Intresting Streams
    • MindVoice Articles
      • Madurai Eye Opener
      • Irandam ulagam
      • Review On Politic System
    • Facebook Like button
    • Facebook custom stories
    • Enable Facebook Replies
    • Facebook Status Update
  • Others
    • About-Me
    • Contact Me
    • Privacy Policy
    • All Posts
    • Tce Downloads
  • SmartLabs

Tuesday, May 20, 2014

Tuesday, May 20, 2014

working with ibm bluemix for deploying PHP application on cloud - cloud foundry

by SHIVA SURYA  amazing, cloud, interest, Internet, php, review  2 comments
As i mentioned about my cloud experience in Heroku and attended a workshop on IBM cloud ,i had an opportunity to deploy my php application on +IBM.I got success in deploying my PHP application instant manner from my windows platform.i am so thankful to +vikas sir for introducing the bluemix through workshop session,as i mentioned in my last post.bluemix is under beta version and open to all till june.





Scope:

we could deploy php application on cloud,Create services and run database.Since i am currently using Windows 8 i would show commands and screenshot from Command Prompt.

Requirements:

> IBM ID (mandatory) with developer registration(may be useful for forums)
> Sign Up for Beta Bluemix with IBM ID (Click Here)
> Constant Internet Connection ;)
> A small php project

Installation:

Go to Official Download page for cloud foundry tool for connecting with cloud.

1) It's better to download the Stable version.
2) Select the appropriate OS and download the zip and extract.
3) Run the installer with Admin Permissions only then You won't get errors.

After Installation:

Just it will be installed In Program files in your Windows Local Disk.
1) Now open your Command prompt with Administrative Permission.
2) And type "cf" and space "-v" (option)

    C:/>cf -v   // it must output with version number of the Cloud foundry tool Application


thus CF tool is working in your command prompt.lets start initial steps to deploy our application.


manifest.yml:

This is the important step in deploying app.This is the basic app settings ,it speaks with the cloud that you need the particular setup to run your corresponding app.Simply saying it is going to initialize cloud environment for deploying.So,let us concentrate on creating manifest.yml file.note this file must be with your project files while uploading.


---
applications:
- name: NAME-OF-YOUR-FOLDER-APP
  memory: 256M
  instances: 1 
  host: WEBSITE_ADDRESS_FOR_YOUR_APP(host)
  buildpack: https://github.com/dmikusa-pivotal/cf-php-build-pack


Actual manifest.yml of my app (note that above three hyphens must be mandatory and hyphen before name is also must)

don't change Buildpack(pulling it from git php built pack),memory(actual RAM memory limit) and instance(balance load using instance).if you change it you may be charged accordingly as per price plans.



---
applications:
- name: myapp
  memory: 256M
  instances: 1 
  host: shivamyapp
  buildpack: https://github.com/dmikusa-pivotal/cf-php-build-pack


see through that your host must be unique(app web address).may be in future you can make it your custom domain.

Deployment of app:

1) Just point your API .type this in your command prompt(ADMIN)
C:/> cf api https://api.ng.bluemix.net

2) and change directory where your project file to be uploaded.
C:/> cf login

3) Enter your E-Mail ID and Password of IBM ID
just click on it and view cf login
4) after changing directory where your project exisit.(move inside where manifest.yml present) and type the command
$ cf push myapp

since i had named my folder project name i had written as myapp(replace with your app project folder name and must be same as application name in manifest.yml)

5) by executing above command just you must get like this below image.That your upload works and moving to cloud foundry.
your project file uploading via CMD
6) After that it executes many configuration and restarts the application.this mean that your Host name is correct and working.
go to Provided_Host_name.ng.bluemix.net (hostname provided in manifest.yml)
eg: myapp.ng.bleumix.net

7) While updating your application just use step number 4,5.

note: Work with caution because cloud may costs you money for over usages and scalling instance.And you can use HTTPS connections too.

I have deployed my application on Bluemix.just have a try since it is free till june month 2014.just share your experience with comments and post errors.Contact with me in s.shivasurya@gmail.com.Share is care.
Tweet
Author :

SHIVA SURYA

I love to work on WAMP/LAMP/XAMPP/Cloud Apps/Eclipse platform/Node.js ,i love to create PHP API centric WEB/MOBILE application.The age changes from Desktop to Smartphone Apps,I too Love to create Native Android and Phonegap apps with JQuery Mobile,Ionic,Bootstrap framework as FrontEnd with REST API service at backend.Nowadays I love JAVA too. :) Contact me via s.shivasurya@gmail.com

Tired of checking for new posts ?

Get all posts directly in your mail.

You May Also Like
Newer Post Older Post
COMMENT!

2 comments:

  1. rahul21 May 2014 10:24

    nice article! shiva....post about mysql db on bluemix also pls!

    ReplyDelete
    Replies
    1. SHIVA SURYA9 June 2014 13:00

      you can just create service from lists and bind it to ur
      particular app! and ur db username,password is given in
      ur vcap service

      Delete
    2. Reply
Add comment
Load more...

feel free to post your comments!

Subscribe to: Post Comments (Atom)

S.Shivasurya

I love Cloud,Analytics,Web and Android
Engineer,Developer,Blogger
Madurai-INDIA

Google Search

Loading...

Sign up

Like me

Popular Post

  • Working With Google URL Shortener Service API and Create,Track,Maintain Analytics with Google Account - Javascript API
    URL shorteners are really useful for stats counting ,providing small sized URL instead of a huge links.Many Business on Internet Social M...
  • working with webcam.js and php to upload images- learnmore i-visionblog.com
    We all guys are fascinated towards uploading images via social networks by applications.Thus introduction of webcam made a lot of change...
  • Import Contacts and Invite New Contacts By Email From Gmail Contacts API - Inspired By Linkedin,Twitter Mail Importer
    Inviting by E-Mail is an excellent way for asking new users to try our sites ,Which is actually sent by their friends or contacts in Address...
  • Handling File Uploads and Downloads In Node.js with Ajax - Express Framework
    Uploading the files is important aspect of transferring the data to the server from the client and moving it to the storage to share for d...
  • working with chart.js to create graphs,charts using javascript
    I was monitoring my traffic last few days and was viewing graph of visitors for my site and was curious to know the way of generation of ch...

Google+ Badge

navigate

website amazing php php tutorials Internet js interest review API computer node.js android cloud cracks facebook security express rest database newsfeed passport.js

 
  • Facebook Followers

  • Google+ Followers

  • LinkedIn Connections

Copyrighted.com Registered & Protected  Z6HO-DGFO-S2CO-JRZGCopyrights Protected (C)2013-2014 i-visionblog ~ s.shivasurya.

Designed by S.Shivasurya | S.Shivasurya

Installing PHP application using Yii framework on bluemix

Loading...

Ramesh Belavadi

Ramesh Belavadi

My favs

  • BlueMix php

About Me

nmgururaja
View my complete profile

Blog Archive

  • ▼  2014 (2)
    • ▼  November (1)
      • lakshmi-gaNapati
    • ►  October (1)
Gururaja. Picture Window theme. Powered by Blogger.