LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 06-11-2002, 01:12 AM   #1
sim
LQ Newbie
 
Registered: Jun 2002
Location: HK
Posts: 1

Rep: Reputation: 0
Question remote restart apache


I'm finding a way to restart apache server remotely through web interface. I don't want to use webmin since I have seperate interfaces to manage other services. Does anyone have idea how to work it out? The problem is that not all the servers I'm managing has superl complied. Any other way can work this out? (cron job is not considered for some reason.) Thank you!
 
Old 06-11-2002, 06:49 AM   #2
PenPen
LQ Newbie
 
Registered: Jun 2002
Location: on a spike
Distribution: windowsXP har-har
Posts: 2

Rep: Reputation: 0
Thumbs up php?

php code _ADMIN.PHP_ ----

#copy an md5 (crypt whatever) pass here :
$passord = "Sup3r L3T, c%pt pasS";

if (!isset($m))
{
echo "<form action=\"?m=2\" method=\"post\">";
echo "please input your personnal code : <input type=\"password=\" name=\"secPass\">";
echo "<input type=\"submit\"></form>";
}

if ($m == "2")
{
if ($passord == md5($password))
{
system("/path/to/apachetrcl restart");
echo "finito";
}
}


be creative....
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
remote restart server without keyboard dereko Debian 1 08-05-2005 09:01 PM
Remote Restart Tomcat PerfectReign Linux - Security 2 05-16-2005 12:33 PM
how do i apache restart? einstien Linux - General 3 03-30-2005 02:22 PM
Apache can't restart Serbulent Linux - Enterprise 2 03-16-2005 03:29 AM
How do I restart Apache? 360 Linux - Networking 2 08-25-2001 07:26 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:43 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration