Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
23 lines (15 sloc) 648 Bytes
$UbuntuRelease = exec("lsb_release -c -s");
echo $UbuntuRelease;
$fp = fopen('/etc/apt/sources.list.d/firebird.list','w');
fwrite($fp,"deb $UbuntuRelease main\n");
fwrite($fp,"deb-src $UbuntuRelease main\n");
passthru("sudo apt-get update");
passthru("sudo apt-get -y --force-yes install firebird2.5-super");
passthru("sudo sudo dpkg-reconfigure firebird2.5-super");
passthru("sudo apt-get -y --force-yes install php5-interbase");
#restart fast-cgi to pick interbase extension
passthru("sudo /etc/init.d/init-fastcgi restart");