title: openshift nginx php-fpm wordpress
body: <p>Trying to have working wordpress in Openshift with nginx, php-fpm</p>
  <p>I installed nginx-php-fpm, added mysql, download wordpress files in /www directory, changed wp-config-sample.php to wp-config.php and changed contents to <a href="https://github.com/openshift/wordpress-example/blob/master/.openshift/config/wp-config.php" rel="nofollow noreferrer">https://github.com/openshift/wordpress-example/blob/master/.openshift/config/wp-config.php</a>
  then send it all to openshift app. visiting app url gives me blank white page with no error msg. Further digging into error logs gives me following:</p>
  <h3>nginx-php-fpm/logs/nginx_error.log</h3>
  <pre><code>nginx: [alert] could not open error log file: open() &quot;/var/log/nginx/error.log&quot;failed (13: Permission denied)
  nginx: [alert] could not open error log file: open() &quot;/var/log/nginx/error.log&quot;failed (13: Permission denied)
  </code></pre>
  <h3>nginx-php-fpm/logs/nginx_access.log</h3>
  <pre><code>[21/May/2014:12:39:16 -0400] &quot;GET / HTTP/1.1&quot; 500 5 &quot;-&quot; &quot;Mozilla/5.0 (Windows NT 6.2) AppleWebKit/829.36 (KHTML, like Gecko) Chrome/ Safari/829.36&quot;
  </code></pre>
  <h3>nginx-php-fpm/logs/www-error.log</h3>
  <pre><code>[21-May-2014 16:39:16 GMT] PHP   1. {main}() /var/lib/openshift/829cd5474382ec640700064e/app-root/runtime/repo/www/index.php:0
  [21-May-2014 16:39:16 GMT] PHP   2. require() /var/lib/openshift/829cd5474382ec640700064e/app-root/runtime/repo/www/index.php:17
  [21-May-2014 16:39:16 GMT] PHP   3. require_once() /var/lib/openshift/829cd5474382ec640700064e/app-root/runtime/repo/www/wp-blog-header.php:12
  [21-May-2014 16:39:16 GMT] PHP   4. require_once() /var/lib/openshift/829cd5474382ec640700064e/app-root/runtime/repo/www/wp-load.php:29
  [21-May-2014 16:39:16 GMT] PHP Fatal error:  require_once(): Failed opening required '/var/lib/openshift/829cd5474382ec640700064e/app-root/runtime/repo/.openshift/openshift.inc'(include_path='.:/var/lib/openshift/829cd5474382ec640700064e/app-oot/runtime/repo//libs/:/var/lib/openshift/829cd5474382ec640700064e/nginx-php-fpm//phplib/pear/pear/php/:/usr/share/pear/') in /var/lib/openshift/829cd5474382ec640700064e/app-root/runtime/repo/www/wp-config.php on line 47
  [21-May-2014 16:39:16 GMT] PHP Stack trace:
  [21-May-2014 16:39:16 GMT] PHP   1. {main}() /var/lib/openshift/829cd5474382ec640700064e/app-root/runtime/repo/www/index.php:0
  [21-May-2014 16:39:16 GMT] PHP   2. require() /var/lib/openshift/829cd5474382ec640700064e/app-root/runtime/repo/www/index.php:17
  [21-May-2014 16:39:16 GMT] PHP   3. require_once() /var/lib/openshift/829cd5474382ec640700064e/app-root/runtime/repo/www/wp-blog-header.php:12
  [21-May-2014 16:39:16 GMT] PHP   4. require_once() /var/lib/openshift/829cd5474382ec640700064e/app-root/runtime/repo/www/wp-load.php:29
  </code></pre>
  <h3>nginx-php-fpm/logs/php_error.log</h3>
  <pre><code>[21-May-2014 12:34:38] NOTICE: [pool www] 'user' directive is ignored when FPM is not running as root
  [21-May-2014 12:34:38] NOTICE: fpm is running, pid 120752
  [21-May-2014 12:34:38] NOTICE: ready to handle connections
  [21-May-2014 12:41:55] NOTICE: Terminating ...
  [21-May-2014 12:41:55] NOTICE: exiting, bye-bye!
  [21-May-2014 12:41:56] WARNING: Nothing matches the include pattern '/var/lib/openshift/829cd5474382ec640700064e/app-root/runtime/repo//config/php-pm.d/*.conf' from /var/lib/openshift/829cd5474382ec640700064e/nginx-php-fpm//configuration/etc/php-fpm.conf at line 227.
  [21-May-2014 12:41:56] NOTICE: [pool www] 'user' directive is ignored when FPM is not running as root
  [21-May-2014 12:41:56] NOTICE: [pool www] 'user' directive is ignored when FPM is not running as root
  [21-May-2014 12:41:56] NOTICE: fpm is running, pid 143797
  [21-May-2014 12:41:56] NOTICE: ready to handle connections
  </code></pre>