Vesta Control Panel - Forum

Community Forum

Skip to content

Advanced search
  • Quick links
    • Main site
    • Github repo
    • Google Search
  • FAQ
  • Login
  • Register
  • Board index Main Section Web Server
  • Search

500 Internal Server Error Something went wrong. Please try your request again

Questions regarding the Web Server
Apache + Nginx, Nginx + PHP5-FPM
Post Reply
  • Print view
Advanced search
2 posts • Page 1 of 1
tryagain
Posts: 5
Joined: Wed Jul 20, 2016 2:59 pm

500 Internal Server Error Something went wrong. Please try your request again
  • Quote

Post by tryagain » Fri Mar 16, 2018 1:30 am

Hello,

When I do a simple redirect using php header() function, I got en strange error!

PHP code example that caused the error on my server:

<?php
$url = "Any URL that is longer than 6k!";
header("Location: $url");
?>

Please run the PHP code above on your server to see if you will meet the same error. I guess because of PHP setting, NginX setting, Apache setting etc, but I can't solve it.
===============================================================
The error message on response page is:

500
Internal Server Error
Something went wrong. Please try your request again
Top

rhyker2u
Posts: 86
Joined: Thu Jan 19, 2017 11:46 am
Contact:
Contact rhyker2u
Website

Os: Ubuntu 17x
Web: nginx + php-fpm
Re: 500 Internal Server Error Something went wrong. Please try your request again
  • Quote

Post by rhyker2u » Sat Mar 17, 2018 2:26 am

500 internal server error are the worst to troubleshoot, unless you got server access ;-) and you probably do.

Thus check your:
/var/logs/nginx/domains
/var/logs/apache2/domains

otherwise you can spend weeks in a php and not get any further, while I simple glance at the error logs (can be done from your VestaCP backend too) usually exposes and allows to fix the problem within minutes. Or copy/paste the error here so we can further assist you.
Top


Post Reply
  • Print view

2 posts • Page 1 of 1

Return to “Web Server”



  • Board index
  • All times are UTC
  • Delete all board cookies
  • The team
Powered by phpBB® Forum Software © phpBB Limited
*Original Author: Brad Veryard
*Updated to 3.2 by MannixMD
 

 

Login  •  Register

I forgot my password