Answer the question
In order to leave comments, you need to log in
How to fix this problem (uploaded the project to the hosting)?
On the server version PHP version: 7.0, I use Laravel 5.3
I uploaded the project to the hosting and in the logs I see:
[Sat Sep 17 10:59:52 2016] [error] [client 94.158.50.47] File does not exist: /var/www/vhosts/mysite/httpdocs/img, referer: http://mysite/
[Fri Sep 23 16:01:09 2016] [crit] [client 94.158.59.192] (13)Permission denied: /var/www/vhosts/mysite/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable
[Fri Sep 23 16:01:32 2016] [error] [client 94.158.59.192] File does not exist: /var/www/vhosts/mysite/httpdocs/img, referer: http://mysite/
[Fri Sep 23 16:41:02 2016] [error] [client 94.158.58.231] File does not exist: /var/www/vhosts/mysite/httpdocs/img, referer: http://mysite/
[Fri Sep 23 17:15:29 2016] [error] [client 94.158.51.70] File does not exist: /var/www/vhosts/mysite/httpdocs/img, referer: http://mysite/
[Fri Sep 23 17:41:57 2016] [error] [client 94.158.58.231] Directory index forbidden by Options directive: /var/www/vhosts/mysite/httpdocs/test/
[Fri Sep 23 18:40:18 2016] [error] [client 94.158.51.208] PHP Parse error: syntax error, unexpected 'class' (T_CLASS), expecting identifier (T_STRING) or variable (T_VARIABLE) or '{' or '$' in /var/www/vhosts/mysite/httpdocs/mysite.mysite/public/index.php on line 49
Answer the question
In order to leave comments, you need to log in
Now I would not blame the version, but learn to read the errors ...
PHP Parse error: syntax error, unexpected 'class' (T_CLASS), expecting identifier (T_STRING) or variable (T_VARIABLE) or '{' or '$' in /var/www/vhosts/mysite/httpdocs/mysite.mysite/public /index.php on line 49
php-5.4.45 -l index.php
PHP Parse error: syntax error, unexpected 'class' (T_CLASS), expecting identifier (T_STRING) or variable (T_VARIABLE) or '{' or '$' in index.php on line 50
There was this recently on timeweb. The panel is php 7.0, checked in the console, there is php 5.3. I already wanted to write to the support, they say somehow, and stumbled there on their explanation of this, it turns out that in the console you must explicitly specify the php version when running the script
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question