Bug 990314

Summary: cannot create an app based on PHP5.3
Product: OpenShift Online Reporter: Andrew Starlike <andrewstarlike>
Component: TemplatesAssignee: Dan McPherson <dmcphers>
Status: CLOSED NOTABUG QA Contact: libra bugs <libra-bugs>
Severity: high Docs Contact:
Priority: unspecified    
Version: 2.x   
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-07-30 23:08:15 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

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