I have tried hosting my Laravel app in Godaddy. The homepage works well as well as the log ins and dashboard after logging in. But the other views return a InvalidArgumentException in FileViewFinder.php line 137: "View [path.to.viewfile] not found.
I'm returning the view from the controller with return view::make('path.to.viewfile')
It works well on my localhost using XAMPP. Does anybody know how to fix this?
Have you checked filenames and permission? file names are case sensitive in Linux (your hosting provider uses it)
You have to change directory permissions at your server. Directories and files within the storage and the bootstrap/cache directories should be writable (e.g. chmod 777)
Related
I am trying to deploy a Laravel app onto godaddy shared hosting. And have tried several solutions mentioned on this site and others, such as:
-Hosted Laravel 5.4 App shows "View [path.to.viewfile] not found."
-View [auth.login] not found at Shared Hosting Godaddy
However, my views still cannot be found, for some unknown reason that I cannot tell. I have tried the solutions mentioned here, but to no avail.
I checked the spelling of the views since Linux server is case sensitive.
the specific error can be viewed at : auctionSalvages.com
but in short::: View [simpleComponents.HeaderComponents.MainHeader] not found. (View: /home/hostname/AutoShop/resources/views/layouts/main.blade.php)
I have now successfully executed the following php artisan commands: clear-compiled,cache:clear,config:clear,route:clear and view:clear on the server through ssh.
but my view still returns above error..
any more ideas???
This may be a few years too late but here a few things you need to consider if this happened.
Make sure that all the files in the Public folder of your app is copied into the public_html folder of your godaddy hosting site. Make sure that the Settings in your cPanel File Manager (which is generally at the upper right corner) that Show Hidden Files (dotfiles) is checked.
Make sure the you have the .htaccess file in your public_html folder with the correct permissions.
Typically, when you transfer files into your hosting site, you do so by uploading a zip file and then extracting the zip file in the root directory of your site.
And then, when you copy the files from the Public folder of your app, you generally just Select All > Copy > Select public_html
However, sometimes, the files in your Public folder are hidden so you have to set the settings to Show Hidden File (dotfiles) to checked.
Am trying to run symfony on the Cpanel in the public_html. But when I access app_dev.php page it shows me 500 Internal Server error. I tried all method which are available on internet. I did same thing on the localhost but it is working on the localhost on the port 8000. But not working on the Cpanel. finding some solution
first of all, you can't browse app_dev.php except localhost, for this you have to add your public IP in app_dev.php
check app_dev.php line 13
clear cache and check permission for cache logs and session.if it's not solved your problem then
just check Symfony log file, this will tell everything you need....
and one more thing after placing your file in public_html your URL should be youdomain.com/web
if you want to remove web from your url try this....
shared hosting .htaccess for symfony
This is the permission problem. whenever you face this error please change the /username/public_html/web folder permission to 755 and app_dev.php -> 644 ,config.php -> 644 and app.php -> 644.
I have installed the laravel 5 on my local machine.And made the changes in the database.php file in config folder.I have set my credential.Now I am accessing the folder http://localhost/laravel/public/ but it displays html page with this content. Whoops, looks like something went wrong.What configuration should I set apart from this database.php so that it works fine.
This will likely happen to you everytime you create a new Laravel project. The problem is that your webservice (apache/nginx) doesn't have read/write permissions for the storage folder. From the root of your installation perform a chmod 777 -R ./storage and that should get you to the welcome to Laravel screen you should expect for an installation, and from that point on you should now get the error reporting if you have debug mode set as true. If you are still having trouble, you may need to provide access to the ./public folder as well.
You can run laravel application when you have successfully installed in your machine, Add '/public' in url after root folder. Means you have installed app on www.firstlaravel.com and your root folder is 'first'.
So you can run app using like => www.firstlaravel.com/public
I develop Laravel 5 app on localhost. When I upload app on shared hosting it give me blank white page. I am using PHP Version 5.5.20. mod_rewrite is active on shared hosting. Is there any way to work L5 on shared hosting. storage have the 777 permission and other folder have 755 and 644. Debug mode is set to true. Laravel is not generating any error log file. Apache log is also not showing any error. What may be the problem.
I do not know the reason but delete all file from server, run
composer dump-autoload
on localhost and upload all files on server again then it work fine.
I am doing PHP development using Linux OS ,Lampp Apache server.I changed the default root folder htdocs to another folder PHP on my desktop. When I create a hello.php file in the folder ,I can see it in browser and works well.
But I have another folder inside this root folder called 'front_end'.When I try to see it in browser using http://localhost/front_end ,i get access forbidden.
Firebug shows 'Access forbidden'
How can I get access to this folder using localhost?
Another user asked a similar question on stackoverflow ,but it didn't help.
Ubuntu/Apache2/ Forbidden/Permission error
Assuming you have followed the advice regarding the file permissions.
Have you got an index.php file in the front_end directory?
If not that may be why you get 'Access forbidden'. See Apache 403 Forbidden Error and Solution Try accessing the spesific php file in the directory e.g. /front_end/test.php
Permissions on the folder
Check the permissions of the folder.
Use sudo to create the folders.