Pretty straight forward.
First important is to check which user / group has the current permission, no point of loading a ram drive if magento can’t write to it.
so
Code:
cd /home/magento/var/
then perform
Should give you a basic view of the current owner.
Now, we can create our tmpfs drives.
Code:
mount -t tmpfs -o size=128m tmpfs /home/magento/var/cache/
then
Code:
chown user:group /home/magento/var/cache
chmod o+w /home/magento/var/cache
Perform the same for /var/sessions
Their you go, you now have a very fast magento cache
Only downside if you reboot you shall have to remount them, otherwise you can add them to you /etc/fstab
View more threads in the same category:
Bookmarks