PHP Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsProgramming LanguagesPHP Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old February 9th, 2013, 10:54 PM
zakir_szh zakir_szh is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2013
Posts: 12 zakir_szh User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 44 m 39 sec
Reputation Power: 0
Question PHP5 - PHP error reporting is not working...

Greetings every one..

how are you? hope fine ..

however. i m not sure if this is right forum or area to post this topic..

but as i am facing problem..

at least you could help me to guide me where to get help...

i have installed ubuntu 12 on virtual box and setup LAMP server..

it's working good..

but i am facing a problem.. it's does not showing any php error

i have changed php.ini to show error but still not showing any error

so, can any one guide me what is the problem?

and also how to install cPanel on my ubuntu?

thanks in advance to all who will participate in my topic..

best regards

Reply With Quote
  #2  
Old February 10th, 2013, 07:53 AM
gw1500se gw1500se is offline
Contributing User
Dev Shed Frequenter (2500 - 2999 posts)
 
Join Date: Jul 2003
Posts: 2,867 gw1500se User rank is Colonel (50000 - 60000 Reputation Level)gw1500se User rank is Colonel (50000 - 60000 Reputation Level)gw1500se User rank is Colonel (50000 - 60000 Reputation Level)gw1500se User rank is Colonel (50000 - 60000 Reputation Level)gw1500se User rank is Colonel (50000 - 60000 Reputation Level)gw1500se User rank is Colonel (50000 - 60000 Reputation Level)gw1500se User rank is Colonel (50000 - 60000 Reputation Level)gw1500se User rank is Colonel (50000 - 60000 Reputation Level)gw1500se User rank is Colonel (50000 - 60000 Reputation Level)gw1500se User rank is Colonel (50000 - 60000 Reputation Level)gw1500se User rank is Colonel (50000 - 60000 Reputation Level)gw1500se User rank is Colonel (50000 - 60000 Reputation Level) 
Time spent in forums: 1 Year 1 Week 5 Days 9 h 6 m 6 sec
Reputation Power: 581
You are probably better off asking this in an Ubuntu forum. However, in general, PHP on Linux systems will put errors in the HTTPD logs (/var/logs/httpd).
__________________
There are 10 kinds of people in the world. Those that understand binary and those that don't.

Reply With Quote
  #3  
Old February 10th, 2013, 08:10 AM
zakir_szh zakir_szh is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2013
Posts: 12 zakir_szh User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 44 m 39 sec
Reputation Power: 0
Quote:
Originally Posted by gw1500se
You are probably better off asking this in an Ubuntu forum. However, in general, PHP on Linux systems will put errors in the HTTPD logs (/var/logs/httpd).


thanks a lot for your reply sir..

but i also want to php to show the error on browser window..

because it's very time consuming to check that folder every time.. to find out the error..

hope i clear..

and yes i have asked this question on Ubuntu forums too, but i thought there forum is only about for Ubuntu relates question and as it goes for php issue, that's why i asked here..

thanks again for your reply
best regards

Reply With Quote
  #4  
Old February 10th, 2013, 08:15 AM
gw1500se gw1500se is offline
Contributing User
Dev Shed Frequenter (2500 - 2999 posts)
 
Join Date: Jul 2003
Posts: 2,867 gw1500se User rank is Colonel (50000 - 60000 Reputation Level)gw1500se User rank is Colonel (50000 - 60000 Reputation Level)gw1500se User rank is Colonel (50000 - 60000 Reputation Level)gw1500se User rank is Colonel (50000 - 60000 Reputation Level)gw1500se User rank is Colonel (50000 - 60000 Reputation Level)gw1500se User rank is Colonel (50000 - 60000 Reputation Level)gw1500se User rank is Colonel (50000 - 60000 Reputation Level)gw1500se User rank is Colonel (50000 - 60000 Reputation Level)gw1500se User rank is Colonel (50000 - 60000 Reputation Level)gw1500se User rank is Colonel (50000 - 60000 Reputation Level)gw1500se User rank is Colonel (50000 - 60000 Reputation Level)gw1500se User rank is Colonel (50000 - 60000 Reputation Level) 
Time spent in forums: 1 Year 1 Week 5 Days 9 h 6 m 6 sec
Reputation Power: 581
Not all errors can be shown on the browser window. Fatal errors (such as compiler errors) obviously cannot because PHP ends immediately.

