Title pretty much says it all. I've been tearing my hair out trying to get this working all day. I'm in the process of creating a PHP-based login system and I need to do some debugging. The most useful thing to me right now would be the ability to write debugging messages to a file at certain points throughout a PHP program. Based on the documentation, it looks like this is what error_log() is supposed to do, but despite everything I've tried, I have had absolutely no success. Full list of everything I've tried below:
Added the following to
/etc/php/7.0/apache2/php.inierror_reporting = E_ALL display_errors = On log_errors = OnAdditionally, tried setting
error_logto locations within/usr/,/var/www/http/, and/home/Used
ini_set()anderror_reporting()to set all of those variables, includingerror_logfrom within a PHP fileManually creating the files that are supposed to be written to, and setting their owning user and group to
www-dataand their permissions to 777Last but not least, reinstalling
libapache2-mod-php7.0andphp7.0, to no availBasically everything short of using my laptop to break the 3rd story window of my office building immediately prior to jumping to my prospective death
I really can't find anthing else to try on Google, so I figured I'd ask the experts, and here I am. If anyone can provide any suggestions, it would be greatly appreciated.