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 Fix 308 Permanent Redirect

308 Permanent Redirect is an HTTPS status code indicating that the requested resource has been permanently moved to another location. Similar to 301 Moved Permanently, 308 informs the user of the movement of a given online resource, and unlike the 301 redirect, 308...

How to Fix 301 Error Moved Permanently

The 301 Moved Permanently is an HTTP status code that indicates a permanent relocation of an online resource from a given URL to a new one. More technically, the moved resource has been moved to the new URL specified in the Location header. The HTTP 301 status code is...

How to Fix 307 Temporary Redirect

307 Temporary Redirect is a response HTTP status code that indicates the requested resource has been moved to a different URL for a limited period of time. Unlike a 301 permanent redirect, the 307 Temporary Redirect message indicates that the change is temporary and...

How to Access Crontab Settings

To access the crontab settings, first, you need to log in to your AwardSpace hosting panel. After you have logged in, head to Crontab Settings, located within the Advanced Tools category:   After you click the Crontab Settings icon, a new page should load. Once...

How to Check My Auto Renewals

To check your AwardSpace hosting plan auto-renewals, first log in to the admin dashboard. Then, head to Wallet, within the Orders & Invoices section:   After that, click the Auto Renewals tab, where you can check any relevant information about your hosting...



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 Fix 308 Permanent Redirect

308 Permanent Redirect is an HTTPS status code indicating that the requested resource has been permanently moved to another location. Similar to 301 Moved Permanently, 308 informs the user of the movement of a given online resource, and unlike the 301 redirect, 308...

How to Fix 301 Error Moved Permanently

The 301 Moved Permanently is an HTTP status code that indicates a permanent relocation of an online resource from a given URL to a new one. More technically, the moved resource has been moved to the new URL specified in the Location header. The HTTP 301 status code is...

How to Fix 307 Temporary Redirect

307 Temporary Redirect is a response HTTP status code that indicates the requested resource has been moved to a different URL for a limited period of time. Unlike a 301 permanent redirect, the 307 Temporary Redirect message indicates that the change is temporary and...

How to Access Crontab Settings

To access the crontab settings, first, you need to log in to your AwardSpace hosting panel. After you have logged in, head to Crontab Settings, located within the Advanced Tools category:   After you click the Crontab Settings icon, a new page should load. Once...

How to Check My Auto Renewals

To check your AwardSpace hosting plan auto-renewals, first log in to the admin dashboard. Then, head to Wallet, within the Orders & Invoices section:   After that, click the Auto Renewals tab, where you can check any relevant information about your hosting...

How to Check My Payment Requests

To check your payment requests, first log in to the AwardSpace hosting panel. Then, head to Wallet within the Orders & Invoices category:   Then, click the Payment Requests tab. There, you can browse all the information you need about your...

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.