Hallo,
wenn ich über die Konsole ein PHP-Skript ausführe über "php skript.php" wird per PHP4 geparsed; verwende ich "php5 skript.php" wird PHP5 benutzt.
Wo kann ich einstellen, dass PHP5 als Standard gesetzt ist, also beim Aufruf von "php skript.php" PHP5 genutzt wird?
Vielen Dank vorab!
Michael
Umstellung von PHP4 auf PHP5 (Konsole)
-
Roger Wilco
- Posts: 5923
- Joined: 2004-05-23 12:53
Re: Umstellung von PHP4 auf PHP5 (Konsole)
Code: Select all
mv $(which php) $(dirname $(which php))/php4
ln -s $(which php5) $(dirname $(which php5))/phpRe: Umstellung von PHP4 auf PHP5 (Konsole)
Vielen Dank! :-D
Re: Umstellung von PHP4 auf PHP5 (Konsole)
Unter debian gibt es dafür
update-alternatives --display php
bzw.
update-alternatives --config php
update-alternatives --display php
bzw.
update-alternatives --config php