I have uploaded all files in dreamhost server and also point our domain to public directory. But when I open website it is showing site not found. Below is website link.
https://laraveleqn.samiflabs.com/
I have direct uploaded all files from local xampp, in that it is working fine..so should I execute all command like key:generate, composer install again ?
Any help will be appreciated..
Thanks
Hi Samif, There is not any specific reason to solve the kind of error
but some conclusion for solve the error.
First you can check .env file in your server.
composer install and clear cache via
php artisan config:cache
php artisan config:clear
php artisan cache:clear
And finally not solved then try to Dump and Die on index.php in public folder
Related
I have a problem. I am download project from hosting. now when I run the project this error shows.
pic attached.
I think this is cache problem, I clear cache, view, but still same issue.
let's say you have installed composer,
now run this command and see:
composer dump-autoload
Just delete the vendor directory and composer.cache file from project root and hit the following commands.
composer install
php artisan optimize:clear
php artisan serve
Through these, you can also check if there is any composer-related issue.
i deployed my laravel app to a shared hosting and i got this error
file_put_contents(C:\xampp\htdocs\laravel Projects\bank\iscbank\storage\framework/sessions/qM5STFvAXNcmpuJkllutrtS1PumOi0OXhG7TdNwL): failed to open stream: No such file or directory
i followed all the instructions on how to install laravel app in cpanel.
I dont know if its because i ran these commmands before zipping the project
php artisan cache:clear
php artisan config:clear
i dont know whats wrong or what i did wrong
Do these
Remove files from bootstrap/cache folder
Remove all the files/folder inside from these
storage/framework/cache,
storage/framework/sessions,
storage/framework/views
and try
i had recently installed laravel in windows through composer made a new project named project in my xamp's htdocs folder then run "php artisan serve" comand in cmd but it is giving me error "failed to open stream" here is screenshot here I ran "php artisan serve" comand error is shown in above image I also tried to search my problem on stack overflow but couldn't find any solution that can suit my problem
Most files are missing because you have not successfully installed Laravel.
Go to C:\xampp\htdocs\project> and type composer update --no-scripts or composer install
Since you are using xampp, once all the necessary files and packages are downloaded to your project you should be able to access your site through localhost without running php artisan serve by visiting
http://localhost/project/public
NB:Just ensure xampp is running
please go through the documentation first
https://laravel.com/docs/5.4#installation
you did not installed laravel projects correctly. you did not have vendor files. First you have to run :
composer install
dont need php artisan serve in xampp ... just go to
localhost/your_project/public
hope it helps !!!
I am developing a Laravel app, it was all good until I uploaded to the server, then I got this error
file_put_contents(/home/vagrant/sites/controltienda/storage/framework/sessions/Gm7GMQ0Lb5c2PSMWatoZZrVf6XvTXxOnF0PJB9RH): failed to open stream: No such file or directory
I don't know why it is requesting some file from my local drive which obviously it is not present, I already tried the following:
php artisan route:clear
php artisan route:cache
composer dump-autoload
php artisan cache:clear
Without much success. How can I fix this?
so i keep goin on search and i found this older question Laravel wrong view path. I ran php artisan config:cache and that's all folks.
Thanks for replay.
I was able to run my Laravel 5.3 application very well on my local machine. But when I upload it to the shared hosting, I have the following error.
InvalidArgumentException in FileViewFinder.php line 137:View [welcome] not found.
I also observed that while on the online server, the application is looking for the files in the path they are on my local machine
I only have a shared hosting and so cannot run PHP Artisan commands. I have tried to
php artisan cache:clear
and
php artisan config:cache
and yet the problem persists.
I have even manually deleted all the files in storage/framework/views but the problem persists.
My local machine is a MAC OS with XAMPP with PHP 7 and my shared hosting is a CentOS Linus server with PHP 5.6.
It sounds like you need to clear the auto loader cache by running the following command on the server
composer dump-auto -o
Once the command has completed it will update the vendor autoload paths and the application should work correctly.
Try adding this in your web route file
Route::get('/updateapp', function()
{
exec('composer dump-autoload');
echo 'composer dump-autoload complete';
});