-1

I try to install my website on a server. I connected via ssh to the server to run 'php artisan migrate', but it didnt work and only show me the following error:

(uiserver):u108900605:~/portfolio$ php artisan migrate Content-type: text/html


Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /homepages/10/d916348811/htdocs/portfolio/artisan on line 33

Parse error: syntax error, unexpected T_STRING in /homepages/10/d916348811/htdocs/portfolio/artisan on line 33

How can i solve this?

NewInSpace
  • 23
  • 4
  • can you do `php artisan key:generate --show`? – kapitan Jul 13 '22 at 08:04
  • Searching for your error turns up many answers, all with the same answer: your PHP version does not support namespaces: https://stackoverflow.com/q/14975613/6089612, https://stackoverflow.com/q/17287934/6089612, https://stackoverflow.com/q/14975613/6089612, ... – Don't Panic Jul 13 '22 at 10:48
  • 1
    Does this answer your question? [Laravel: running artisan gives me "Unexpected character in input" error](https://stackoverflow.com/questions/14975613/laravel-running-artisan-gives-me-unexpected-character-in-input-error) – Don't Panic Jul 13 '22 at 10:49

1 Answers1

1

i think this is php version problem or server configuration problem. check your environment is correct.

Shahanaz B
  • 26
  • 3
  • Your answer could be improved with additional supporting information. Please [edit] to add further details, such as citations or documentation, so that others can confirm that your answer is correct. You can find more information on how to write good answers [in the help center](/help/how-to-answer). – Community Jul 13 '22 at 22:55