Keep Server Online
If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.
or
A donation makes a contribution towards the costs, the time and effort that's going in this site and building.
Thank You! Steffen
Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
| |
|
Topic: how to restart server from webpage |
|
Author |
|
MavJac
Joined: 07 Jul 2010 Posts: 1 Location: Texas, USA
|
Posted: Wed 07 Jul '10 2:00 Post subject: how to restart server from webpage |
|
|
I have been a web designer for about 6 years. I am now learning the server side of things.
I am running Ubuntu 10.04 if that matters.
I would like to know if it is possible for me to create a web based admin panel. I would like to be able to restart the server via this web page. I am also learning php and javascriopt at the moment. I've only used photoshop and dreamweaver in the past but now am getting back to coding from scratch in notepadd ++.
Any help in this matter would be greatly appreciated. And yes I understand the security risks involved, I will be placing it outside of my www folder. |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7373 Location: Germany, Next to Hamburg
|
Posted: Wed 07 Jul '10 17:38 Post subject: |
|
|
If you have shell access (ssh) it is much easier to restart the webserver from the shell.
To write a script is not the problem, but you have to run the script as root. That is a problem, cause for security reasons the web server doesn't run as root user. |
|
Back to top |
|
|
|
|
|
|