I have a monitoring application (nagiosxi) that is deployed on a Linux box and some final settings are carried out via the web browser. For example, if the application is deployed on say, 192.168.2.10 and if I point the browser to http://192.168.2.10, it automatically redirects to http://192.168.2.10/nagiosxi/install.php. There are some basic settings like verifying the URL and click next, followed by setting up a password and finally hitting finished set-up.
Now, I trying to see if I can do the same using the php CLI
So, in a terminal I tried,
php -f /usr/local/nagiosxi/html/install.php
but this gives a big stdout and I cannot interactively set anything.
Is there a way to do this? Please note I have zero background in PHP.