Howtos

Want to support HowtoForge? Become a subscriber!
 

PHP session data is not deleted when using custom session management on debian (and ubuntu)

PHP session data is not deleted when using custom session management on debian (and ubuntu)

On debian systems (as far as I know this applies to ubuntu, too) the garbage collector for PHP sessions is disabled by default.

The corresponding setting in php.ini is session.gc_probability = 0 which enables the garbage collector when set to something greater than zero. The default value in PHP is 1, so the garbage collector is called with a probability of 1/100 at each PHP script call.

On debian systems this setting is disabled because of the fact that the default path for session storage is not writable for the web server process (and it shouldn't be either). Deleting of outdates session files is done by a system cron job here.

Rounding numbers to special values in PHP - e. g. "nice prices"

Rounding numbers to special values in PHP - e. g. "nice prices"

Sometimes you need to round numbers to special values. Maybe you have a shop and want to calculate your selling prices automatically, but you don't like prices like 12.52 USD.

Here's a small PHP function that can be used in many different ways to solve this problem.

How To Add PPP Kernel Support To OpenVZ Containers

How To Add PPP Kernel Support To OpenVZ Containers

If you are trying to build a VPN tunnel from within an OpenVZ container to some other system, you will most likely get the error message /usr/sbin/pppd: Sorry - this system lacks PPP kernel support. This tutorial explains how you can add PPP kernel support to your OpenVZ container so that you can start VPN connections from your container.

Data Recovery From Accidentally Deleted Files or Crashed Drives in Ubuntu

Data Recovery From Accidentally Deleted Files or Crashed Drives in Ubuntu

This tutorial will help you to recover data from accidentally deleted data from Linux-file systems. This is a very drastic mistake by any user/admin which costs for huge penalties. This script will be a boon for newbies/expert for data management. I will be using TestDisk for data-recovery. Here I have simplified the task with the help of a script.

Script for converting Outlook pst to Thunderbird/Evolution compatible format on Linux

Script for converting Outlook pst to Thunderbird/Evolution compatible format on Linux

This tutorial will show how to convert Outlook PST into Thunderbird/Evolution compatible SBD format. For this  I have created a script for the conversion format.This will work in Debian/Ubuntu/CentOS too!

The Perfect Server - CentOS 5.10 x86_64 [ISPConfig 3]

The Perfect Server - CentOS 5.10 x86_64 [ISPConfig 3]

This tutorial shows how to prepare a CentOS 5.10 x86_64 server for the installation of ISPConfig 3, and how to install ISPConfig 3. ISPConfig 3 is a webhosting control panel that allows you to configure the following services through a web browser: Apache web server, Postfix mail server, MySQL, BIND nameserver, PureFTPd, SpamAssassin, ClamAV, and many more.

Using mount --bind To Move The Website And Email Directory Of a ISPConfig 3 Server To a New Directory

Use mount --bind To Move The Website And Email Directory Of a ISPConfig 3 Server To a New Directory

In the following guide, I will explain the procedure on how to move the email and website directory of a ISPConfig 3 installation to a new partition. This might become handy when your current partition runs out of space.

New Linux Container Virtualization Technology from Docker

New Linux Container Virtualization Technology from Docker

The Docker, new container-based virtualization tech startup has started it’s venture to the server virtualization industry by offering their newest version of the software, the Docker 0.8. The company has been known for their production of a faster alternative when it comes to running virtual machines over that of hypervisors.

Install Virtualbox 4.3.8 On a Debian 6 (Squeeze) Desktop

Install Virtualbox 4.3.8 On a Debian 6 (Squeeze) Desktop

In this tutorial I will show you to install the latest Virtualbox version in Debian 6 (Squeeze).

Install Bittorrent Sync on Debian / Ubuntu

Install Bittorrent Sync on Debian / Ubuntu

BitTorrent Sync is a new piece of software by BitTorrent Inc. - the original creator of the BitTorrent protocol. While most might be familiar with BitTorrent, only a few know of BitTorrent Sync. Normal .torrent files are static and once created they can't be altered anymore. BitTorrent Sync however allows updates to the data and syncs them to the peers. BitTorrent Sync is also available cross-plattform (Linux, Android, Windows, Mac OSX, iOS) and it has two distinctive operation modes. You can have a many-to-many synchronization meaning that every node can alter the content and have it synced to the other devices. Or you can have a one-to-many synchronization meaning that only the Master Node can alter data and this is then synced to all other nodes. Especially the one-to-many synchronization is of interested if you want to create backups and store them at multiple sites - using the power of BitTorrent swarms (meaning each nodes starts providing updates to other nodes as soon as they are received).

first page
previous page
2
...
next page
last page