P
P
Puma Thailand2012-03-13 19:02:39
Apache HTTP Server
Puma Thailand, 2012-03-13 19:02:39

What is the best way to make a web page for restarting apache?

Actually there will be only one page on php with a button to reload apache.
Needed purely for technical needs.
What is the best way to restart apache?
Call sudo service apache2 restart?
Or are there other options?

Answer the question

In order to leave comments, you need to log in

4 answer(s)
A
avalak, 2012-03-13
@avalak

There are many options. For example:

  • Use supervisord (provides web panel. python). Joyful and angry. Great choice.
  • Bicycling (because I'm paranoid and scared to reload apache from php):
    php touches a file. watchdog (yes, at least on the bash) monitors this file using inotify-tools and reloads apache when it changes.

R
Riateche, 2012-03-13
@Riateche

I think sudo service apache2 restart will do just fine.

M
Max, 2012-03-13
@7workers

httpd.apache.org/docs/2.2/stopping.html

N
Nikolai Turnaviotov, 2012-03-15
@foxmuldercp

Well, you can still purely reload Apache configs.
but first they need to be checked for validity

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question