Skip to content

Instantly share code, notes, and snippets.

@peterkraume
Last active January 23, 2024 14:06
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save peterkraume/95b6ea3620cad311865e69a686564fc7 to your computer and use it in GitHub Desktop.
Save peterkraume/95b6ea3620cad311865e69a686564fc7 to your computer and use it in GitHub Desktop.
CLI PHP Version bei domainfactory ändern

Homeverzeichnis des Kunden:

ln -s /usr/local/bin/php7-70LATEST-CLI ~/php

In den neuen ManagedHosting 64 Bit Umgebungen (ManagedHosting 64, ManagedServer 64 oder Reseller Dedicated 64) ist der Pfad anders, z.B. so:

ln -s /usr/bin/php74 ~/php

Eintrag in .bashrc/.zshrc

export PATH=/kunden/xxxxx_xxxxx/rp-hosting/xxx/xxx/:$PATH

@Radon8472
Copy link

My do you not yust add

alias php='php7-70LATEST-CLI'

to your ~/.profile ?

@inoas
Copy link

inoas commented May 28, 2021

Because certrain scripts run with a header of #!/usr/bin/env php

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment