Where does the php error log get writ?
by Pedroski from LinuxQuestions.org on (#4XXPZ)
I am reading a book PHP & MySQL: Novice to Ninja by Kevin Yank, doing some simple stuff with php to begin with.
On my little homework web page, on GoDaddy, I keep my php files for each class in a subdirectory aptly named php.
php automatically writes an error log there, for each class, in the php directory.
Now, I have this laptop set up with apache2, php and mysql, so I can learn a bit more and try it out at home first.
Yesterday, for example, there was an error: $firstname was written $firstName, so no output.
Where does php write its error log now?
How can I set php to write an error log in /var/www/html/php/ ??
That will help when things get more complicated.


On my little homework web page, on GoDaddy, I keep my php files for each class in a subdirectory aptly named php.
php automatically writes an error log there, for each class, in the php directory.
Now, I have this laptop set up with apache2, php and mysql, so I can learn a bit more and try it out at home first.
Yesterday, for example, there was an error: $firstname was written $firstName, so no output.
Where does php write its error log now?
How can I set php to write an error log in /var/www/html/php/ ??
That will help when things get more complicated.