• Home
  • Archive
  • Tools
  • Contact Us

The Customize Windows

Technology Journal

  • Cloud Computing
  • Computer
  • Digital Photography
  • Windows 7
  • Archive
  • Cloud Computing
  • Virtualization
  • Computer and Internet
  • Digital Photography
  • Android
  • Sysadmin
  • Electronics
  • Big Data
  • Virtualization
  • Downloads
  • Web Development
  • Apple
  • Android
Advertisement
You are here: Home » Heroku Cloud With PHP : Advanced Commands for Perfect Setup

By Abhishek Ghosh December 3, 2012 9:43 am Updated on December 3, 2012

Heroku Cloud With PHP : Advanced Commands for Perfect Setup

Advertisement

Heroku Cloud is an excellent cloud PaaS for free of cost for the developers to test or even run serious instances. Here is some extra shining tips for Heroku. We have quite number of articles on Heroku Cloud; you can simply search with the the phrase Heroku Cloud in the search box of this website to get the list as search result. At minimum, read this one article view the Video Guide on Installing WordPress on Heroku Cloud. That guide was done on Ubuntu, for installing Heroku Tool Belt on Mac OS X, follow this guide.

 

Heroku Cloud With PHP : Fix All the Missing Parts

 

It is unfortunate that OS X 10.8 has been bit different than the older our ‘normal’ UNIX like OS from command line. So, if you have not ‘calibrated’ your command line tool, first fix them. You will need to install the minimum things, which are actually covered in that article.

On the Heroku Cloud Server side, the definite issue of Heroku Cloud is – missing PHP zlib extension. For ‘forgetting’ this thing, we basically can not update the plugins of WordPress (on Heroku Cloud) from WordPress Admin. Other missing things, most developers cum bloggers has fixed are – cache, a webroot etc. We will however point out two basic things people get stuck – first time login, creating a SSH key pair and then fixing the missing PHP zlib extension by installing it.

Advertisement

---

 

Installing PHP zlib extension on Heroku Cloud

 

The steps are almost same for Ubuntu and Windows too, but specifically this is for full OS X Server administration (read Mac OS X 10.8). First change directory to .ssh :

 

Vim
1
cd ~/.ssh

 

This is very nice command, you will get a 1024 bit key pair (public and private keys) with no password prompts and many extra things :

 

Vim
1
ssh-keygen -b 1024 -t dsa -f id_dsa -P ''

 

Heroku Cloud With PHP

Then :

 

Vim
1
touch authorized_keys2

 

Next :

 

Vim
1
cat id_dsa.pub >> authorized_keys2

 

Set the permission rightly for it :

 

Vim
1
chmod 400 id_dsa

 

Add the public key :

 

Vim
1
heroku keys:add

 

Installing PHP zlib extension on Heroku Cloud

If your App™s name is afternoon-autumn-6095 ; then clone it you need to run :

 

Vim
1
git clone git@heroku.com:afternoon-autumn-6095.git -o heroku

 

Else create a new app :

 

Vim
1
heroku create --stack cedar

 

The next steps of adding git are already written in the previous guide. In short, change directory to that cloned app folder, change app as you need and push it. Now the important steps and commands are :

 

Vim
1
heroku run bash

 

It is practically indicating you do have the shell access with root permission. I have not discovered the way, its two people worked quite nicely. Run the commands one by one, please understand WHAT you need to change (do not copy paste blindly):

 

Vim
1
export PS1="u@h w> "

Vim
1
mkdir tmp

Vim
1
cd tmp

Vim
1
git clone https://github.com/php/php-src.git -b PHP-5.3

Vim
1
cd php-src

Vim
1
cd ext/zlib

Vim
1
/app/php/bin/phpize

Vim
1
./configure “with-php-config=/app/php/bin/php-config

Vim
1
make

Vim
1
cd modules

Vim
1
scp zlib.so user@host:~/destination

Vim
1
mkdir -p lib/php

Vim
1
mv zlib.so lib/php

Vim
1
echo "extension = /app/www/lib/php/zlib.so" > php.ini

Vim
1
mkdir src/app/cache

Vim
1
touch src/app/cache/.placeholder

Vim
1
git add php.ini lib/ src/app/cache/

Vim
1
git commit -m "Write whatever you want"

Vim
1
git push heroku heroku:master

 

This the part of installing PHP zlib extension on Heroku Cloud. Basically, you add a web root, use it with all features just like a webserver with root access.

 
Abhishek-Ghosh

This Article Has Been Shared 502 Times!

Facebook Twitter Pinterest

Abhishek Ghosh

About Abhishek Ghosh

Abhishek Ghosh is a Businessman, Surgeon, Author and Blogger. You can keep touch with him on Twitter - @AbhishekCTRL.

Here’s what we’ve got for you which might like :

