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

Setting display_errors in the hosting template?

Questions regarding the Web Server
Apache + Nginx, Nginx + PHP5-FPM
Post Reply
  • Print view
Advanced search
3 posts • Page 1 of 1
skurudo
VestaCP Team
Posts: 8099
Joined: Fri Dec 26, 2014 2:23 pm
Contact:
Contact skurudo
Website Facebook Google+ Skype
Twitter

Re: Setting display_errors in the hosting template?
  • Quote

Post by skurudo » Mon May 11, 2015 8:23 pm

/etc/php5/apache2/php.ini
/etc/php5/cli/php.ini

search display_errors and set on

/etc/init.d/apache2 restart
or httpd, if you use centos/rhel

Other way - code:

Code: Select all

<?php

    error_reporting(E_ALL); ini_set('display_errors', '1');
    echo "Hello world";
    owieufpowiejf

?>
Top

skurudo
VestaCP Team
Posts: 8099
Joined: Fri Dec 26, 2014 2:23 pm
Contact:
Contact skurudo
Website Facebook Google+ Skype
Twitter

Re: Setting display_errors in the hosting template?
  • Quote

Post by skurudo » Wed May 13, 2015 5:36 am

GreenUnicorn wrote:seems to work as phpinfo() reports
but oddly that particular site still doesn't show the errors
the reason might be elsewhere though
Yep, may be you show us phpinfo output?
Top

skurudo
VestaCP Team
Posts: 8099
Joined: Fri Dec 26, 2014 2:23 pm
Contact:
Contact skurudo
Website Facebook Google+ Skype
Twitter

Re: Setting display_errors in the hosting template?
  • Quote

Post by skurudo » Mon Jun 01, 2015 2:16 pm

You can also enable it in your PHP script usually:

Code: Select all

ini_set("display_errors", 1);
ini_set("track_errors", 1);
ini_set("html_errors", 1);
error_reporting(E_ALL);
If that doesn't help, then try a quick workaround first:

Code: Select all

set_error_handler("var_dump");
(Could be used to replicate the original behaviour, if it's suppressed by some other circumstance.)
Top


Post Reply
  • Print view

3 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