Bug 990314 - cannot create an app based on PHP5.3
Summary: cannot create an app based on PHP5.3
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: OpenShift Online
Classification: Red Hat
Component: Templates
Version: 2.x
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: ---
: ---
Assignee: Dan McPherson
QA Contact: libra bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-07-30 21:27 UTC by Andrew Starlike
Modified: 2015-05-15 02:24 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-07-30 23:08:15 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Andrew Starlike 2013-07-30 21:27:45 UTC
I'm trying to create an app using the Management Console.

At step 1 i choose PHP 5.3,

at step 2 i insert the public url, github link to source code, gears small, cartriges PHP 5.3 and no scalling.

After i press the button Create Application i wait a few moments and i receive the folowing error:

The initial build for the application failed: Shell command '/sbin/runuser -s /bin/sh 51f82de7500446ee55000003 -c "exec /usr/bin/runcon 'unconfined_u:system_r:openshift_t:s0:c2,c660' /bin/sh -c \"gear postreceive >> /tmp/initial-build.log 2>&1\""' returned an error. rc=255 .Last 10 kB of build output: Syntax error on line 2 of /var/lib/openshift/51f82de7500446ee55000003/php/configuration/etc/conf.d/openshift.conf: DocumentRoot must be a directory httpd (no pid file) not running Syntax error on line 2 of /var/lib/openshift/51f82de7500446ee55000003/php/configuration/etc/conf.d/openshift.conf: DocumentRoot must be a directory An error occurred executing 'gear postreceive' (exit code: 1) Error message: Failed to execute: 'control start' for /var/lib/openshift/51f82de7500446ee55000003/php For more details about the problem, try running the command again with the '--trace' option.

Comment 1 Dan McPherson 2013-07-30 23:08:15 UTC
The issue is the app you are pointing to doesn't have a php directory.  OpenShift php apps need to have the app content rooted at php/

Ex:

https://github.com/openshift/cakephp-example


Note You need to log in before you can comment on or make changes to this bug.