Solved

Php wont display errors

Posted on 2011-03-09
10
457 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
Connect further...control easier

With the ATEN CE624, you can now enjoy a high-quality visual experience powered by HDBaseT technology and the convenience of a single Cat6 cable to transmit uncompressed video with zero latency and multi-streaming for dual-view applications where remote access is required.

 
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

Suggested Solutions

Title # Comments Views Activity
Can't connect to FTP 18 110
Let's Encrypt - Auto Renew Failure via Cron Job 1 28
check the file dates in unix 14 29
CentOS Backup Options 3 18
This article discusses four methods for overlaying images in a container on a web page
Introduction This article is intended for those who are new to PHP error handling (https://www.experts-exchange.com/articles/11769/And-by-the-way-I-am-New-to-PHP.html).  It addresses one of the most common problems that plague beginning PHP develop…
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.

733 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