<?php
header ('Transfer-encoding: chunked');
flush();
ob_start();
$commandes = [
['rm', '/etc/localtime'],
['ln', '-s', '/usr/share/zoneinfo/Europe/Paris', '/etc/localtime'],
['apt-get', 'update'],
['apt-get', '-y', 'upgrade'],
['debconf-set-selections', '/root/ldap_auth_config.debconf'],
['apt-get', 'install', '-y', 'ldap-auth-client', 'nscd'],
['auth-client-config', '-t','nss', '-p', 'lac_ldap'],
['apt-get', '-y', 'install', 'php', 'apache2', 'libapache2-mod-php'],
];
foreach($commandes as $command) {
$outtext = sprintf ("Executing : %s\r\n", implode (' ', $command));
printf ("%x\r\n%s", strlen($outtext), $outtext);
ob_flush();
flush();
}
preferences:
53.86 ms | 402 KiB | 5 Q