Change language

Where does PHP store the error log? (php5, apache, fastcgi, cpanel)

|
Run the above program and find the error_log directive using f3 in chrome ... This will show the location of the log file. Below is an example execution on a WAMP server, but the procedures are the same as below for each development stack.Open the php.ini file,as directed, and edit the following directives to specify the path to the error log file elsewhere.display_errors = Off Then you must specify the path to your log file using the error_log directive like this:
You can find the path to the php.ini file directly using the following command on UNIX / Linux.php -i | grep php.iniPHP contains a simple and effective solution for displaying all log errors to a log file. It is imperative to disable the display of the error on the server to the end user using a web browser. PHP provides a lot of information related to path, database schema and all other kinds of sensitive information. It is highly recommended that you use error logging instead of displaying errors on production websites. This idea is useful when displaying the error log only to the developer. PHP suggests logging all errors in a log file instead of displaying the error to end users via a web browser. To do this, you must first turn off the browser error display in the php.ini file by setting the display_errors directive to off, as mentioned above. Then you must specify the path to your log file using the error_log directive like this:
Example: error_log = /var/log/php-scripts.log, errors will be logged to php-scripts.log file.

Shop

Best laptop for Sims 4

$

Best laptop for Zoom

$499

Best laptop for Minecraft

$590

Best laptop for engineering student

$

Best laptop for development

$

Best laptop for Cricut Maker

$

Best laptop for hacking

$890

Best laptop for Machine Learning

$950

Latest questions

NUMPYNUMPY

psycopg2: insert multiple rows with one query

12 answers

NUMPYNUMPY

How to convert Nonetype to int or string?

12 answers

NUMPYNUMPY

How to specify multiple return types using type-hints

12 answers

NUMPYNUMPY

Javascript Error: IPython is not defined in JupyterLab

12 answers

News

Wiki

Python OpenCV | cv2.putText () method

numpy.arctan2 () in Python

Python | os.path.realpath () method

Python OpenCV | cv2.circle () method

Python OpenCV cv2.cvtColor () method

Python - Move item to the end of the list

time.perf_counter () function in Python

Check if one list is a subset of another in Python

Python os.path.join () method