dimanche 13 octobre 2019

Laravel Project on CpanelShow White Screen

This is the website at the Server FileZilla URL

https://rootssg.schoolmgmtsys.com/upload/login

This is my Project Structure

enter image description here

and the remaining one is this

enter image description here This project doesnot contain .env files and composer.json but this project is running fine on FileZilla

But when i uploaded it to Cpanel it is not showing me anything

This is my .htaccess file

     I have tries this too


AddHandler application/x-httpd-php56 .php .php5 .php4 .php3 

 AddType  application/x-httpd-php-source  .phps
LoadModule php5_module        modules/mod_php55.so

LoadModule php5_module       

DirectoryIndex index.php
AddType  application/x-httpd-php         .php
AddType application/x-httpd-php5 php

[PHP]
short_open_tag = Off


<IfModule mod_negotiation.c>
                  Options -MultiViews
                  </IfModule>

                  RewriteEngine On

                # Redirect Trailing Slashes…
                  RewriteRule ^(.*)/$ /$1 [L,R=301]

                # Handle Front Controller…
                  RewriteCond %{REQUEST_FILENAME} !-d
                  RewriteCond %{REQUEST_FILENAME} !-f
                  RewriteRule ^ index.php [L]
<IfModule mod_rewrite.c>
                  <IfModule mod_negotiation.c>
                  Options -MultiViews
                  </IfModule>

                  RewriteEngine On

                # Redirect Trailing Slashes…
                  RewriteRule ^(.*)/$ /$1 [L,R=301]

                # Handle Front Controller…
                  RewriteCond %{REQUEST_FILENAME} !-d
                  RewriteCond %{REQUEST_FILENAME} !-f
                  RewriteRule ^ index.php [L]
                  </IfModule>

I have tried this too

  <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteRule ^ index.php [L]
</IfModule>


and this too

Options +FollowSymLinks
RewriteEngine On

RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ index.php [L]

This is my index.php code which is inside the Project directory not in the Public directory

<?php


// echo 'asad';
// error_reporting(E_ALL);
// ini_set('error_reporting', E_ALL);
// ini_set("display_errors", 1);

require __DIR__.'/bootstrap/autoload.php';

$app = require_once __DIR__.'/bootstrap/app.php';
$kernel = $app->make(Illuminate\Contracts\Http\Kernel::class);

$response = $kernel->handle(
    $request = Illuminate\Http\Request::capture()
);

$response->send();

$kernel->terminate($request, $response);

I want to go to this route defined

Route::group( array('middleware'=>'web') ,function(){

    Route::get('/','frontendPagesController@index');

});


from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/33sCHnK
via IFTTT

Aucun commentaire:

Enregistrer un commentaire