How to get the error_log files in Joomla & Joomla Admin ?

General questions relating to Joomla! 1.5 There are other boards for more specific help on Joomla! features and extensions.

Moderator: General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting.
Forum Post Assistant - If you are serious about wanting help, you should use this tool to help you post.
Locked
User avatar
Chacapamac
Joomla! Ace
Joomla! Ace
Posts: 1088
Joined: Wed Feb 20, 2008 6:50 am
Location: Canada, Montreal
Contact:

How to get the error_log files in Joomla & Joomla Admin ?

Post by Chacapamac » Wed Jan 29, 2014 12:40 am

I move on another server from Bluehost and I don’t see any generated error_log files in Joomla or in Joomla Admin ?
Where they come from? Server, Joomla?

How you generated them?
Can God help us?
Marketing, SEO, Web development - Powered by Joomla!
http://www.grafcomm.ca/

User avatar
dpacadmin
Joomla! Champion
Joomla! Champion
Posts: 6029
Joined: Sat Aug 16, 2008 1:46 pm
Location: the Bat Cave
Contact:

Re: How to get the error_log files in Joomla & Joomla Admin

Post by dpacadmin » Wed Jan 29, 2014 7:21 pm

Your php and Apache error logs are generated by your Host. Typical they are in a logs folder or accessible from your Host's cPanel.

User avatar
Chacapamac
Joomla! Ace
Joomla! Ace
Posts: 1088
Joined: Wed Feb 20, 2008 6:50 am
Location: Canada, Montreal
Contact:

Re: How to get the error_log files in Joomla & Joomla Admin

Post by Chacapamac » Wed Jan 29, 2014 7:34 pm

Thanks! :p
Hum! that’s sad, I really like to have error logs in Joomla administration and in Joomla itself was easier to pinpoint problems.

They have such a error_log file but it’s zip and day by day. With the error logs in joomla itself you can trash the logs reload joomla and easily retrieve errors.

Not so easy when bunch in a zip file.

Any way to go revert or change the way log files are generated by php.in/htaccess whatever?
Can God help us?
Marketing, SEO, Web development - Powered by Joomla!
http://www.grafcomm.ca/

User avatar
Chacapamac
Joomla! Ace
Joomla! Ace
Posts: 1088
Joined: Wed Feb 20, 2008 6:50 am
Location: Canada, Montreal
Contact:

Re: How to get the error_log files in Joomla & Joomla Admin

Post by Chacapamac » Sun Aug 10, 2014 2:50 pm

UPDATE
My new server get all the APACHE/PHP error logs to a file that can be view by the administrative control panel.

I understand that this is the safest way to use error_log as they are not physically reachable in the account (even if you can AND SHOULD block their access in the htaccess...

Code: Select all

# protect error log by preventing public access
<Files PHP_errors.log>
 Order allow,deny
 Deny from all
 Satisfy All
</Files>
And their size is always control by the server. Error_log files that reside in your Joomla folder and/or administrator folder can grow big & fat on some sites

Also, they don’t allow a php.ini — I find that crappy, what do you think ?

Now my only way to control error_log and PHP is by the htaccess.

Can somebody wiser than me can help me put together the perfect error_log system for Joomla (for production (live) and test site)

So far what I have is this

Code: Select all

# PHP error handling for production servers

# disable screen display of PHP startup errors
php_flag display_startup_errors off

# disable screen display of all other errors
php_flag display_errors off

# disable html markup of errors
php_flag html_errors off

# enable Server logging of errors
php_flag log_errors on

# disable ignoring of repeat errors
php_flag ignore_repeated_errors off

# disable ignoring of unique source errors
php_flag ignore_repeated_source off

# enable logging of php memory leaks
php_flag report_memleaks on

# preserve most recent error via php_errormsg
php_flag track_errors on

# disable formatting of error reference links
php_value docref_root 0

# disable formatting of error reference links
php_value docref_ext 0

# specify path to php error log
php_value error_log /home/path/public_html/domain/PHP_errors.log

# specify recording of all php errors
# php_value error_reporting 999999999
php_value error_reporting -1

# disable max error string length
php_value log_errors_max_len 0

# protect error log by preventing public access
<Files PHP_errors.log>
 Order allow,deny
 Deny from all
 Satisfy All
</Files>
What I’m not sure here is:
• Is this is optimized for Joomla ?
• How to separate the logs coming from Joomla administration from the one coming from the fronted
• Is this secure for production site

Also, I’m sure that even a better level of debugging can be achieve for a test site (local server/not live) ?
Can God help us?
Marketing, SEO, Web development - Powered by Joomla!
http://www.grafcomm.ca/

User avatar
dpacadmin
Joomla! Champion
Joomla! Champion
Posts: 6029
Joined: Sat Aug 16, 2008 1:46 pm
Location: the Bat Cave
Contact:

Re: How to get the error_log files in Joomla & Joomla Admin

Post by dpacadmin » Sun Aug 10, 2014 6:00 pm

I would think the best way to protect your error logs is to keep them empty by removing all php error causing code or tell php to ignore them.

User avatar
Claudiox
Joomla! Apprentice
Joomla! Apprentice
Posts: 19
Joined: Mon Nov 07, 2011 11:40 am
Location: Italy

Re: How to get the error_log files in Joomla & Joomla Admin

Post by Claudiox » Sat Aug 30, 2014 1:34 pm

Hi, dpacadmin,
Please, can you tell me what I must do for tell php to ignore all php error?
Will be very useful because I’ve an old site that have a lot of error.
Many thanks in advance

User avatar
Chacapamac
Joomla! Ace
Joomla! Ace
Posts: 1088
Joined: Wed Feb 20, 2008 6:50 am
Location: Canada, Montreal
Contact:

Re: How to get the error_log files in Joomla & Joomla Admin

Post by Chacapamac » Mon Sep 01, 2014 12:32 pm

Can somebody wiser than me can help me put together the perfect error_log system for Joomla (for production (live) and test site) using the htaccess file ?

So far what I have is this

Code: Select all

# PHP error handling for production servers

# disable screen display of PHP startup errors
php_flag display_startup_errors off

# disable screen display of all other errors
php_flag display_errors off

# disable html markup of errors
php_flag html_errors off

# enable Server logging of errors
php_flag log_errors on

# disable ignoring of repeat errors
php_flag ignore_repeated_errors off

# disable ignoring of unique source errors
php_flag ignore_repeated_source off

# enable logging of php memory leaks
php_flag report_memleaks on

# preserve most recent error via php_errormsg
php_flag track_errors on

# disable formatting of error reference links
php_value docref_root 0

# disable formatting of error reference links
php_value docref_ext 0

# specify path to php error log
php_value error_log /home/path/public_html/domain/PHP_errors.log

# specify recording of all php errors
# php_value error_reporting 999999999
php_value error_reporting -1

# disable max error string length
php_value log_errors_max_len 0

# protect error log by preventing public access
<Files PHP_errors.log>
 Order allow,deny
 Deny from all
 Satisfy All
</Files>
Can God help us?
Marketing, SEO, Web development - Powered by Joomla!
http://www.grafcomm.ca/


Locked

Return to “General Questions/New to Joomla! 1.5”