[Last Call] Learn about multicloud storage options and how to improve your company's cloud strategy. Register Now

x
?
Solved

Php wont display errors

Posted on 2011-03-09
10
Medium Priority
?
461 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
NEW Veeam Agent for Microsoft Windows

Backup and recover physical and cloud-based servers and workstations, as well as endpoint devices that belong to remote users. Avoid downtime and data loss quickly and easily for Windows-based physical or public cloud-based workloads!

 
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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

This article discusses how to implement server side field validation and display customized error messages to the client.
In part one, we reviewed the prerequisites required for installing SQL Server vNext. In this part we will explore how to install Microsoft's SQL Server on Ubuntu 16.04.
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
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

656 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