SitePoint Sponsor

User Tag List

Results 1 to 2 of 2

Hybrid View

  1. #1
    SitePoint Addict
    Join Date
    Oct 2005
    1 Post(s)
    0 Thread(s)

    Conditional Invoke of Apache and MySQL services through XHTML

    Is there a way to start Apache and MySQL services within an xhtml index.htm? (i.e. javascript or some such?)

    I've written a php5 / xhtml / MySQL application for my wife that runs local using the XAMPP downloadable server. As it stands, my wife must first remember to use the XAMPP control panel to start Apache and MySQL. (I really don't need or want to add xampp_start.exe into the (MS Windows xp) startup folder.)

    Is there a way that I can save her this minor hassle by an imbedded script or some such in my xhtml 1.0 strict index.htm?

    (Running on a dell dimension 4600 using windows xp)


    Brian Case

  2. #2
    SitePoint Author silver trophybronze trophy
    wwb_99's Avatar
    Join Date
    May 2003
    Washington, DC
    4 Post(s)
    0 Thread(s)
    If you could start and stop OS services from a browser that would be a horrible security hole.

    Probably the best thing would be to move it to real hosting -- what happens when that hard drive made by the lowest bidder dies? Is your mysql being backed up? What if she wants to use it from her mobile phone.

    Second choice would be to just configure Apache and MySql as a service on the machine. Or grab an old machine, toss on any linux variant you like and run it there. Backup caveats still apply.

    Third choice would be to write a small powershell script that:
    1) Check to see if XAMPP is running and if not start service
    2) Fires up browser pointed at correct url


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts