openshift/wordpress-example — pull request #47 by cortex93 (2014-02-12 21:25:18+00:00)
Title: add a temporay php document root

Hi,

On a fresh fedora 19 install, trying to provision this sample with
```rhc app create wordpress php-5.3 mysql-5.1 --from-code=https://github.com/openshift/wordpress-example```

I got

```
Creating application 'wordpress-sample' ...
The initial build for the application failed: Shell command '/sbin/runuser -s /bin/sh 52fbc5a988df956475000107 -c
"exec /usr/bin/runcon 'unconfined_u:system_r:openshift_t:s0:c0,c1002' /bin/sh -c \"gear prereceive --init >>
/tmp/initial-build.log 2>&1\""' returned an error. rc=255

.Last 10 kB of build output:
Stopping PHP cartridge
AH00526: Syntax error on line 2 of
/var/lib/openshift/52fbc5a988df956475000107/php/configuration/etc/conf.d/openshift.conf:
DocumentRoot must be a directory
An error occurred executing 'gear prereceive' (exit code: 1)
Error message: Failed to execute: 'control stop' for /var/lib/openshift/52fbc5a988df956475000107/php
```

I fix this issue by adding a php folder to the template and remove it before creating the symlink in the deploy hook.