On a new installation of Ubuntu (14.04 LTS), I run the following commands:
Update Application Center :sudo apt-get update && sudo apt-get upgrade
Install lamp server :sudo apt-get install lamp-server^
Set Curl :sudo apt-get install curl
Install php5-curl :sudo apt-get install php5-curl
From now on, I follow the instructions from the current Symfony installation instructions from the beginning here :
sudo curl -LsS http://symfony.com/installer -o /usr/local/bin/symfony
sudo chmod a+x /usr/local/bin/symfony
When I try to create my new projectX project using symfony new projectX, I get the following error:
/usr/local/bin/symfony: line 1: syntax error near unexpected token `newline'
/usr/local/bin/symfony: line 1: `<!DOCTYPE html>'
Out of desperation, I also tried to run it sudo, but then we get:
/usr/local/bin/symfony: 2: /usr/local/bin/symfony: Syntax error: newline unexpected
What am I doing wrong? Thanks in advance for your help!
Bendy