Reputation:
I am new in Laravel, I made an small website with Laravel on My Windows 8.1 , And Now I zipped that website folder (xampp/htdocs/mysite ) and named mysite.zip
I uploaded that website to my Linux server and putted on a subdomain: test.example.com/mysite/public/
and I have a route to return a test string. But laravel throwout an error:
Parse error: syntax error, unexpected '[' in /home/qmelkir/public_html/test/zanbil/vendor/laravel/framework/src/Illuminate/Support/helpers.php on line 426
Questions:
1-What is the problem?
2-How can I have access to composer on my Linux server (I have access by cPanel)?
3-I had installed Laravel Intervention Image class by composer on my windows, Does this or other classes that I installed by composer works when I move website?
Upvotes: 0
Views: 648
Reputation: 1219
I was able to set the version of my php in the .htaccess file with this line:
AddHandler application/x-httpd-php54 .php
Upvotes: 1