Last Updated: February 25, 2016
·
1.326K
· patschi

Optimize php: Put php session files in the ram for more performance.

It's simple on Unix systems to put php5 session files into the RAM of the server. This trick should give PHP more performance, because in the RAM the files can be processed much much faster than on the harddisk.

Session files don't need many space - lower than 1 KB per file. It's not quite much. The good thing: How to do this, is described on my blog. The bad site: It's just in german. But I think, it's not quite hard to know, what the commands do. Else use Google Translator :)

http://pkern.at/7820/linux-php5-sessions-zugunsten-der-performance-im-arbeitsspeicher-ablegen

Have a fresh tip? Share with Coderwall community!

Post
Post a tip
Did you know?

PHP applications still send a browser full of JavaScript. Hardening the server does not inventory the payment, analytics, and plugin scripts that run after the HTML is delivered.

Security insights from Cside