Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8357999
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T10:39:46+00:00 2026-06-09T10:39:46+00:00

Recently something changed on my server, which has been causing an internal error 500

  • 0

Recently something changed on my server, which has been causing an internal error 500 to be thrown everytime there is a syntax or logical error in PHP. These errors are handling in the exception class and I dont want them throwing the 500 error.

Forgot To Mention : when the page doesnt exist => 404 errors work just fine

I current have error_reporting on to strict.
I am thinking it could be my apache config file

 <Directory /var/www/public/>
    <IfModule mod_rewrite.c>
    RewriteEngine on
    RewriteCond %{QUERY_STRING} (.*)(http|https|ftp):\/\/(.*)
    #RewriteRule ^(.+)$ - [env=rfi:true]
    #RewriteEngine On RewriteBase / RewriteCond %{HTTP_HOST} ^domain\.com$ RewriteRule ^(.*)$ http://www.domain.com/$1 [R=301,L]
    </IfModule>
    #CustomLog /path/to/logs/rfi.log combined env=rfi
    Options Indexes FollowSymLinks MultiViews
    AllowOverride None
    Order allow,deny
    allow from all
    ErrorDocument 404 http://www.domain.com/404.php
    #ErrorDocument 403 http://www.domain.com/403.php
    ErrorDocument 500 http://www.domain.com/500.php
 </Directory>
 <Directory "/usr/lib/cgi-bin">
    AllowOverride None
    Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
    Order allow,deny
    Allow from all
 </Directory>
 ErrorLog ${APACHE_LOG_DIR}/error.log

Does anyone see anything that might be causing the 500 error?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T10:39:48+00:00Added an answer on June 9, 2026 at 10:39 am

    A syntax error cannot be caught by PHP. If a file can’t be parsed, you’ll get an unavoidable 500 error. You can setup your php.ini to not display the errors on the client, but it will still log the error.

    To suppress all errors from being sent to the client, in the php.ini file set

    display_errors = Off

    When a 500 error is encountered they’ll just see a white blank screen.

    There is no way to email you when this happens outside than having some script monitor your apache an php error logs. You might be able to set a error.php file to show on 500 error by configuring it in you htaccess file, but i dont know. If you can, you could put some basic php email code into that, but it would be generic–it couldn’t tell the actual error.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Our server recently has been going down a lot and I was tasked to
So i've been playing around a both with box-shadows, i recently did something just
I recently migrated my codes from jboss 4.2.3 to jboss 7. There's something kind
I've recently come across something like: <form method=get action=/somewebdir/script.php> <input type=radio name=param0 value=foo />
As almost everybody knows strings in Java are immutable. Recently I discovered something that
Recently I tried compiling program something like this with GCC: int f(int i){ if(i<0){
Something that I've noticed recently on two different machines is that Apache2 installed via
This is something that's I've wanted to know recently, mostly out of curiousity. I'm
Recently in our work, I've started getting some experience with SEO (finally). It's something
Recently I was asked to develop an app, which basically is going to use

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.