Articles Related to Heroku Cloud With PHP : Advanced Commands for Perfect Setup

  • LinkedIn Profile Badge using LinkedIn API Guide

    LinkedIn Profile Badge can be created using LinkedIn API . Here is step by step guide with tools needed for troubleshooting for successfully creating the badge.

  • Installing PrestaShop on Rackspace Cloud Sites

    Installing PrestaShop on Rackspace Cloud Sites is as easy as installing WordPress and is a nice solution for setting up an e-commerce website. PrestaShop comes as Open Source product, that is free; however various plugins / modules are paid, unlike WordPress has mostly free plugins. For Installing PrestaShop on Rackspace Cloud Sites, basically you will […]

  • Downloading or Cloning a Full Website in OS X and Linux with wget

    Downloading or Cloning a Full Website in OS X and Linux with wget can make it fully static and you can deliver it from any CDN like Rackspace Cloud Files.

  • Self Hosted Schema.org and Microformats Free Checking Tools

    Self Hosted Schema.org and Microformats Free Checking Tools can easily be hosted on any free Platform as a Service (PaaS) or cloud server or with your website. We typically in schooling said these type of tools as scripts. Nowadays with the possible more usage of mobile devices, people refer them as Apps. What ever they […]

  • HyperDB and WordPress Setup For Rackspace Cloud Sites

    HyperDB and WordPress Setup For Rackspace Cloud Sites is a Guide for Getting a Scalable MySQL Database for WordPress on Cloud Sites using default DB.

Additionally, performing a search on this website can help you. Also, we have YouTube Videos.

Take The Conversation Further ...

We'd love to know your thoughts on this article.
Meet the Author over on Twitter to join the conversation right now!

If you want to Advertise on our Article or want a Sponsored Article, you are invited to Contact us.

Contact Us

Subscribe To Our Free Newsletter

Get new posts by email:

Please Confirm the Subscription When Approval Email Will Arrive in Your Email Inbox as Second Step.

Search this website…

 

Popular Articles

Our Homepage is best place to find popular articles!

Here Are Some Good to Read Articles :

  • Cloud Computing Service Models
  • What is Cloud Computing?
  • Cloud Computing and Social Networks in Mobile Space
  • ARM Processor Architecture
  • What Camera Mode to Choose
  • Indispensable MySQL queries for custom fields in WordPress
  • Windows 7 Speech Recognition Scripting Related Tutorials

Social Networks

  • Pinterest (24.3K Followers)
  • Twitter (5.8k Followers)
  • Facebook (5.7k Followers)
  • LinkedIn (3.7k Followers)
  • YouTube (1.3k Followers)
  • GitHub (Repository)
  • GitHub (Gists)
Looking to publish sponsored article on our website?

Contact us

Recent Posts

  • Is it Good to Run Apache Web server and MySQL Database on Separate Cloud Servers? March 27, 2023
  • Advantages of Cloud Server Over Dedicated Server for Hosting WordPress March 26, 2023
  • Get Audiophile-Grade Music on Your Smartphone March 25, 2023
  • Simple Windows Security and Privacy Checklist for 2023 March 24, 2023
  • 7 Best Artificial Intelligence (AI) Software March 24, 2023

About This Article

Cite this article as: Abhishek Ghosh, "Heroku Cloud With PHP : Advanced Commands for Perfect Setup," in The Customize Windows, December 3, 2012, March 28, 2023, https://thecustomizewindows.com/2012/12/heroku-cloud-with-php-advanced-commands-for-perfect-setup/.

Source:The Customize Windows, JiMA.in

PC users can consult Corrine Chorney for Security.

Want to know more about us? Read Notability and Mentions & Our Setup.

Copyright © 2023 - The Customize Windows | dESIGNed by The Customize Windows

Copyright  · Privacy Policy  · Advertising Policy  · Terms of Service  · Refund Policy

We use cookies on our website to give you the most relevant experience by remembering your preferences and repeat visits. By clicking “Accept”, you consent to the use of ALL the cookies.
Do not sell my personal information.
Cookie SettingsAccept
Manage consent

Privacy Overview

This website uses cookies to improve your experience while you navigate through the website. Out of these, the cookies that are categorized as necessary are stored on your browser as they are essential for the working of basic functionalities of the website. We also use third-party cookies that help us analyze and understand how you use this website. These cookies will be stored in your browser only with your consent. You also have the option to opt-out of these cookies. But opting out of some of these cookies may affect your browsing experience.
Necessary
Always Enabled
Necessary cookies are absolutely essential for the website to function properly. These cookies ensure basic functionalities and security features of the website, anonymously.
CookieDurationDescription
cookielawinfo-checkbox-analytics11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Analytics".
cookielawinfo-checkbox-functional11 monthsThe cookie is set by GDPR cookie consent to record the user consent for the cookies in the category "Functional".
cookielawinfo-checkbox-necessary11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookies is used to store the user consent for the cookies in the category "Necessary".
cookielawinfo-checkbox-others11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Other.
cookielawinfo-checkbox-performance11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Performance".
viewed_cookie_policy11 monthsThe cookie is set by the GDPR Cookie Consent plugin and is used to store whether or not user has consented to the use of cookies. It does not store any personal data.
Functional
Functional cookies help to perform certain functionalities like sharing the content of the website on social media platforms, collect feedbacks, and other third-party features.
Performance
Performance cookies are used to understand and analyze the key performance indexes of the website which helps in delivering a better user experience for the visitors.
Analytics
Analytical cookies are used to understand how visitors interact with the website. These cookies help provide information on metrics the number of visitors, bounce rate, traffic source, etc.
Advertisement
Advertisement cookies are used to provide visitors with relevant ads and marketing campaigns. These cookies track visitors across websites and collect information to provide customized ads.
Others
Other uncategorized cookies are those that are being analyzed and have not been classified into a category as yet.
SAVE & ACCEPT