My own error log

You can configure your own PHP error log at Loopia by adding directives to a .htaccess (Apache configuration) file. This lets you choose where the error log is written and how large it may grow.

Configure the error log via .htaccess

The example below writes the log file httpd-error.log one level outside the public_html folder so that it is not publicly available, and sets a limit of 50 MB.

php_value error_reporting 2047
php_value error_log /your/absolute/path/httpd-error.log
php_value log_errors_max_len 52428800

Replace /your/absolute/path/ with the absolute path on the server where you want the log file stored. Placing the log file above public_html ensures that visitors cannot access it through the web.

Was this article helpful?

Related Articles