Moving my installation of litespeed

Discussion in 'Install/Configuration' started by zep, Nov 4, 2008.

  1. zep

    zep Active Member

    I have litespeed installed and configured nicley, but noticed my /opt (linux fedora default) partition is filling up fast. I have plenty of room in the /root or /home partitions, and would like to migrate my install there.

    I assume doing a copy to that partition is the best way, the stopping the service in the original instance, and starting the new copy would work, but assuming sometimes gets me in trouble.

    What issues might I run into? Is there a better way of solving this issue?

    Thanks a ton!:D
  2. mistwang

    mistwang LiteSpeed Staff

    You may have to install LSWS to /home directory. /root is not good as it is only readable by root.
    It is important to keep the ownership and permission mask when you copy the directory.

    Another choice is to reinstall LSWS to new location and copy over the existing configuration file.
  3. zep

    zep Active Member

    You guys are quick!

    so I would be ok to copy litespeed over to the home directory, stop the old service, and start the new one?

  4. mistwang

    mistwang LiteSpeed Staff

    give it a try, it does not hurt. The files under logs/ and cache/ directories do not have to be copied.
  5. zep

    zep Active Member

    ok, I will

    Im also going to take advantage of all this attention Im getting to ask one more question...

    server rewrites / redirects

    I am switching my website software and need to map the old pages of the site to the new url freindly pages Im now generating, so when I do the redirect (each page will have to have its own) I do it like this?

    old page is

    New page will be

    so will this work?
    RewriteRule ^page/merchant.mvc?Screen=CTGY&Store_Code=MC&Category_Code=1 /keyboard-trays

    and is there any limit to how many pages I can redirect?

  6. mistwang

    mistwang LiteSpeed Staff

    You can use a few hundreds of rewrite rules, but using too many rewrite rules are not efficient as all requests are going through those rules.

Share This Page