• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion
  • Inviting everyone to the UX test of a new security feature in the WP Toolkit
    For WordPress site owners, threats posed by hackers are ever-present. Because of this, we are developing a new security feature for the WP Toolkit. If the topic of WordPress website security is relevant to you, we would be grateful if you could share your experience and help us test the usability of this feature. We invite you to join us for a 1-hour online session via Google Meet. Select a convenient meeting time with our friendly UX staff here.

Question prefered way to move /var/lib/php/sessions to tmpfs

Brujo

Silver Pleskian
Plesk Guru
Ubuntu 16.04.4 LTS‬
Plesk Onyx Version 17.5.3 Update #43

since the Server has inough ram, what would be the prefered way to move /var/lib/php/sessions to tmpfs under Ubuntu?
 
Well, you'll improve performance just due to RAM being faster then disk.

You'll want to create the RAM disk first;

# mkdir /tmp/ramd
# chmod 777 /tmp/ramd
# mount -t tmpfs -o size=512M tmpfs /tmp/ramd/

(be sure to add it to fstab as well)

Then modify your PHP.ini;

session.save_path="/tmp/ramd"
 
Last edited:
@Émerson Felinto
Getting from Provider new Hardware Servers to be tested bevor replace existing root Servers and nowadays they come with 64Gig Ram & SSD drive, therefor I like to use on on side the RAM as best for performance and reduce writing to SSD.
 
Last edited:
@Mark Muyskens
under ubuntu /tmp it is already foreseen to be moved to tmpfs "systemctl enable tmp.mount"

so your idea is to change the session.save_php path settings per php Version/handler - any expirince what happens when Plesk update/upgrade the Versions?
 
Back
Top