Παράλειψη και μετάβαση στο κύριο περιεχόμενο
Καλέστε μας
  • Αθήνα: Υποστήριξη 24/7 σε αγγλικά21 1 198 4715
  • Θεσσαλονίκη: Υποστήριξη 24/7 σε αγγλικά23 1 118 0732
Αριθμοί τηλεφώνου και ωράρια
Κέντρο βοήθειας

Εξερευνήστε τους online πόρους βοήθειας

Βοήθεια

GoDaddy Βοήθεια

Setup PHP error logging

When troubleshooting PHP errors, you will want to review your PHP logs. If you don't have PHP logs to review, use the following process to set up logging:

Note: For WordPress and Managed WordPress error logging please see Enable debugging to display errors in WordPress.

  1. You should always backup your site before making any changes to your site.
  2. Locate your PHP initialization file.
  3. Edit the file. (cPanel / Plesk / VPS)
  4. Place the following line in your initialization file:
    error_log = /path/to/your/webroot/php_error.log
    • error_log is the PHP function that will tell the web server to output your logs to a new file.
    • /path/to/your/webroot/php_error.log is the path to your new log.
      • Make sure to replace /path/to/your/webroot with the actual path your hosting account uses.
      • What is my absolute path? (cPanel / Plesk).
  5. Create the a file named php_error.log in the in the webroot of your hosting.
  6. Restart your PHP processes.(cPanel / Plesk).

Next Steps:

More info

  • For more information about PHP error logs, visit PHP.net.

Σχετικά με την Κοινότητα

jayceezay's Avatar
How to setup PHP error logging

1 Απαντήσεις

Last posted about 3 years ago.

Anthony-Fait's Avatar
Setting Up PHP Error Logging

1 Απαντήσεις

Last posted over 2 years ago.

kch's Avatar
php error log file in a Windows + Plesk + php 5.4 hosting environment

1 Απαντήσεις

Last posted about 5 years ago.

garykoz's Avatar
Logging to my MySQL server with PHP

10 Απαντήσεις

Last posted over 1 year ago.

Δεν βρίσκετε αυτό που αναζητάτε; Αναζήτηση στην Κοινότητα