Idan Ptichi
Idan Ptichi

Reputation: 316

No colors in PHP cli

I have on a remote linux (Centos) server with PHP 7.0.12 installed on it. When i ssh to this server and run php commands such as:

All the output i see is in black and white, no colors at all appear (green for successful tests/ red for erros, etc.).

However, the linux bash itself , HAS colors (when doing 'ls' for example). I didn't found nothing on this issue online, really hope someone here encountered this annoying issue and knows the cause.

Upvotes: 1

Views: 529

Answers (1)

Idan Ptichi
Idan Ptichi

Reputation: 316

Found it! 'php-posix' package was needed for php to output colors in centos. This was installed via this package: php-process-7.0.12-2.el7.remi.x86_64

Upvotes: 4

Related Questions