WebFaction
Community site: login faq

I'm trying to install laravel. I'm following the instructions which currently state:

Via Laravel Installer

First, download the Laravel installer PHAR archive. For convenience, rename the file to laravel and move it to /usr/local/bin. Once installed, the simple laravel new command will create a fresh Laravel installation in the directory you specify. For instance, laravel new blog would create a directory named blog containing a fresh Laravel installation with all dependencies installed. This method of installation is much faster than installing via Composer.

So I:

  1. cd ~/bin
  2. wget http://laravel.com/laravel.phar
  3. mv laravel.phar laravel
  4. chmod u+x laravel

However when I go to webapps/myapplication directory and issue laravel new test nothing happens. The bash command prompt just comes back and there are no changes to the directory.

At the moment I have the following in my .bashrc

alias php='php55'

Why doesn't this work? And how can I get it to work?

UPDATE

Found my answer but would still like to understand the WHY

asked 23 Jul '14, 22:37

user
471319
accept rate: 0%

edited 23 Jul '14, 23:18


Found the answer here: https://community.webfaction.com/questions/14256/symfony2-composerphar-not-pointing-to-correct-php-cli

The solution was to make a symbolic link to php55 in ~/bin instead of using a bash alias:

ln -s `which php55` ~/bin/php

And then edit .bashrc to have (if you don't already have this):

export PATH=$HOME/bin:$PATH
permanent link

answered 23 Jul '14, 23:07

user
471319
accept rate: 0%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×262
×44

question asked: 23 Jul '14, 22:37

question was seen: 5,520 times

last updated: 23 Jul '14, 23:18

WEBFACTION
REACH US
SUPPORT
AFFILIATE PROGRAM
LEGAL
© COPYRIGHT 2003-2020 SWARMA LIMITED - WEBFACTION IS A SERVICE OF SWARMA LIMITED
REGISTERED IN ENGLAND AND WALES 5729350 - VAT REGISTRATION NUMBER 877397162
5TH FLOOR, THE OLD VINYL FACTORY, HAYES, UB3 1HA, UNITED KINGDOM