Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3239174
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T17:56:21+00:00 2026-05-17T17:56:21+00:00

Hello all I need Apache server with php interpreter to distribute in my desktop

  • 0

Hello all
I need Apache server with php interpreter to distribute in my desktop application
The reason is that my application create reports that are basically php code that runes under Apache web server
Is it user friendly to distribute Apache server with php interpreter with your desktop application ?
Also I like to be able to start / stop the server from my application I know its not common but how can it be done.
So that none techi user will not get into trouble

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-17T17:56:21+00:00Added an answer on May 17, 2026 at 5:56 pm

    I once did a project like this, but chose to use lighty instead of apache due to how big an Apache distro is.

    If you want to use Apache, take a look at XAMPP. It includes more than just Apache, but it’s very easy to get up and running.

    Since my target distribution was Windows, I used AutoIT to write a script that would:

    1. start the server
    2. launch a browser
    3. shut down the server when the browser was closed

    I compiled the AutoIT script to an exe, and that’s how my users would run the program. You didn’t specify your target platform. If it’s mac or *nix, you could write a shell script to do the same thing. The key is that it would need to run in the background waiting for the browser to be closed.

    I used NSIS to create an installer, to setup everything and create icons in the start menu.

    Since I was trying to keep filesize down and not rely on an internet connection, I used sqlite for my database instead of MySQL.

    I also chose to distribute the K-Meleon browser with my application so that I would always know what browser my users were using to interact with my code.

    A couple things you’ll want to keep in mind:

    • Lighty should be configured to
      • use a non-standard port in case your users already have something running on port 80
      • allow connections from localhost only
    • You may want to rename the executables for both lighty and k-meleon so that you know they’re the processes being used by your application.

    While I’ve done this type of project before, I probably won’t build something this way again in the future and I don’t recommend it as a method for building desktop applications.

    I decided to build my application this way due to the fact that I would soon be leaving my job and since I had built our website in PHP, I figured that whoever took my place would know PHP and building the application this way would ensure that they could provide support for it.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

hello all, need to define a function that can be divided term by term
Hello all and thanks for your time reading this. I need to verify certificates
Hello all you helpful folks @ stackoverflow! Best resources for Java GUI's? Looking at
NOTE: Using .NET 2.0, and VS2005 as IDE Hello all, I'm working on logging
$('div.box').html(hello) puts the word hello inside all my div's of class 'box'. They all
All of my codes fail. They should print he, hello and 5 \n 3,
I am writing an Apache module in C++. I need to store the common
I am using latest Apache CXF to create a webservice. I have configured ws-security
Hello all Windows Mobile Experts! I have really drowned in the world of developing
Hullo all, Wondering if there are any Java hackers who can clue me in

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.