Created
July 12, 2010 13:15
-
-
Save miku/472449 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# sagt mir wo die php-executable sich befindet ... | |
$ which php | |
php is /usr/bin/php | |
# erstelle mir ein entsprechendes Verzeichnis | |
# -p heißt, auch alle "Zwischenverzeichnisse" erstellen, falls diese nicht existeiren | |
$ mkdir -p /usr/local/psa/admin/bin | |
# erstelle eine symbolischen link auf die php-executable | |
$ ln -s /usr/bin/php /usr/local/psa/admin/bin/php | |
# wie sieht es jetzt aus? | |
$ ll /usr/local/psa/admin/bin/ | |
total 8 | |
drwxr-xr-x 2 root root 4096 2010-07-12 15:13 . | |
drwxr-xr-x 3 root root 4096 2010-07-12 15:11 .. | |
lrwxrwxrwx 1 root root 12 2010-07-12 15:13 php -> /usr/bin/php | |
# die php executable ist jetzt "verlinkt", man kann sie wie die "normale" einfach aufrufen: | |
$ /usr/local/psa/admin/bin/php --version | |
PHP 5.2.4-2ubuntu5.7 with Suhosin-Patch 0.9.6.2 (cli) (built: Aug 21 2009 22:17:39) | |
Copyright (c) 1997-2007 The PHP Group | |
Zend Engine v2.2.0, Copyright (c) 1998-2007 Zend Technologies | |
with the ionCube PHP Loader v3.1.33, Copyright (c) 2002-2007, by ionCube Ltd. | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment