SOLVED How to view the config.php file

Status
Not open for further replies.

Andrew Byrd

Member
Feb 16, 2018
309
10
18
54
Can someone please tell me the command to view the contents (database password) in this file?

/etc/fusionpbx/config.php

I can ssh in with no problem. I just can't remember the command line to view the file
 

ad5ou

Active Member
Jun 12, 2018
887
197
43
cat filename

or

grep -oP ".*db_password ?= ?'\K.*[^';]" /etc/fusionpbx/config.php
 
Status
Not open for further replies.