How to Log PHP Error Messages

Home » Knowledge Base » Control Panel » PHP Settings » How to Log PHP Error Messages

In a production environment, it is often preferable to log PHP error messages instead of displaying them to users. AwardSpace provides various hosting plans that support comprehensive PHP configurations, making it easy to log errors and maintain a secure environment. This article will guide you through the steps to enable error logging for PHP scripts using your AwardSpace control panel.

Steps to Log PHP Error Messages

    1. Log in to your AwardSpace account and navigate to the PHP Settings menu.The PHP Settings menu in the hosting control panel.
    2. Enter the php.ini configuration options in the PHP settings section.The menu in which you configure the PHP settings.
    3. Locate the following directive within the PHP ini file:
      log_errors = Off
      The disabled PHP directive that allows to log errors.
    4. Change the directive to the following:
      log_errors = On
      The enabled PHP directive that allows to log errors.
    5. After making the change, ensure you save it by clicking the Save button.

By following these steps, you can effectively enable error logging for PHP, which helps in maintaining a secure and stable production environment. Logging errors instead of displaying them prevents sensitive information from being exposed to users, enhancing the security of your web applications. For further assistance or more advanced configurations, feel free to explore our AwardSpace Hosting Plans and additional resources or contact our support team.

Was this post helpful?

i

Relevant tags:

Connect

Latest posts:

How to Add Products in OpenCart

The most important element in your OpenCart project is the products you will offer your site visitors. In the following paragraphs, we share how to add products to your OpenCart website.   How to Create Products in Opencart The process of adding new products in...

How to Log in to OpenCart

After you install OpenCart, you can log in to the platform and start working on your project right away. To log in, you should open the OpenCart login page and enter the credentials you chose when installing the CMS. This will open the platform’s admin panel. In the...

How to Install OpenCart

You can install OpenCart on every AwardSpace web hosting plan, including our free web hosting, shared hosting, and advanced AwardSpace services such as Semi-Dedicated Hosting and VPS hosting. Keep in mind that all of the AwardSpace hosting services are tailored to run...

How to Change My Last Name in Moodle

If you are asking yourself "How to change my last name in Moodle", then you are at the right place. This guide will walk you through the steps for changing your last name in Moodle while addressing common concerns like ratings and discussions.   How to Change My...

How to Change Your Name in Moodle

Changing your name in Moodle is a very simple task and requires only a few minutes of your time.   How to Change My Name in Moodle The process is comprised of a few easy-to-follow steps:   Step 1: Log in to Moodle After installing the CMS, you should log in...



Create a website for free!


Free forever

Our Support Team is Here to Help

 

If you need any questions answered, don't hesitate and contact us. Click the button below and follow the instructions. You can expect an answer within an hour.

 

Contact AwardSpace

 

iNewest knowledge base articles

How to Add Products in OpenCart

The most important element in your OpenCart project is the products you will offer your site visitors. In the following paragraphs, we share how to add products to your OpenCart website.   How to Create Products in Opencart The process of adding new products in...

How to Log in to OpenCart

After you install OpenCart, you can log in to the platform and start working on your project right away. To log in, you should open the OpenCart login page and enter the credentials you chose when installing the CMS. This will open the platform’s admin panel. In the...

How to Install OpenCart

You can install OpenCart on every AwardSpace web hosting plan, including our free web hosting, shared hosting, and advanced AwardSpace services such as Semi-Dedicated Hosting and VPS hosting. Keep in mind that all of the AwardSpace hosting services are tailored to run...

How to Change My Last Name in Moodle

If you are asking yourself "How to change my last name in Moodle", then you are at the right place. This guide will walk you through the steps for changing your last name in Moodle while addressing common concerns like ratings and discussions.   How to Change My...

How to Change Your Name in Moodle

Changing your name in Moodle is a very simple task and requires only a few minutes of your time.   How to Change My Name in Moodle The process is comprised of a few easy-to-follow steps:   Step 1: Log in to Moodle After installing the CMS, you should log in...

Even more web tutorials

Check out our web hosting knowledge base and the WordPress tutorials to learn more, and be better prepared for your website creation and maintenance journey.