Skip to content

Commit cca8f0d

Browse files
Merge pull request wp-cli#215 from wp-cli/3119-allow-root
Document the `--allow-root` flag
2 parents 9576c37 + 58f67cc commit cca8f0d

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

docs/common-issues/index.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,14 @@ See also: [#1631](https://github.com/wp-cli/wp-cli/issues/1631)
4141

4242
Please ensure you have the php-process extension installed. For example for Centos 6: `yum install php-process`
4343

44+
### Error: YIKES! It looks like you're running this as root.
45+
46+
Running WP-CLI as root is extremely dangerous. When you execute WP-CLI as root, any code within your WordPress instance (including third-party plugins and themes you've installed) will have full privileges to the entire server. This can enable malicious code within the WordPress instance to compromise the entire server.
47+
48+
The WP-CLI project strongly discourages running WP-CLI as root.
49+
50+
See also: [#973](https://github.com/wp-cli/wp-cli/pull/973#issuecomment-35842969)
51+
4452
### PHP notice: Undefined index on `$_SERVER` superglobal
4553

4654
The `$_SERVER` superglobal is an array typically populated by a web server with information such as headers, paths, and script locations. PHP CLI doesn't populate this variable, nor does WP-CLI, because many of the variable details are meaningless at the command line.

0 commit comments

Comments
 (0)