I'm trying to make a PHP script that automates installation of linux web servers.
I'm currently stuck at this part:
When I'm installing the MySQL server it will open its own screen and it will ask me for the root password.
I know how to save the password in a variable but how can I make that MySQL screen use that variable?
This is what I have so far:
<?php
$_fp = fopen("php://stdin", "r");
echo 'Input mysql root password: ';
$rootpswd = trim(fgets(STDIN));