PHP-Konfiguration unterscheidet sich mit Symlink

313
Harold

PHP-Konfiguration hat nicht die gleiche Zeitzone, wenn ich Symlink verwende!

xxxx:/usr/bin $ php -i | grep timezone  Default timezone => Europe/Berlin date.timezone => no value => no value  xxxx:/usr/bin $ php7.2 -i | grep timezone  Default timezone => Europe/Paris date.timezone => Europe/Paris => Europe/Paris  xxxx:/usr/bin $ ll php* lrwxrwxrwx 1 root root 21 Aug 31 2017 php -> /etc/alternatives/php* -rwxr-xr-x 1 root root 9114792 Aug 4 2017 php5* -rwxr-xr-x 1 root root 4764912 Mar 6 13:50 php7.2*  xxxx:/usr/bin $ ll /etc/alternatives/php*  lrwxrwxrwx 1 root root 15 Mar 8 17:25 /etc/alternatives/php -> /usr/bin/php7.2* 
0
Ich glaube nicht, dass die Symlink-Punkte dort liegen, wo Sie glauben, dass dies der Fall ist - es scheint, dass es sich auf /etc/alternatives/php7.2 bezieht, nicht auf /use/bin/php7.2. Wenn Sie Tests ausführen, reiben Sie als., / Php, da dies dazu führt, dass es vom aktuellen Verzeichnis und nicht vom Pfad ausgeführt wird. davidgo vor 6 Jahren 0
$ which php> return: / usr / bin / php -> / etc / alternatives / php -> /usr/bin/php7.2 Harold vor 6 Jahren 0

0 Antworten auf die Frage