Laravel 5 Directory served instead of route - laravel

I recently installed Laravel on my Ubuntu using composer, in the /var/www/html folder.
When i go to my directory however I am not served the Laravel welcome message, I just get Apache showing me all the files and folders in the directory.
My routes.php indicates that welcome.blade.php should be showed as default, i havent edited this, so im confused why it is not being served.
Please let me know what i might be doing wrong, if navigating to myip/myprojectdirectory

Related

Change document root of Laravel

When I place a Laravel project into Apache's document root, say /var/www/html, it works when I point a browser at it.
However if I put it under a directory under Apache's document root, for example /var/www/html/myProject, it doesn't work when I point a browser at it.
Is there anyway I can change this behavior?
Thank you very much.
Edit:
When I put the Laravel project off a sub-directory off /var/www/html, Laravel complained that it could not write to the file laravel.log. After checking and changing the group ownership of the sub-directory, the index page came up normally.
However, the background image was missing, even after I changed the URI in the CSS stylesheet.
Furthermore, when I clicked on any link from the index page, I got a 404 Not Found Error. This is an Apache 404 and not a Laravel 404, which is styled differently.
OTOH, if I run the PHP server off this sub-directory and point my browser at localhost:8000, the links serve up pages correctly.
Thank you for your help.

Have a 500 error on live hosting using Laravel App

Can you help me to fix this issue?
I uploaded all files to hosting with all requirements needed (PHP 7.4) and now I see 500 error page. All scripts are working in the public_html directory, but Laravel doesn't.
The configuration is here: http://fratelli.md/info.php

object not found laravel 5.2 run on php 7.2 windows 10

Recently, I've been downloading laravel project on github.
after I tried to run the file on my localhost, I found error message on my browser. which look like this.
on the first page, I didnt find any error message. but when I clicked on the menu (register, logo=in, services, any menus) I found this error. enter image description here
you're having problem because the object really doesn't exist in your htdocs directory. You don't have to append xampp after localhost or 127.0.0.1 because xampp will treat it as an object or a folder under htdocs.
if you want to access your services, make sure you have a folder under htdocs and put in your URL localhost/foldername

How to host Laravel project on Raspberry Pi

I have scoured the depths of the internet for this solution and I come up empty handed. I have installed apache server on my pi and when I access the IP address from another computer, it pulls up the correct index.html page. So the server is working fine. My problem is that I can't get my Laravel app to work. When I deploy my laravel apps to other hosting sites, I put everything except the "public" folder into a separate folder in the file tree, and edit the index.php file in the public folder to match the new file structure of pointing to the autoload.php and bootstrap files. None of that is working for me in the apache server on the Pi. Can someone tell me how to do this or where there is legitimate documentation on how to do it. Please don't point me to any google articles that come up in the first 3 pages because i've read and tried them all.
The only thing that happens right now is that when i go to "IPaddress/project_folder" in the URL, it just brings up the file tree in the browser as opposed to pointing to my "/" route within the laravel project.

Error 404 while loading images in drupal

My Server's PHP has updated to version 5.3 recently. After this upgrade the drupal which is installed on my site doesn't load the pictures which are located in the '/sites/default/files/' directory. It throws 404 error for every picture stored in this path.
I am pretty confused with this. Do I have to make any change to my .htaccess file?
Is it possible directory permissions were changed when php was upgraded? That would be the simplest explanation, since I'm not aware of a reason why php 5.3 would itself cause this to happen.
I found that there was another .htaccess file in my 'sites/default/files/' folder. My web hosting company has obligated me to remove FollowSymLink. But I didn't know that there was another .htaccess file in my drupal folder. I removed that and now everything is working smoothly.

Resources