Site5 - Built For Designers & Developers MENU

How do you restart Apache on a SuperHosting Xtreme account?

[4 Grey Star Level]

Hi, I’d like to be able to restart Apache so that any changes I make to my ruby Sinatra applications running under Apache / Phusion Passenger can be picked up quickly.

How do I do this? The usual command “apachectl -k restart” does not work, I get a command not found message in my ssh session.

I am on a SuperHosting Xtreme account on the bochetti server.

Thanks, Ray

Answer #1

Raycarr,

Under Ruby and Phusion Passenger all I do is in the ssh.
At the prompt once the ln -s is set and say the name of the is greatapp then to restart the server. I type in [code]touch ~/greatapp/tmp/restart.txt[/code]
refresh the page and it is running. and if I do another update to the code I do it for every time I add code or change the links in the files or add pages etc.

Regards,
lajjr

Answers Answered By: lajjr [16 Grey Star Level]

Answer #2

While you can’t “restart” apache on our shared/managed services, most rails applications being run with passenger can be restarted by simply touching a file that tells the application to restart. In most situations, this file is located in tmp directory under your rails applications, and is called restart.txt.

For example, you should be able to use the following command (note you would have to change your path to fit your situation) to restart your application …

touch ~/public_html/railsapp/tmp/restart.txt

Answers Answered By: joliver [476 Blue Star Level]

Answer this Question

You must be Logged In to post an Answer.

Not a member yet? Sign Up Now »

Money Back Guarantees
Click to verify BBB accreditation and to see a BBB report.