Laravel 5.7 500 error on PHP 7.2 enviroment
up vote
-2
down vote
favorite
I have made an script using Laravel which runs smoothly on an WAMPP server with PHP 7.2. Recently, I tried to go live, but my server runs into 500 Error. My Server is running PHP 7.2 and matches the requirements listed in laravel documentation.
Now comes the real problem - There's nothing in the logs. As per my knowledge, Laravel logs errors into storage/logs but it's just blank.
What could be the reason behind it?
I am running on an Apache Server with cpanel and whm.
php laravel
|
show 4 more comments
up vote
-2
down vote
favorite
I have made an script using Laravel which runs smoothly on an WAMPP server with PHP 7.2. Recently, I tried to go live, but my server runs into 500 Error. My Server is running PHP 7.2 and matches the requirements listed in laravel documentation.
Now comes the real problem - There's nothing in the logs. As per my knowledge, Laravel logs errors into storage/logs but it's just blank.
What could be the reason behind it?
I am running on an Apache Server with cpanel and whm.
php laravel
Show us the full error please.
– Script47
Nov 9 at 13:17
Hi Pratik and welcome to Stackoverflow! The thing with error 500 is, that you can lookup the problem in the log files. Everything else is just guessing. Developers don't play guessing games when they know the error is written in a log file!
– DanFromGermany
Nov 9 at 13:17
1
You'll have to check your apache logs if nothing is instorage/logs/
– Travis Britz
Nov 9 at 13:19
1
First look should be in the PHP log, not in Laravel or Apache log.
– DanFromGermany
Nov 9 at 13:19
1
@PratikPatil there must be an apache log. By default it would be in/var/log/apache2/error.log
– Travis Britz
Nov 9 at 13:23
|
show 4 more comments
up vote
-2
down vote
favorite
up vote
-2
down vote
favorite
I have made an script using Laravel which runs smoothly on an WAMPP server with PHP 7.2. Recently, I tried to go live, but my server runs into 500 Error. My Server is running PHP 7.2 and matches the requirements listed in laravel documentation.
Now comes the real problem - There's nothing in the logs. As per my knowledge, Laravel logs errors into storage/logs but it's just blank.
What could be the reason behind it?
I am running on an Apache Server with cpanel and whm.
php laravel
I have made an script using Laravel which runs smoothly on an WAMPP server with PHP 7.2. Recently, I tried to go live, but my server runs into 500 Error. My Server is running PHP 7.2 and matches the requirements listed in laravel documentation.
Now comes the real problem - There's nothing in the logs. As per my knowledge, Laravel logs errors into storage/logs but it's just blank.
What could be the reason behind it?
I am running on an Apache Server with cpanel and whm.
php laravel
php laravel
asked Nov 9 at 13:08
Pratik Patil
1
1
Show us the full error please.
– Script47
Nov 9 at 13:17
Hi Pratik and welcome to Stackoverflow! The thing with error 500 is, that you can lookup the problem in the log files. Everything else is just guessing. Developers don't play guessing games when they know the error is written in a log file!
– DanFromGermany
Nov 9 at 13:17
1
You'll have to check your apache logs if nothing is instorage/logs/
– Travis Britz
Nov 9 at 13:19
1
First look should be in the PHP log, not in Laravel or Apache log.
– DanFromGermany
Nov 9 at 13:19
1
@PratikPatil there must be an apache log. By default it would be in/var/log/apache2/error.log
– Travis Britz
Nov 9 at 13:23
|
show 4 more comments
Show us the full error please.
– Script47
Nov 9 at 13:17
Hi Pratik and welcome to Stackoverflow! The thing with error 500 is, that you can lookup the problem in the log files. Everything else is just guessing. Developers don't play guessing games when they know the error is written in a log file!
– DanFromGermany
Nov 9 at 13:17
1
You'll have to check your apache logs if nothing is instorage/logs/
– Travis Britz
Nov 9 at 13:19
1
First look should be in the PHP log, not in Laravel or Apache log.
– DanFromGermany
Nov 9 at 13:19
1
@PratikPatil there must be an apache log. By default it would be in/var/log/apache2/error.log
– Travis Britz
Nov 9 at 13:23
Show us the full error please.
– Script47
Nov 9 at 13:17
Show us the full error please.
– Script47
Nov 9 at 13:17
Hi Pratik and welcome to Stackoverflow! The thing with error 500 is, that you can lookup the problem in the log files. Everything else is just guessing. Developers don't play guessing games when they know the error is written in a log file!
– DanFromGermany
Nov 9 at 13:17
Hi Pratik and welcome to Stackoverflow! The thing with error 500 is, that you can lookup the problem in the log files. Everything else is just guessing. Developers don't play guessing games when they know the error is written in a log file!
– DanFromGermany
Nov 9 at 13:17
1
1
You'll have to check your apache logs if nothing is in
storage/logs/– Travis Britz
Nov 9 at 13:19
You'll have to check your apache logs if nothing is in
storage/logs/– Travis Britz
Nov 9 at 13:19
1
1
First look should be in the PHP log, not in Laravel or Apache log.
– DanFromGermany
Nov 9 at 13:19
First look should be in the PHP log, not in Laravel or Apache log.
– DanFromGermany
Nov 9 at 13:19
1
1
@PratikPatil there must be an apache log. By default it would be in
/var/log/apache2/error.log– Travis Britz
Nov 9 at 13:23
@PratikPatil there must be an apache log. By default it would be in
/var/log/apache2/error.log– Travis Britz
Nov 9 at 13:23
|
show 4 more comments
1 Answer
1
active
oldest
votes
up vote
0
down vote
Make sure your web server has writing privileges to the /storage folder and all its sub-folders. I always have this problem when creating a new application.
Cross checked, 0755 Permission is set :-)
– Pratik Patil
Nov 9 at 13:15
@PratikPatil with what owner/group?
– Travis Britz
Nov 9 at 13:25
add a comment |
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
0
down vote
Make sure your web server has writing privileges to the /storage folder and all its sub-folders. I always have this problem when creating a new application.
Cross checked, 0755 Permission is set :-)
– Pratik Patil
Nov 9 at 13:15
@PratikPatil with what owner/group?
– Travis Britz
Nov 9 at 13:25
add a comment |
up vote
0
down vote
Make sure your web server has writing privileges to the /storage folder and all its sub-folders. I always have this problem when creating a new application.
Cross checked, 0755 Permission is set :-)
– Pratik Patil
Nov 9 at 13:15
@PratikPatil with what owner/group?
– Travis Britz
Nov 9 at 13:25
add a comment |
up vote
0
down vote
up vote
0
down vote
Make sure your web server has writing privileges to the /storage folder and all its sub-folders. I always have this problem when creating a new application.
Make sure your web server has writing privileges to the /storage folder and all its sub-folders. I always have this problem when creating a new application.
answered Nov 9 at 13:12
Jerodev
16.5k84169
16.5k84169
Cross checked, 0755 Permission is set :-)
– Pratik Patil
Nov 9 at 13:15
@PratikPatil with what owner/group?
– Travis Britz
Nov 9 at 13:25
add a comment |
Cross checked, 0755 Permission is set :-)
– Pratik Patil
Nov 9 at 13:15
@PratikPatil with what owner/group?
– Travis Britz
Nov 9 at 13:25
Cross checked, 0755 Permission is set :-)
– Pratik Patil
Nov 9 at 13:15
Cross checked, 0755 Permission is set :-)
– Pratik Patil
Nov 9 at 13:15
@PratikPatil with what owner/group?
– Travis Britz
Nov 9 at 13:25
@PratikPatil with what owner/group?
– Travis Britz
Nov 9 at 13:25
add a comment |
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53226317%2flaravel-5-7-500-error-on-php-7-2-enviroment%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Show us the full error please.
– Script47
Nov 9 at 13:17
Hi Pratik and welcome to Stackoverflow! The thing with error 500 is, that you can lookup the problem in the log files. Everything else is just guessing. Developers don't play guessing games when they know the error is written in a log file!
– DanFromGermany
Nov 9 at 13:17
1
You'll have to check your apache logs if nothing is in
storage/logs/– Travis Britz
Nov 9 at 13:19
1
First look should be in the PHP log, not in Laravel or Apache log.
– DanFromGermany
Nov 9 at 13:19
1
@PratikPatil there must be an apache log. By default it would be in
/var/log/apache2/error.log– Travis Britz
Nov 9 at 13:23