logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

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.
Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: how to restart server from webpage
Author
MavJac



Joined: 07 Jul 2010
Posts: 1
Location: Texas, USA

PostPosted: Wed 07 Jul '10 2:00    Post subject: how to restart server from webpage Reply with quote

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

PostPosted: Wed 07 Jul '10 17:38    Post subject: Reply with quote

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


Reply to topic   Topic: how to restart server from webpage View previous topic :: View next topic
Post new topic   Forum Index -> Apache