profile file to get composer to work globally instead of php /usr/bin/composer.phar command. Now you can fire the command to install the composer: curl -sS | php -install-dir=/usr/binĪfter the download & installation is done, You can add this alias to your. The first is to place it within the default DocumentRoot.The second is to place it outside of the default DocumentRoot and use the Alias directive to map a URL to this location. If everything was successful, It should output the new path to XAMPP PHP install. To have Apache serve your own web site content there are two main options. In Terminal, type in which php again and look for the updated string. Type i and then paste the following at the top of the file: export PATH=/Applications/XAMPP/bin:$PATH Now, we just need to swap this over to the PHP that is installed with XAMPP, which is located at /Applications/XAMPP/bin This will output the path to the default PHP install which comes preinstalled by Mac OS X, by default /usr/bin/php Change default Mac OS X PHP to XAMPP's PHP Installation and Install Composerįind out what version of PHP is running which php
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |