Error initializing WP

After setup vhost I try to inizialize WP with

http://my_domain.net/wp/wp-admin

but browser returns an empty page. No errors shown, just white.

apache error log show me that:

[Thu Apr 30 13:16:58 2015] [error] [client 127.0.0.1] PHP Parse error:  parse error, expecting `')'' in /Library/WebServer/Documents/telmo-merz/bedrock/config/application.php on line 12

And, line 12 of application.php is:

Dotenv::required(['DB_NAME', 'DB_USER', 'DB_PASSWORD', 'WP_HOME', 'WP_SITEURL']);

Seems to be DB credentials at .env file. And my .env file contains this:

DB_NAME=telmo-merz
DB_USER=root
DB_PASSWORD=
DB_HOST=localhost

WP_ENV=development
WP_HOME=http://telmo-merz.e451.net/
WP_SITEURL=http://telmo-merz.e451.net/

I tried too to connect with another MySQL user:

DB_USER=aitor
DB_PASSWORD=my_pss

What am I doing wrong?

PHP 5.4+ is required.

1 Like

This topic is now unlisted. It will no longer be displayed in any topic lists. The only way to access this topic is via direct link.