Answer the question
In order to leave comments, you need to log in
What could be the problem with laravel5 on shared hosting?
probably does not work because of the version of php. I can’t understand, in the admin panel I change the version to 5.6, I look at the version through ssh it shows 5.3 I look through phpinfo() it shows php5.6 But again I run the command through ssh php artisan writes php parse error: syntax error, unexpected T_CLASS, expecting T_STRING or T_VARIABLE or "$" in the path to the artisan and says something on line 31. If there was version 5.5+ this error would not exist. What the hell?
Here is what TP says.
You can set the necessary path for storing the session using the .htaccess file in the public_html directory of your site, adding the following structure to it:
php_value session.save_path /home/c/cc28312/site_name/public_html/tmp
Available versions of php are located on the server in the directory / opt, for example:
$ /opt/php5.5/bin/php -v
PHP 5.5.29 (cli) (built: Sep 9 2015 10:41:50)
Copyright (c) 1997-2015 The PHP Group
Zend Engine v2.5.0, Copyright (c) 1998-2015 Zend Technologies
Answer the question
In order to leave comments, you need to log in
Be explicit about which version you are running.$ /opt/php5.5/bin/php artisan
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question