Laravel - Blank Screen

1

What I need

I want to check if a blank Laravel project is working properly on the development server, ie, I just want to see if it loads the view at least, and then I'm going to run some tests.

What I did

I downloaded and installed Laravel locally, set the app/path to config/app.php and passed the server folder. When I accessed the public folder I received a blank screen with no errors. Below is the code exchange I made in the route file. I changed him to play a Hello World screen and it worked.

OBS : It is working normally on my computer, calling the default Laravel 5 view.

The code tested

Route::get('/', function()
{
    return 'Hello World';
});

The default code

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

Config / App.php

'url' => 'http://endereco_do_servidor/pasta/pasta_meu_projeto/',

Permission in folder

Just to inform: The project is as follows on the http://endereco_do_servidor/pasta/pasta_meu_projeto/', server. I have the ip address of the development server, inside it there are 3 folders with each type of project, inside one of these folders there are other folders, each one being for different projects, and one of those is the project I just created. p>

I was informed that I needed to give the necessary permissions, so I asked to give chmod 775 to all the folders inside it.

find . -type d -exec chmod 775 {} \;
    
asked by anonymous 06.04.2015 / 21:05

1 answer

1

I do not have direct access to the server, but I was informed of the procedure required for operation. When accessing webserver files, Apache uses its own login, that login was not included in the owner's group, so the 775 command did not work, but 777 (allowing full access and control by external users). The apache user has been put in the same folder group as the folder owner and has been directed to the find . -type d -exec chmod 775 {} \; permission for the storage folder, leaving Apache with full permissions, but external users with your limitations.

    
08.04.2015 / 20:12