Results 1 to 3 of 3
  1. #1
    Join Date
    May 2008
    Posts
    660

    doing symlink with apache

    i got iodrive and can move mysql to my ssd but the tricky issue is the apache how can my ssd be used for apacheon ssd only?

  2. #2
    Join Date
    Sep 2010
    Location
    Behind you...
    Posts
    355
    use.some.dot.and.Capitals.to.make.your.lines.more.readable.

    But to answer your question, as far as anyone can understand it, you have to move your www folder to the SSD and update your apache config file to point to the new location.
    file1.info :: 50GB secure cloudstorage with filemanager

  3. #3
    Join Date
    Dec 2010
    Location
    Schiedam, The Netherlands
    Posts
    172
    You can simply symlink or mount your SSD at the location Apache expects the files, e.g. /var/www
    I'm not sure whether you are using Linux, but it would be something along these lines (replace the bold parts with your configuration):

    Mounting the SSD, copying your data and unmounting it:
    Code:
    mount /dev/sda2 /mnt
    cp /var/www/* /mnt
    umount /dev/sda2
    Moving the old location to www_old and mounting the SSD at the actual location:
    Code:
    mv /var/www /var/www_old
    mount /dev/sda2 /var/www/
    /etc/init.d/apache2 restart

Similar Threads

  1. How can I symlink / and /home ?
    By chasebug in forum Hosting Security and Technology
    Replies: 3
    Last Post: 09-06-2010, 03:04 AM
  2. can i create a symlink to /usr/local/apache/logs ?
    By sharmaine1111 in forum Hosting Security and Technology
    Replies: 11
    Last Post: 12-27-2009, 12:23 PM
  3. tutorial help for symlink
    By Maikon in forum Hosting Security and Technology
    Replies: 1
    Last Post: 06-09-2008, 05:14 PM
  4. /usr nearly full, move and symlink check/ effect on Apache?
    By tfc in forum Hosting Security and Technology
    Replies: 9
    Last Post: 08-17-2004, 05:52 PM
  5. symlink
    By GazCBG in forum Hosting Security and Technology
    Replies: 7
    Last Post: 04-05-2003, 08:42 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •