{"id":119,"date":"2020-02-24T02:49:00","date_gmt":"2020-02-24T02:49:00","guid":{"rendered":"https:\/\/molecularsciences.org\/content\/?p=119"},"modified":"2020-12-01T02:50:27","modified_gmt":"2020-12-01T02:50:27","slug":"where-are-php-error-logs","status":"publish","type":"post","link":"https:\/\/molecularsciences.org\/content\/where-are-php-error-logs\/","title":{"rendered":"Where are PHP error logs"},"content":{"rendered":"\n<p>PHP errors are by default set to go to the apache error log. On Ubuntu, the error log is located at \/var\/log\/apache2\/error.log. If you are a PHP developer, it is good idea to open a small terminal window and type the following:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>tail -f \/var\/log\/apache2\/error.log<\/code><\/pre>\n\n\n\n<p>This would essentially give you a live view of the error log. As you generate errors, you would see the error messages on the terminal.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>PHP errors are by default set to go to the apache error log. On Ubuntu, the error log is located at \/var\/log\/apache2\/error.log. If you are a PHP developer, it is good idea to open a small terminal window and type the following: This would essentially give you a live view of the error log. As [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[23],"tags":[57,24],"class_list":["post-119","post","type-post","status-publish","format-standard","hentry","category-php","tag-apache","tag-php"],"_links":{"self":[{"href":"https:\/\/molecularsciences.org\/content\/wp-json\/wp\/v2\/posts\/119","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/molecularsciences.org\/content\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/molecularsciences.org\/content\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/molecularsciences.org\/content\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/molecularsciences.org\/content\/wp-json\/wp\/v2\/comments?post=119"}],"version-history":[{"count":1,"href":"https:\/\/molecularsciences.org\/content\/wp-json\/wp\/v2\/posts\/119\/revisions"}],"predecessor-version":[{"id":120,"href":"https:\/\/molecularsciences.org\/content\/wp-json\/wp\/v2\/posts\/119\/revisions\/120"}],"wp:attachment":[{"href":"https:\/\/molecularsciences.org\/content\/wp-json\/wp\/v2\/media?parent=119"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/molecularsciences.org\/content\/wp-json\/wp\/v2\/categories?post=119"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/molecularsciences.org\/content\/wp-json\/wp\/v2\/tags?post=119"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}