Ja już nie mam pomysłu na to po przeglądnięciu całego internetu:
[Thu Mar 02 00:06:59 2017] [error] [client 185.84.136.135] PHP Warning: Unknown: open_basedir restriction in effect. File(/home/admin/web/domena.pl/app/public/index.php) is not within the allowed path(s): (/home/admin/web/domena.pl/public_html:/home/admin/tmp) in Unknown on line 0
[Thu Mar 02 00:06:59 2017] [error] [client 185.84.136.135] PHP Warning: Unknown: failed to open stream: Operation not permitted in Unknown on line 0
[Thu Mar 02 00:06:59 2017] [error] [client 185.84.136.135] PHP Fatal error: Unknown: Failed opening required '/home/admin/web/domena.pl/public_html/app_app/index.php' (include_path='.:/usr/share/php:/usr/share/pear') in Unknown on line 0
Wrzuciłem na hosting obok public_html całą aplikację w laravel. Folder app. W public_html stworzyłem ścieżkę do folderu app pod nazwą app_app.
Również dodałem plik .htaccess o zawartości:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{REQUEST_URI} !^/visitsoft_app/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ visitsoft_app/$1
RewriteRule ^(/)?$ visitsoft_app/index.php [L]
</IfModule>
No i teraz zamiast wszystko działać tak jak powinno mam taki błąd chociaż według tego:
https://laravel.io/forum/03-06-2015-how-to-setup-laravel-5-in-shared-hosting/?page=1
wszystko jest na 100% ok.
Nie wiem o co chodzi z tym: "Unknown: open_basedir restriction in effect", ponieważ zmieniłem to według znalezionych propozycji w internecie na różne sposoby i niestety cały czas ten sam błąd.