# WP-CLI Outputs wp-config.php

**URL:** <https://community.localwp.com/t/wp-cli-outputs-wp-config-php/5110>\
**Category:** Support\
**Created:** [February 5, 2018, 5:04pm UTC](https://community.localwp.com/t/wp-cli-outputs-wp-config-php/5110 "2018-02-05T17:04:48Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![raison](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/raison/32/4445_2.png) [@raison](https://community.localwp.com/u/raison)\
**Post date:** [February 5, 2018, 5:04pm UTC](https://community.localwp.com/t/wp-cli-outputs-wp-config-php/5110/1 "2018-02-05T17:04:48Z")

</div>

Any ideas when I get the wp-config.php outputted when I use WP-CLI?

I had seen similar outputs on the website prior to enabling PHP shorttags. I doubt it’s connected, but thought worth mentioning.

Here is a screenshot: [https://www.dropbox.com/s/ab9joka23lvm9ik/Screenshot%202018-02-05%2017.02.19.png?dl=0](https://www.dropbox.com/s/ab9joka23lvm9ik/Screenshot%202018-02-05%2017.02.19.png?dl=0)

It outputs after running a WPCLI command. The command is still executed after the output.

I also see this outputted at the end:

phar:///usr/local/bin/wp/php/WP\_CLI/Runner.php:1070  
0.1176 3070672 9. define() phar:///usr/local/bin/wp/php/WP\_CLI/Runner.php(1070) : eval()'d code:112

I get this at the beginning:

Warning: PHP Startup: Unable to load dynamic library ‘/opt/php/7.1.4/lib/php/extensions/no-debug-non-zts-20160303/php\_openssl.dll’ - /opt/php/7.1.4/lib/php/extensions/no-debug-non-zts-20160303/php\_openssl.dll: cannot open shared object file: No such file or directory in Unknown on line 0

Notice: Undefined index: SERVER\_NAME in phar:///usr/local/bin/wp/php/WP\_CLI/Runner.php(1070) : eval()'d code on line 25

Call Stack:  
0.0001 344952 1. {main}() /usr/local/bin/wp:0  
0.0099 747192 2. include(‘phar:///usr/local/bin/wp/php/boot-phar.php’) /usr/local/bin/wp:4  
0.0100 748384 3. include(‘phar:///usr/local/bin/wp/php/wp-cli.php’) phar:///usr/local/bin/wp/php/boot-phar.php:8  
0.0102 750496 4. WP\_CLI\bootstrap() phar:///usr/local/bin/wp/php/wp-cli.php:23  
0.0940 2977136 5. WP\_CLI\Bootstrap\LaunchRunner-\>process() phar:///usr/local/bin/wp/php/bootstrap.php:75  
0.0940 2977176 6. WP\_CLI\Runner-\>start() phar:///usr/local/bin/wp/php/WP\_CLI/Bootstrap/LaunchRunner.php:23  
0.0970 3033208 7. WP\_CLI\Runner-\>load\_wordpress() phar:///usr/local/bin/wp/php/WP\_CLI/Runner.php:1032  
0.0979 3069432 8. eval(’/\*\*

Advice appreciated.

Elliot

---

<div class="post-metadata">

**Author:** ![raison](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/raison/32/4445_2.png) [@raison](https://community.localwp.com/u/raison)\
**Post date:** [February 21, 2018, 10:09am UTC](https://community.localwp.com/t/wp-cli-outputs-wp-config-php/5110/2 "2018-02-21T10:09:46Z")

</div>

I think this is because we are using shorttags in our code.

Eg. \<? and not \<?php

Although we have this set in the php for the site, perhaps the php that runs wp-cli is breaking with this. The question: how do we allow shorttags on the server to use wp-cli.

Thanks

---

<div class="post-metadata">

**Author:** ![system](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/system/32/1_2.png) [@system](https://community.localwp.com/u/system)\
**Post date:** [August 25, 2020, 6:33pm UTC](https://community.localwp.com/t/wp-cli-outputs-wp-config-php/5110/3 "2020-08-25T18:33:46Z")

</div>


