I wanted to put it on a hosting service, I have a flint in an assembly with an angular from here . And ran into a 500 error issue. I used instructions from the official community on installing laravel on centos. In the logs gives an error

PHP Fatal error: Call to a member function getPrefix () on null in / www / *. Ru / app / Exceptions / Handler.php on line 49

apparently, an error in routing with the getPrefix function, although on LAN (Lamp) everything works well.
httpd.conf file

<VirtualHost *: 81>
ServerName * .ru
CustomLog / var / www / httpd-logs / * .ru.access.log combined
DocumentRoot / www / .ru / public
ErrorLog / var / www / httpd-logs / .ru.error.log
ServerAlias ​​www. * .Ru
AddType application / x-httpd-php .php .php3 .php4 .php5 .phtml
AddType application / x-httpd-php-source .phps
DirectoryIndex index.php

<Directory / www / *. En> Options -ExecCGI -Includes
php_admin_flag engine on AllowOverride All </ Directory>

Host Parameters:
PHP 5.6.22
Centos 6.7

.Htaccess file. Commenting on the "Options-MultiViews" line in it also did not work

<IfModule mod_rewrite.c> <IfModule mod_negotiation.c> Options -MultiViews </IfModule> RewriteEngine On # Redirect Trailing Slashes If Not A Folder... RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)/$ /$1 [L,R=301] # Handle Front Controller... RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^ index.php [L] # Handle Authorization Header RewriteCond %{HTTP:Authorization} . RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}] </IfModule> 
  • What about 755? on the file folder? What do logs show? - Evgeniy Mikhalichenko
  • @Evgeniy I put 777 on / storage and / bootstrap / cache. On the server, in the logs, there was an error "Call to a member function getPrefix () on null in / www / * .ru / app / Exceptions / Handler.php on line 49" now looked in the logs of the laravel "local.ERROR: exception ' CSPRNG installed on your system / vendor / paragonie / random_compat / lib / random.php: 185 " - Harmon1ca
  • @Evgeniy put here chmoda 755 -r all the folders did not help. "Uncaught exception" now appears in the logs. * Storage / logs / laravel.log "uncaught exception 'with the message or the stream or file" could be opened / stream / logor / monolog / monolog / src / Monolog / Handler / StreamHandler.php: 107 " - Harmon1ca
  • Maybe the php version is too old? Doca writes: PHP between 5.6.4 & 7.1. * - Confireus
  • @Confireus I ended up putting that build just on the heroku ubuntu server and everything was fixed up. But perhaps you are right, and here it is in the version. Now there is no need to check. - Harmon1ca

0