T
T
The Dragger2016-09-23 17:06:07
Laravel
The Dragger, 2016-09-23 17:06:07

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

Google says to use php version = 5.5, through phpinfo() it gives version 7.0 ? I have already used up all my strength, how to fix it further?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
H
he he, 2016-09-23
@tosha_lol_daaa

Now I would not blame the version, but learn to read the errors ...

M
Melkij, 2016-09-23
@melkij

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

5.3 this seems to be the current master https://github.com/laravel/laravel/blob/master/pub...
49 line is empty. What do you have there?
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

The error is similar. So you are not on 7.0.

I
Igor Karachentsev, 2016-09-27
@kucheriavij

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 question

Ask a Question

731 491 924 answers to any question