I'm trying to upload a database on the server with SSH by using sql-sync, but I'm getting the following error:
PHP Parse error: syntax error, unexpected '{' in /home/luken/programs/drush/includes/environment.inc on line 517 X-Powered-By: PHP/4.4.7 Content-type: text/html [...]
As you see from the error message, it is using PHP 4.4.7, while I want to use PHP 5.4.
I tried adding the following line to .bash_profile.
export DRUSH_PHP=php54 (that is php version I wanted to use, and it works when I normally log in)
I also tried with PATH=/home/luken/programs/drush:${PATH}
.
What else can I do?
phpinfo()
gives this path to PHP: /usr/local/php54/.
Breaking news:
Ok, now I'm totally confused, it appeared that the whole database WAS copied, regardless of error that sql-sync has been producing (suggesting that nothing has been accomplished). I hope that anyone who will get this error will check now if it really didn't do anything, and now the winner will be the one who can explain that O_o.
which php
andphp -v
– CamelBlues Feb 22 '13 at 19:40