How to get the error_log files in Joomla & Joomla Admin ?
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.
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.
- Chacapamac
- 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 ?
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?
Where they come from? Server, Joomla?
How you generated them?
- dpacadmin
- 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
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.
- Chacapamac
- 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
Thanks!
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?
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?
- Chacapamac
- 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
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...
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
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) ?
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>
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>
• 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) ?
- dpacadmin
- 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
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.
- Claudiox
- 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
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
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
- Chacapamac
- 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
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
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>