To create a tmp RAM Partition,
1. Create tmp RAM partition
mount -t tmpfs tmpfs /mnt -o size=512m
If you want this to use as a location to save session files, then, just edit php.ini and add the following line.
2. session.save_path = "/mnt"
3. Restart apache
# /etc/init.d/httpd restartroot@server [/]# grep "session.save_path = " /usr/local/lib/php.ini
; As of PHP 4.0.1, you can define the path as: session.save_path = "N;/path"
session.save_path = "/mnt"