?
Solved

Php wont display errors

Posted on 2011-03-09
10
Medium Priority
?
460 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Optimize your web performance

What's in the eBook?
- Full list of reasons for poor performance
- Ultimate measures to speed things up
- Primary web monitoring types
- KPIs you should be monitoring in order to increase your ROI

 
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
 
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

Percona Live Europe 2017 | Sep 25 - 27, 2017

The Percona Live Open Source Database Conference Europe 2017 is the premier event for the diverse and active European open source database community, as well as businesses that develop and use open source database software.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In the first part of this tutorial we will cover the prerequisites for installing SQL Server vNext on Linux.
There are times when I have encountered the need to decompress a response from a PHP request. This is how it's done, but you must have control of the request and you can set the Accept-Encoding header.
The viewer will learn how to dynamically set the form action using jQuery.
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.
Suggested Courses

770 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