capistrano script to start lsws

djsodom

Active Member
#1
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:

desc "Patch the EC2 instance with any updates"
task :patch_server, :roles => :app do
sudo <<-CMD
/sbin/service mysqld start && /opt/lsws/bin/lswsctrl start
CMD
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
 

djsodom

Active Member
#4
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.
 
Top