Currently, when a PHP error occurs, it will log it into a file called error_log in the same directory the error occurred in.
How can I keep the error_log files outside of the web root so that users cannot view them, for security?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Edit your php.ini file. Find the error_log setting and change it to the full path of where you want the error_log file to be written.