Thursday, February 21, 2013

Deploy PHP Apps to Heroku, Simplified

Despite some recent pr debacle around performance issues that were known but not documented, Heroku remains a good platform for getting started with PaaS. It is by far the most popular PaaS platform out there and allows you to develop scalable web applications without having to worry about managing servers, database clustering or other systems administration tasks.

Though initially a Ruby on Rails platform, Heroku now provides supports for virtually every major language and framework, including PHP, Python and Java. However, developing for Heroku in one of these other languages requires more work, particularly around setting up your development environment on Windows or Mac OS X. With our experience in providing instant development environments, we decided to put together a stack to make it easier to get started with Heroku with PHP (we plan to extend this to other languages). For those of you not familiar with BitNami, a 'stack' is a self-contained environment for a specific web application or development framework that you can install in your machine or launch as virtual machines or cloud images.

As of yesterday, we have added the Heroku client and extensions to our AMP (Apache/MySQL/PHP) and APP (Apache/PostgreSQL/PHP) Stacks, so you can have a complete PHP development environment setup for Heroku on your laptop or server in minutes. As with all of our self-contained stacks, the BitNami PHP development stacks are free and available as virtual appliances and cloud images as well as native installers for Linux, Windows or OS X. In addition to providing a PHP development environment, they also include a minimal ruby runtime and a ready-to-run Heroku client, so you have everything you need to start developing for Heroku. They are already fully configured so you can start developing as soon as you have one of them running on your machine.

To learn how to get started, check out our wiki entry, which walks you step by step through developing in PHP for Heroku. You will also need to download the BitNami Stack for your environment:

To develop for Heroku with PHP and MySQL, download the stack for your operating system:


To develop for Heroku with PHP and PostgreSQL, download the stack for your operating system:



After you have a chance to give one of the stacks a try, we would love to get your feedback - just post your thoughts on our Q&A site. Enjoy!

Discuss on Hacker News

4 comments:

  1. I have worked with php platforms such as Drupal and Joomla but never heard of Heroku. I would like to know more about it.

    ReplyDelete
  2. This comment has been removed by the author.

    ReplyDelete
  3. I have set my own home build CMS for Heroku, which was quite easy. And I think it is fairly fast. For great performance boost you will need to use the free memcache extension. If interested you can check the Heroku site out here: http://heroku-php-cms.coscms.org/content/article/view/41/Simple-PHP-CMS-for-heroku It is open source and works nice with MySQL

    ReplyDelete
  4. do u have any idea on how to import data in sql format to postgre

    ReplyDelete