Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

ReakyMark's avatar

Need help Problm run laravel on share hosting

that my folder structure

/root
---/subdomain.domain.com
---/laravel
------------/app
------------/etc...

this is error

[Thu Feb 15 06:54:06 2018] [error] [client 114.134.184.33] #4 /home/user/laravel/vendor/laravel/framework/src/ in /home/user/laravel/vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php on line 122
[Thu Feb 15 06:54:06 2018] [error] [client 114.134.184.33] #3 /home/user/laravel/vendor/laravel/framework/src/Illuminate/View/Engines/CompilerEngine.php(51): Illuminate\View\Compilers\BladeCompiler->compile('/home/user/...')
[Thu Feb 15 06:54:06 2018] [error] [client 114.134.184.33] #2 /home/user/laravel/vendor/laravel/framework/src/Illuminate/View/Compilers/BladeCompiler.php(121): Illuminate\Filesystem\Filesystem->put('C:\\wamp64\\www\\l...', '<?php $__env->s...')
[Thu Feb 15 06:54:06 2018] [error] [client 114.134.184.33] #1 /home/user/laravel/vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php(122): file_put_contents('C:\\wamp64\\www\\l...', '<?php $__env->s...', 0)
[Thu Feb 15 06:54:06 2018] [error] [client 114.134.184.33] #0 [internal function]: Illuminate\Foundation\Bootstrap\HandleExceptions->handleError(2, 'file_put_conten...', '/home/user/...', 122, Array)
[Thu Feb 15 06:54:06 2018] [error] [client 114.134.184.33] PHP Fatal error:  Uncaught ErrorException: file_put_contents(C:\wamp64\www\laravel\storage\framework\views/7a5bb53c9e934c38689bbd713ac6636aff817ebf.php): failed to open stream: No such file or directory in /home/user/laravel/vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php:122

how to solve this ?

Sorry i fix the issue by remove config in cache folder bcoz it dump my wamp config so it error like this. First time run it on real hosting :D

0 likes
5 replies
bashy's avatar

Yeah looks like permissions. Just read the error message carefully and you'll figure it out :)

ReakyMark's avatar

@bashy i wonder how can i move Laravel pre-build Auth to other folder coz i try many time still got error coz i don't wanna edit their core file also route.

like moving from default structure Controller/Auth to Controller/Backend/Auth Right also their resource/view/auth to view/Backend/auth now i use my old CI Auth config PASSWORD_BCRYPT from php recommend and not use pre-build from Laravel coz can't custom it.

last Question is Laravel 5.6 required PHP 7.1.3 can i run it on PHP 7.0 without using New password algorithm Argon2i? coz my hosting not update version php yet so local can be but hosting can't. how to convert old password PASSWORD_BCRYPT from DB to new 7.1.3 Argon2i? or force user to do reset password in order to update password algorithm ?

Thank in advance.

bashy's avatar
  1. Make sure you reference the folders in the namespace for the classes. Should work as I've done it with a few apps that needed multiple auth sides.
  2. I'm not sure what part of Laravel requires (if any) php7.1 but I doubt it's just argon hash. You can try lower the php requirement value in composer.json and see what happens.
ReakyMark's avatar

@bashy do u have any link that guide to setup Laravel Auth at multiple side ?

i'm from CI so not good in modern Laravel yet :D

Thank again.

Please or to participate in this conversation.