If you do not know yet what is grsec / grsecurity, a good starting point is http://grsecurity.net/. For linux, grsecurity is a “Holy Grail” in security. In addition, it will get rid of a problem that has linux and that irritates me me: ps aux (after any user can see all processes.) In this short [...]
Installing and configuring dhcpd server on Debian (Lenny) ## Install DHCP server for automatic IP assignment apt-get update apt-get install dhcp3-server ## Remove original config file and set the IP address for eth1 (internal network card) rm /etc/dhcp3/dhcpd.conf pico /etc/network/interfaces # —————————————— # ## Example configuration: (no eth0) auto eth1 iface eth1 inet static address [...]
Undoubtedly, memcached is the best caching system can be run distributed reaching extreme performance ( it uses libevent find). As dependency to be used we will need: libevent, memcached and php-memcached PECL. ## Install PHP PECL Memcache and memcached-(Dependencies will be installed along with them) yum install php-pecl-memcache memcached ## To Configure the memcached edit [...]
## To find memory used by a group of processes (Example: php-cgi / http): ps aux | grep –exclude=grep httpd | awk ‘BEGIN{s=0;}{s=s+$6;}END{print s;}’ ## To find the average memory after a group of processes: ps aux | grep –exclude=grep httpd | awk ‘BEGIN{s=0;}{s=s+$6;}END{print s/126;}’ Note: The return value is expressed in KB. From holy [...]
First of all we will explain the terms used. DSO – Dynamic Shared Object MPM – Multi-Processing Modules The idea is to run on the same apache both mod_php (DSO) with suphp. First, mod_php is very fast but sux at security chapter. In this case (example) Apache with MPM Prefork have two virtual hosts, each [...]
Perhaps you have wondered how to set per virtual host settings when using mod_php (DSO) to apache. The suPHP is simple for each user or virtual host can have his own php.ini . In the example below you can see how to configure a virtual host with PHP custom settings. We use Suhosin to enhance [...]
Installation and setup for a VPN server on Debian Lenny in few minutes # Install pptpd apt-get install pptpd # Turn on IP Forwarding sysctl-w net.ipv4.ip_forward = 1 # We set the permanent IP forwarding pico /etc/sysctl.conf # Remove the comment line “net.ipv4.ip_forward = 1″ # Configure pptpd # Example: 10.0.1.1 LOCALIP remoteip 10.0.0.3-10.0.0.200 # [...]
To synchronize with a server on the exact time and if you want to set the hardware clock in localtime and time as short as possible, you can use the example below, (this example is for linux) root@example[~] # rm /etc/localtime && ln -s /usr/share/zoneinfo/US/Pacific /etc/localtime root@example[~] # ntpdate -vb de.pool.ntp.org && hwclock -w Aug [...]
This is a tutorial for beginners extremely small: In this short tutorial I will show you how to install apache and php on Debian in just 4 minutes. Setting the example was done on a virtual machine. root@example:~# apt-get install apache2 root@example:~# apt-get install php5 php5-cli php5-cgi php5-curl php5-common php5-gd php5-mcrypt php5-mysql php5-tidy libapache2-mod-php5 [...]



Recent Comments