Re: Entirely off-topic harddisk questions
From: #2pencil (number2pencil_at_gmail.com)
Date: 06/28/05
- Next message: John Prather: "Re: Bypassing the ISP when they block SMTP protocol?"
- Previous message: John Prather: "Re: The true meaning of / or root partition??"
- In reply to: Keve Nagy: "Re: Entirely off-topic harddisk questions"
- Next in thread: Keve Nagy: "Re: Entirely off-topic harddisk questions"
- Reply: Keve Nagy: "Re: Entirely off-topic harddisk questions"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 28 Jun 2005 12:15:47 -0700
Point your apache.conf to the ram drive as your html document
directory, then dump anything you want to share onto the ram drive.
For my setup, /var/www/html/docs/ is the root directory for Apache. So
inside there I have a website directory. & assuming your ram drive
properly set up...
ln -s /var/www/html/docs/website/ /dev/shm/website/
creates a symbolic link. Now /dev/shm/website is a directory on my ram
drive. So run
cp /var/www/html/docs/website.bakup/ /dev/shm/website/
& your've updated your ram drive. On a shutdown,
cp -uR /dev/shm/website/ /var/www/html/docs/website/
The uR will only copy files that have changed, so again, less overhead.
I'm not 100% sure of the syntax, because I'm not on that machine right
now. So double check stuff before putting it into use. You can
contact me for specifics to my setup. mrgore (shift 2) akroncdnr (dot)
com & I'll help ya get through this best I can.
- Next message: John Prather: "Re: Bypassing the ISP when they block SMTP protocol?"
- Previous message: John Prather: "Re: The true meaning of / or root partition??"
- In reply to: Keve Nagy: "Re: Entirely off-topic harddisk questions"
- Next in thread: Keve Nagy: "Re: Entirely off-topic harddisk questions"
- Reply: Keve Nagy: "Re: Entirely off-topic harddisk questions"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|