capistrano script to start lsws

Discussion in 'Install/Configuration' started by djsodom, Jan 11, 2007.

  1. djsodom

    djsodom New Member

    Hi,

    When I installed lsws I told it to start on reboot. However, I'm experimenting with Amazon's ec2 and lsws does not start when I launch an instance.

    I'm trying to use a capistrano script to start the lsws server. Here is my part of that task:

    When it tries to start lswsctrl it returns the error:
    "Can't determine the Home of LiteSpeed Web Server, exit!"


    It seems like a permission problem. My capistrano user is "steveodom". Litespeed was set up to run as user "lsws". user "steveodom" has full sudo permissions.

    Any suggestions of how I can allows 'steveodom" to start/stop lsws.

    Thanks,

    Steve
  2. djsodom

    djsodom New Member

    nevermind

    I figured out I can put a ./ in front of the command and it works. Doh.
  3. mistwang

    mistwang LiteSpeed Staff

    It could be a rc script problem. Which linux distribution Amazon's es2 uses?

    Glad you find the work around.
  4. djsodom

    djsodom New Member

    With EC2, you can create a instance with any distribution. I'm using Fedora 6.

    Related to scripting, and unrelated to this thread, can lsws virtual hosts be created via the command line? I couldn't find anything in the documentation about it. I'm interested in it to see if I can use capistrano to almost completely manage my server.

Share This Page