Solved

Php wont display errors

Posted on 2011-03-09
10
455 Views
Last Modified: 2012-05-11
I have ubuntu server 10.10 running apache2.
phpinfo() states that display_errors is off.

in my php.ini (development) file - i have it set on
'E_ALL | E_STRICT' &
display_errors = 'on'

Yet, I made a page with intentional errors that aren't showing up.
0
Comment
Question by:Imaginx
  • 6
  • 4
10 Comments
 
LVL 4

Expert Comment

by:WhiteSeed
ID: 35084472
try In .htaccess:
display_errors = 1
php_value error_reporting 2147483647
0
 
LVL 1

Author Comment

by:Imaginx
ID: 35084495
there is no /htaccess file in any of the www directories
0
 
LVL 4

Expert Comment

by:WhiteSeed
ID: 35084629
you must create an .htacces file in the directory where you want apply the effect. The effect will be applicated in all sub-directory

here you can found a good documentation of the .htaccess file
http://httpd.apache.org/docs/2.2/howto/htaccess.html
0
 
LVL 1

Author Comment

by:Imaginx
ID: 35084662
WhiteSeed, can you explain this to me ::

"You should avoid using .htaccess files completely if you have access to httpd main server config file."

This is right in the beginning of that link you sent me to....

If I have access to the httpd.conf file - should I look into that first ??
0
 
LVL 4

Expert Comment

by:WhiteSeed
ID: 35084812
htacces are for the users that can't edit the httpd file if you have access to this file i think that with the same code you can do it:
<Directory "<...>/html/beta/usercomponent">
php_value error_reporting 2147483647
 </Directory>
0
Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

 
LVL 1

Author Comment

by:Imaginx
ID: 35084847
Ok, so I'm going to add this block into the httpd.conf ..

<Directory "/var/www">
php_value error_reporting 2147483647
 </Directory>
0
 
LVL 4

Expert Comment

by:WhiteSeed
ID: 35085099
if you have problem add to display_errors = 1
0
 
LVL 1

Author Comment

by:Imaginx
ID: 35141264
Whiteseed, I haven't been back to that office to play with the server - I will post what I find when I'm back there. Sorry to not have been able to test it sooner.
0
 
LVL 1

Accepted Solution

by:
Imaginx earned 0 total points
ID: 35192414
reinstalled the php5 module into linux ... (left setting default on reinstall)
0
 
LVL 1

Author Closing Comment

by:Imaginx
ID: 35225414
reinstall module displayed errors
0

Featured Post

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

Suggested Solutions

Developers of all skill levels should learn to use current best practices when developing websites. However many developers, new and old, fall into the trap of using deprecated features because this is what so many tutorials and books tell them to u…
If you've heard about htaccess and it sounds like it does what you want, but you're not sure how it works... well, you're in the right place. Read on. Some Basics #1. It's a file and its filename is .htaccess (yes, with a dot in the front). #…
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now