Get your server issues fixed by our experts for a price starting at just 25 USD/Hour. Click here to register and open a ticket with us now!

Author Topic: How to create a tmp RAM Partition  (Read 2321 times)

0 Members and 1 Guest are viewing this topic.

Vinil

  • Guest
How to create a tmp RAM Partition
« on: December 30, 2013, 04:34:34 pm »
To create a tmp RAM Partition,

1. Create tmp RAM partition

Quote
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 restart


Code: [Select]
root@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"
« Last Edit: December 30, 2013, 04:39:57 pm by Vinil »