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>