Have a 500 error on live hosting using Laravel App - laravel

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

Related

Assets not loading in localhost for a laravel app

I have an application which has developed on laravel 5.7 and it's index.php is moved to root directory. Now when i tried to make the server up using php artisan serve command.
The website was loading but assets files like css and js not loading. Entire console showing errors and when i tried to see the asset file code through http://localhost:8000/assets/js/app.min.js
It was showing Error 404
The page you are looking for does't exist.
Can any one help me i am trying to resolve from past two days
Entire app is loading only view is not proper due to non loading of asset files

Drupal 8, just after installing, css files can't loaded, server error 500

I have just installed Drupal 8.5.4, like this:
get the code from the site
extracted it in the s folder on my site ('katelec.com/s').
create database, installed the site.
when trying to access the site, no styles loaded.
when trying to access any css file i get server error 500.
the style are generated correctly and lay in the corresponding folder.
everything went well when I disabled css / js aggregation.
PHP Version 7.0.30
Memory limit: 500M
TRUSTED HOST SETTINGS
Why I get this error?
After reviewing server log.
Drupal's .htaccess files has a command to stop cgi from running.
And it seems that the shared hosting I'm using disabled cgi.
So I edited .htaccess file by removing that cgi command.

Laravel 5 Directory served instead of route

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

Hosting a Laravel 4.2 project with PHP 5.6 on a hosting server 500 Internal Server Error

/vendor/laravel/framework/src/Illuminate/Support/helpers.php on line 411
This error above I've faced on a free hosting service that uses PHP 5.3
I'm trying also on another paid service with PHP 5.3 and I'm getting the 500 Internal Server Error, and I made sure my routes and paths are good to go. (The index.php in the public folder, and the /bootstrap/path.php files are good to go with DIR URIs).
Now I'm sure I will keep getting these kind of errors and my app won't work unless I host it on a service with PHP 5.6, but I was hoping there would be a way that I could downgrade my Laravel version or PHP version for some kind of Backward Compatibility.
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, cgiadmin#yourhostingaccount.com and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.
Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.
My files are in the root directory, and there isn't any folder named public_html and so the files originally in the Laravel/public folder are dispersed in the root directory and my other application files and folders are in a folder in the root directory.
Any suggestions or help would really be much appreciated.
Laravel 4.2 requires PHP 5.4.
Laravel 4.2 requires PHP 5.4 or greater. This upgraded PHP requirement
allows us to use new PHP features such as traits to provide more
expressive interfaces for tools like Laravel Cashier. PHP 5.4 also
brings significant speed and performance improvements over PHP 5.3.
Please see this for more information: http://laravel.com/docs/4.2/releases
Your question is quite unclear, because you first state that you get the 500 Internal Server Error when using PHP 5.6 (in the title and, assumedly, the tag), but then you say that "[the] app won't work unless [you] host it on a service with PHP 5.6".
I have come over this problem with editing the .htaccess file within the /public_html folder of the server.
OR
By using the cPanel's Redirects and make it Redirect the server to the
domain.com/{if it's inside a folder inside the public_html}/index.php
and then ALL Routes and links worked perfectly fine.
If you want to change the URL and use Pretty URLs refer to the Laravel Documentations under Configuration.

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