Reply With Quote
  #5  
Old February 10th, 2013, 08:18 AM
zakir_szh zakir_szh is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2013
Posts: 12 zakir_szh User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 44 m 39 sec
Reputation Power: 0
Quote:
Originally Posted by gw1500se
Not all errors can be shown on the browser window. Fatal errors (such as compiler errors) obviously cannot because PHP ends immediately.


thanks again for your reply..

yes i know that.

but it does not show any error at all when same php scrpt shows error on browser window when run from my windows server (WAMP)

hope i m clear..

best regards

Reply With Quote
  #6  
Old February 10th, 2013, 08:18 AM
Jacques1's Avatar
Jacques1 Jacques1 is online now
pollyanna
Click here for more information.
 
Join Date: Jul 2012
Location: Germany
Posts: 1,833 Jacques1 User rank is Lieutenant General (80000 - 90000 Reputation Level)Jacques1 User rank is Lieutenant General (80000 - 90000 Reputation Level)Jacques1 User rank is Lieutenant General (80000 - 90000 Reputation Level)Jacques1 User rank is Lieutenant General (80000 - 90000 Reputation Level)Jacques1 User rank is Lieutenant General (80000 - 90000 Reputation Level)Jacques1 User rank is Lieutenant General (80000 - 90000 Reputation Level)Jacques1 User rank is Lieutenant General (80000 - 90000 Reputation Level)Jacques1 User rank is Lieutenant General (80000 - 90000 Reputation Level)Jacques1 User rank is Lieutenant General (80000 - 90000 Reputation Level)Jacques1 User rank is Lieutenant General (80000 - 90000 Reputation Level)Jacques1 User rank is Lieutenant General (80000 - 90000 Reputation Level)Jacques1 User rank is Lieutenant General (80000 - 90000 Reputation Level)Jacques1 User rank is Lieutenant General (80000 - 90000 Reputation Level)Jacques1 User rank is Lieutenant General (80000 - 90000 Reputation Level)Jacques1 User rank is Lieutenant General (80000 - 90000 Reputation Level) 
Time spent in forums: 1 Month 2 Weeks 1 Day 1 h 21 m 39 sec
Reputation Power: 811
Hi,

what exactly in your php.ini have you changed? Please post the exact values. And post the script you use for testing the error messages.

Reply With Quote
  #7  
Old February 10th, 2013, 08:35 AM
zakir_szh zakir_szh is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2013
Posts: 12 zakir_szh User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 44 m 39 sec
Reputation Power: 0
Question

Quote:
Originally Posted by Jacques1
Hi,

what exactly in your php.ini have you changed? Please post the exact values. And post the script you use for testing the error messages.


thanks for your reply sir:

here is the php code for testing:
Code:
<?php
	
	phpinfo()
	echo "error!'

?>


my WAMP server return this error:
Code:
Parse error: syntax error, unexpected 'echo' (T_ECHO) in G:\My Documents\Incomedia\WebSite X5 v9 - Evolution\Siam Computer\Preview\dont\t1.php on line 4


but my LAMP (ubuntu) does not shows any error

however i am editing this ini file ? hope this is the write one?
Code:
sudo gedit /etc/php5/apache2/php.ini


and i have changed following values:
Code:
display_errors = On

error_reporting = E_ALL

display_startup_errors = On

log_errors = On


i hope i have provided you with enough information..

best regards

Reply With Quote
  #8  
Old February 10th, 2013, 08:43 AM
gw1500se gw1500se is offline
Contributing User
Dev Shed Frequenter (2500 - 2999 posts)
 
