To set the Apache ( not the PHP ) log, the easiest way to do this would be to do.
To set the Apache (not the PHP) log, the easiest way to do this would be to do: # Stuff, # More Stuff, ErrorLog /path/where/you/want/the/error. Log If there is no leading "/" it is assumed to be relative. Apache Error Log Page.
2 That's the apache error log, which is separate to the PHP error log (see other comments) – thelem Nov 18 '10 at 7:48 php's error log defaults to apache's error log. – helloandre Jan 3 at 19:00.
If somebody comes looking it should look like this: ServerName example.com DocumentRoot /var/www/domains/example.com/html ErrorLog /var/www/domains/example.com/apache.error. Log CustomLog /var/www/domains/example.com/apache.access. Log common php_flag log_errors on php_flag display_errors on php_value error_reporting 6143 php_value error_log /var/www/domains/example.com/php.error.
Log This is for development only since display_error is turned on. You will notice that the apache error log is separate from the php error log. The good stuff is in php.error.log.
Take a look here for the error_reporting key php.net/manual/en/errorfunc.configuratio....
Depending on your config, you may need to manually create the log file and set the owner/group to the same user/group that Apache is using. Apache won't warn you if it can't write to the log file. – Ian Dunn Jun 24 '11 at 23:41.
I usually just specify this in an . Htaccess file or the vhost. Conf on the domain I'm working on: php_admin_value error_log "/var/www/vhosts/example.com/error_log.
The default behaviour is for error_log() to output to the Apache error log. If this isn't happening check your php. Ini settings for the error_log directive - leave it unset to use the Apache log file for the current vhost.
Don't set error_log to where your syslog stuff goes, eg /var/log/apache2, because they errors will get intercepted by ErrorLog. Instead, create a subdir in your project folder for logs and do php_value error_log "/path/to/project/logs". This goes for both .
Htaccess files and vhosts. Also make sure you put php_flag log_errors on.
Interesting. Does this behavior depend on the path of the error_log file? – demonkoryu Apr 4 '11 at 8:04.
I will check. I just wonder if it is possible to still have apache and php error log separate when we want to give developers a chance to debug their code without giving them the apache error log which might contain other sensitive data.
My Apache had something like this in httpd.conf. Just change the ErrorLog and CustomLog settings ServerAdmin webmaster@dummy-host.example.com DocumentRoot /opt/web ServerName myvhost ErrorLog logs/myvhost-error_log CustomLog logs/myvhost-access_log common.
We're talking about the PHP log, not the Apache log here. – demonkoryu Mar 31 '11 at 9:16.
Yes, you can try php_value error_log "/var/log/php_log" in . Htaccess or you can have users use ini_set() in the beginning of their scripts if they want to have logging Another option, would be to enable scripts to default to the php. Ini in the folder with the script, then go to the user/host's root folder, then to the server's root, or something similar.
This would allow hosts to add their own php. Ini values and their own error_log locations.
You could try: php_value error_log "/var/log/httpd/vhost_php_error_log" But i'm not sure if is going to work. I tried on my sites with no success.
Php_value error_log "/var/log/httpd/vhost_php_error_log" It works for me, but I have to chage the permission of the log file. Or Apache will write the log to the its error_log.
I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.