Over a million developers have joined DZone.

Cloud Foundry PHP Buildpack Doesn’t Support Lucid 64

Recently Canonical announced it is dropping support for Lucid 64, which is Ubuntu 10.04 LTS. What does this mean for Cloud Foundry and the PHP buildpack?

· Cloud Zone

Build fast, scale big with MongoDB Atlas, a hosted service for the leading NoSQL database on AWS. Try it now! Brought to you in partnership with MongoDB.

Recently the company that owns development for Ubuntu (Canonical) announced it is dropping support for Lucid 64, which is Ubuntu 10.04 LTS. What does this mean for Cloud Foundry and the PHP buildpack?

Well, nothing really, but there are a couple of gotcha’s you should know about.

If you are pushing an app to Cloud Foundry and getting an error message like the following, there is a workaround you need to do to get the PHP buildpack to work.

[08:49 AM] jsloyer@Jeffs-MacBook-Pro-2 [php]>cf push phpinfo-jbs2 -b https://github.com/cloudfoundry/php-buildpack.git
.....
It looks like you're deploying on a stack (currently set to *lucid64*) that's not supported by this buildpack.
That could be because you're using a recent buildpack release on a deprecated stack.
If you're using the buildpack installed by your CF admin, please let your admin know you saw this error message.
If you at one point specified a buildpack that's at git URL, please make sure you're pointed at a version that supports this stack.
Staging failed: Buildpack compilation step failed

FAILED
BuildpackCompileFailed

What this is saying is the instance of Cloud Foundry that you are running on the default stack you get is an old version of Ubuntu. The PHP buildpack excepts the newer version of Linux. This stack is called cflinuxfs2, also known as Ubuntu 14.04.

To work around this you just need to specify the stack you want to use:

cf push phpinfo-jbs2 -b https://github.com/cloudfoundry/php-buildpack.git -s cflinuxfs2

More information on this issue can be found on GitHub.

Now it's easier than ever to get started with MongoDB, the database that allows startups and enterprises alike to rapidly build planet-scale apps. Introducing MongoDB Atlas, the official hosted service for the database on AWS. Try it now! Brought to you in partnership with MongoDB.

Topics:
php ,cloud foundry ,ubuntu ,cloud

Published at DZone with permission of Jeff Sloyer. See the original article here.

Opinions expressed by DZone contributors are their own.

The best of DZone straight to your inbox.

SEE AN EXAMPLE
Please provide a valid email address.

Thanks for subscribing!

Awesome! Check your inbox to verify your email so you can start receiving the latest in tech news and resources.
Subscribe

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}