Tag: part 1

PHP, WEB

Modify error reporting behavior in PHP Part 1

Error reporting behavior can be modified at code level. This is very useful if you don’t have permissions to edit php.ini file. Here is a simple example to show you how to do it: //what should i report? ini_set(’error_reporting’, ‘E_ALL’); //show errors to user? ini_set(’display_errors’, ‘Off’); //log errors? ini_set(’log_errors’, ‘On’); //where should i log errors? …

Apache, Linux

Securing Apache Part 1

The following tips are things you can do to make your apache server more secure. Before you begin to follow the tips below, locate your apache’s configuration files first. Common places for apache’s configuration files are: /etc/apache2/apache2.conf, /etc/apache2/httpd.conf and /etc/apache2/sites-enabled/000-default. Before you make any changes, MAKE BACKUP COPIES OF YOUR FILES. Here we go: 1. …