LiteSpeed Technologies
Download Download     Blog Blog     Wiki Wiki     Forum Forum     Store     Contact Contact    

Go Back   LiteSpeed Support Forums > LiteSpeed Web Server > Install/Configuration > PHP error Display?

Reply
 
Thread Tools Display Modes
  #1  
Old 02-06-2008, 09:44 AM
vivek vivek is offline
Senior Member
 
Join Date: Jan 2008
Posts: 275
Default PHP error Display?

Hello

I think LiteSpeed is not displaying php errors.

How to enable it ?

The php config is the default, so I guess the error display option in php.ini will be the default (display errors)

Any help is appreciated.

Thank you
Vivek
Reply With Quote
  #2  
Old 02-06-2008, 10:00 AM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,590
If you mean displaying error in user's browser, you need to check a phpinfo page to make sure php configuration has been set properly.

If you want to user view PHP errors in cPanel, you need to change the location of error.log to /usr/local/apache/log/error_log, where apache place its error log.
Reply With Quote
  #3  
Old 02-06-2008, 10:01 AM
xing xing is offline
LiteSpeed Staff
 
Join Date: Oct 2003
Location: Los Angeles, California
Posts: 380
Check your php.ini and make sure display errors is enabled.

We recommend having it disabled for security reasons.
Reply With Quote
  #4  
Old 02-06-2008, 10:04 AM
vivek vivek is offline
Senior Member
 
Join Date: Jan 2008
Posts: 275
Thanks, I rechecked php.ini and found it is off.

We need this because there are some developors who need it for debugging their application.

thank you
Reply With Quote
  #5  
Old 02-06-2008, 10:05 AM
vivek vivek is offline
Senior Member
 
Join Date: Jan 2008
Posts: 275
Quote:
Originally Posted by mistwang View Post
If you want to user view PHP errors in cPanel, you need to change the location of error.log to /usr/local/apache/log/error_log, where apache place its error log.
Sorry, I did not understand. In normal case , where we can see the php errors in cPanel ?
Reply With Quote
  #6  
Old 02-06-2008, 10:10 AM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,590
They should be able to override PHP error_reporting configuration in .htaccess with "php_value" directive. It should be off globally.
cPanel can view error log for each vhost. should have a button available.
Reply With Quote
  #7  
Old 02-06-2008, 10:18 AM
vivek vivek is offline
Senior Member
 
Join Date: Jan 2008
Posts: 275
Quote:
Originally Posted by mistwang View Post
should have a button available.
I think I am missing it.
Can you tell me where is the button ?

Thanks
Reply With Quote
  #8  
Old 02-06-2008, 10:21 AM
vivek vivek is offline
Senior Member
 
Join Date: Jan 2008
Posts: 275
Where can I see a button or hyperlink for viewing Apache logs in cPanel , so that I can replace the log with LiteSpeed's log file.?
Reply With Quote
  #9  
Old 02-06-2008, 10:44 AM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,590
something like "error log" as I remember.
Reply With Quote
  #10  
Old 02-06-2008, 10:56 AM
vivek vivek is offline
Senior Member
 
Join Date: Jan 2008
Posts: 275
Quote:
Originally Posted by mistwang View Post
something like "error log" as I remember.
As far as I know, there is no such option in cPanel to see the Apache error.log file.

Correct me if I am wrong.
Reply With Quote
Reply

Thread Tools
Display Modes

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 12:04 AM.



- Archive - Top
© Copyright 2003-2011 LiteSpeed Technologies, Inc. All rights reserved. Privacy Policy.