Join Date: Jul 2003
Posts: 2,867 gw1500se User rank is Colonel (50000 - 60000 Reputation Level)gw1500se User rank is Colonel (50000 - 60000 Reputation Level)gw1500se User rank is Colonel (50000 - 60000 Reputation Level)gw1500se User rank is Colonel (50000 - 60000 Reputation Level)gw1500se User rank is Colonel (50000 - 60000 Reputation Level)gw1500se User rank is Colonel (50000 - 60000 Reputation Level)gw1500se User rank is Colonel (50000 - 60000 Reputation Level)gw1500se User rank is Colonel (50000 - 60000 Reputation Level)gw1500se User rank is Colonel (50000 - 60000 Reputation Level)gw1500se User rank is Colonel (50000 - 60000 Reputation Level)gw1500se User rank is Colonel (50000 - 60000 Reputation Level)gw1500se User rank is Colonel (50000 - 60000 Reputation Level) 
Time spent in forums: 1 Year 1 Week 5 Days 9 h 6 m 6 sec
Reputation Power: 581
That is a compiler error. You're using mixed quotes and missing the ;.
PHP Code:
 phpinfo();
echo 
"error!"

Note the use of [ PHP ] tags. See the sticky at the top of this forum.

Reply With Quote
  #9  
Old February 10th, 2013, 08:46 AM
zakir_szh zakir_szh is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2013
Posts: 12 zakir_szh User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 44 m 39 sec
Reputation Power: 0
Quote:
Originally Posted by gw1500se
That is a compiler error. You're using mixed quotes and missing the ;.
PHP Code:
 phpinfo();
echo 
"error!"

Note the use of [ PHP ] tags. See the sticky at the top of this forum.


thanks for your reply

i m sorry.. but you make me lough.. (please don't mind)

i know where is the error.. i wrote that code to test whether it is showing.. error or not..

and as i told my WAMP server shows that error but not my LAMP

i hope i m clear

once again.. thanks for your help

best regards

Reply With Quote
  #10  
Old February 10th, 2013, 08:46 AM
Jacques1's Avatar
Jacques1 Jacques1 is online now
pollyanna
Click here for more information.
 
Join Date: Jul 2012
Location: Germany
Posts: 1,833 Jacques1 User rank is Lieutenant General (80000 - 90000 Reputation Level)Jacques1 User rank is Lieutenant General (80000 - 90000 Reputation Level)Jacques1 User rank is Lieutenant General (80000 - 90000 Reputation Level)Jacques1 User rank is Lieutenant General (80000 - 90000 Reputation Level)Jacques1 User rank is Lieutenant General (80000 - 90000 Reputation Level)Jacques1 User rank is Lieutenant General (80000 - 90000 Reputation Level)Jacques1 User rank is Lieutenant General (80000 - 90000 Reputation Level)Jacques1 User rank is Lieutenant General (80000 - 90000 Reputation Level)Jacques1 User rank is Lieutenant General (80000 - 90000 Reputation Level)Jacques1 User rank is Lieutenant General (80000 - 90000 Reputation Level)Jacques1 User rank is Lieutenant General (80000 - 90000 Reputation Level)Jacques1 User rank is Lieutenant General (80000 - 90000 Reputation Level)Jacques1 User rank is Lieutenant General (80000 - 90000 Reputation Level)Jacques1 User rank is Lieutenant General (80000 - 90000 Reputation Level)Jacques1 User rank is Lieutenant General (80000 - 90000 Reputation Level) 
Time spent in forums: 1 Month 2 Weeks 1 Day 1 h 21 m 39 sec
Reputation Power: 811
The configuration values look good. However, make sure they're actually used, that is, they're neither commented out nor overwritten later. Also make sure this is the right php.ini (the phpinfo() page tells you the configuration file that's used by PHP).

And don't forget to restart your Apache.

Just to make sure: Your PHP does work, right? It does display a "Hello world"?

Reply With Quote
  #11  
Old February 10th, 2013, 08:49 AM
zakir_szh zakir_szh is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2013
Posts: 12 zakir_szh User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 44 m 39 sec
Reputation Power: 0
Quote:
Originally Posted by Jacques1
The configuration values look good. However, make sure they're actually used, that is, they're neither commented out nor overwritten later. Also make sure this is the right php.ini (the phpinfo() page tells you the configuration file that's used by PHP).

And don't forget to restart your Apache.

Just to make sure: Your PHP does work, right? It does display a "Hello world"?


thanks for your help..

1. sir, even i have restarted my ubuntu system too.. but don't works

2. yes php works..

any help/idea sir?

best regards

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming LanguagesPHP Development > PHP5 - PHP error reporting is not working...

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap