Suppose you have to change some PHP settings for specific projects or directories. Well, you can do so using four useful Apache directives, directly in your Apache configuration files, or even in .htaccess files. To change the value of a boolean directive use the following Apache directive:
php_flag [directive_name] on|off
To set the value of a non-boolean directive you can use the following Apache directive:
php_value [directive_name] [value]
Last, you can also use the two following directives, which behaves like the previous two directives, respectively, with a small difference. When you set a value using these directives, you can’t override it in the .htaccess file. And obviously, you can’t use them in that file.
php_admin_flag [directive_name] on|off php_admin_value [directive_name] [value]
For example, if you want to alter the error reporting rules for a specific virtual host, just use something like this in the virtual host configuration:
php_flag display_errors on # Equal to "E_ALL | E_DEPRECATED" php_value error_reporting 30719
Finally, remember that you cannot use the various PHP constants. You must use the numerical codes in place of them. E.g. E_DEPRECATED is 8192. Note that you can’t add comments in the same line of the directive: put it before or after! Otherwise Apache will not start up!
For computing the value of the combination of two or more constants (like in the example above), you can use a PHP script like the following one:
<?php echo (E_ALL | E_DEPRECATED); # Prints 30719
Enjoy!
It is not an advanced benchmark but the two lightweight web servers seems to be almost the same, Lighttpd seems a little bit better.
The only certainty we have now is the superiority of these servers in deliver static files against apache.
via Benching Lighttpd vs Nginx static files and Apache vs Lighttpd